GameSalad

How to gradually decrease velocity?

thevoxptythevoxpty Posts: 38Member, BASIC
edited August 24 in Working with GS (Mac)

My left and right movements are with accelerator behavior in a rule, and at the bottom where it says "otherwise," I change attribute: velocityX to 0... (in other words, when I stop pressing the left or right button, my actor comes to an abrupt stop)

So, I would like to gradually decrease it's velocityX to 0 instead of having my actor stop abruptly when I let go of the left or right button. What formula can I use?

THANK YOU

P.S. there is no gravity on purpose and I'm using "accelerator" for movement rather than "move" for the nature of the game.

Comments

  • SocksSocks London, UK.Posts: 12,725Member

    Change Drag to 200 (or whatever suits your needs)

    Attributes > Physics > Drag

Sign In or Register to comment.