Top down racer - how to slow the actor down when overlap grass

debugdesigndebugdesign Member Posts: 886
edited November -1 in Working with GS (Mac)
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...

Comments

Sign In or Register to comment.