Top down racer - how to slow the actor down when overlap grass
debugdesign
Member Posts: 886
Hi,
I am using the on screen joysticks and doing a top down racer but I wanted to add oil slicks and grassy areas.
I would love it if the player slows when he hits the grass. I tried adding a collide but i just hit it with a solid bang (my player's desity is 100). Then I tried changing attribute 'Friction' but I have no idea what I am doing.
Then I tried changing the speed on the joystick control from
200* game.DistanceFromCenter / game.BaseRadius
to
1* game.DistanceFromCenter / game.BaseRadius
on a timer.
Any help is greatly appreciated...
I am using the on screen joysticks and doing a top down racer but I wanted to add oil slicks and grassy areas.
I would love it if the player slows when he hits the grass. I tried adding a collide but i just hit it with a solid bang (my player's desity is 100). Then I tried changing attribute 'Friction' but I have no idea what I am doing.
Then I tried changing the speed on the joystick control from
200* game.DistanceFromCenter / game.BaseRadius
to
1* game.DistanceFromCenter / game.BaseRadius
on a timer.
Any help is greatly appreciated...
Comments
change attribute - max speed