[Solved] Crouch Animation not working

I am making a little platformer, just to fiddle around in Gdevelop. I tried making my character crouch, but it didn’t work. I made it so that when the down key is pressed a variable gets set to true. When I tested it to see how it worked, my knight character started freaking out and kept flickering between the one crouch frame and a frame from the fall animation, as depicted below (If it looked like he stood still, he didn’t, it’s the gif):
He's freaking out
What I also noticed is that when I pressed the down key before taking a step, he wouldn’t even do anything. The idle animation just kept playing. But anyways here’s what I did to try and make him crouch.


Can anyone help me with this? I want to add normal crouching, before crouch walking.
Thanks in advance!

Can you expand the fall events and screen snip them? If it’s flickering between falling & crouch animations then there will probably be some fall condition that is doing the animation change .

Here

The issue is not obvious in your events.

Check the distance between the origin point and the bottom of the hitbox for both the idle and crouch animations. If the crouch animation’s distance is smaller than the idle animation’s, the sprite might not touch the platform when crouching starts. This would cause GDevelop to put the sprite in a falling state.

2 Likes

That was it. The hitbox was giant, so i think that was messing it up. Thank you!