How to gradually decrease velocity?

Simple Gamer ArtsSimple Gamer Arts Member Posts: 288
edited August 2017 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?


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


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

    Change Drag to 200 (or whatever suits your needs)

    Attributes > Physics > Drag

Sign In or Register to comment.