(fixed) How to eliminate Y velocity when sliding in a 2D plattformer?

Godot Version

4.2.2

Question

Hello friends, I have a problem, if my character slides down a steep it builts up Y velocity and whichs turns into my character flying out of that slide, I want the character to stick on that “slide” and to constantly accelerate but only x velocity.
I have tried snapping to floor, setting the Y velocity to 0 any more ideas?

You should probably provide some code

2 Likes

I have found a fix already, but don’t know how to close thanks tho!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.