GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to gradually decrease velocity?

Simple Gamer ArtsSimple Gamer Arts Posts: 276Member
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?

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,822Member

    Change Drag to 200 (or whatever suits your needs)

    Attributes > Physics > Drag

Sign In or Register to comment.