Sonic Skidding deceleration

Godot Version

4.2.1

Screenshot 2024-02-20 205643

Question

Does anyone now how would you go about implementing deceleration when switching direction like in the classic sonic games

Detect the change in state. Reduce Sonic’s velocity in a tween perhaps. There must be many ways to try. Just jump in!

1 Like

Hey there,

take a lot a the part with friction.

Make an Action RPG in Godot 3.2 (P2 | delta + smooth movement) (youtube.com)

This helped me

1 Like

Thanks for the 2 replied. I figured out how to do it, it was similar to friction video but before it starts it checks the velocity.x to see if you’re going left or right and add or subtract from there

1 Like