Decelerate?

rladbsghrladbsgh Member Posts: 11
edited November -1 in Working with GS (Mac)
I'm using accelerate instead of move to move my character. It feels smoother and better.
Problem is that the character is moving around like ice.

I want to make it so that when the character stops accelerating (moving), they decelerate and stop quickly. Is there a method to this?

Comments

  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Yeah, play around with the drag and friction in the physics properties. You can also do it with code by constraining self.linear velocity.x to self.linear velocity.x*0.97 when the touch is released.

    I'd use the drag though over the code, although in the game I'm working on now, I use something similar to the coding at the Goal boxes on my levels.

    Ace
Sign In or Register to comment.