How to create player/character slide/glide movement


I’m trying to make my character slide or glide

I’ve used the basic:

If rightdown then
end - - they come to an abrupt halt

I’ve tried to add an animator to direction button release

I’ve tried using a “gravity” force and formulas. Like

x = x + velocity*deltaTime - 1/2 acceleration * deltaTime * deltaTime

Is there a common way to do this?

I got it to work.

Used an animator playdate.buttonJustReleased ([direction])

Added the animator value to the x value

1 Like