Landing animation working at the wrong time

Hello. So…i made this little code for the landing animation to work. The issue is that the landing animation is playing before idle animation everytime it changes to idle animation instead of just playing when the player is landing.

Example: i am walking, i stop walking and the landing animation plays before changing to idle animation.

Notice that the animation still plays normally when the player is landing, but it also plays in situations like this example.

How can i fix this?

Here’s the code:

Change the OnFloor to true when you’re on floor.

I tried to do that, but then the animation doesn’t play when i land :c

What kind of logic you made for flipping
I never seen something like that
You should flip him to angle of movement or key pressed but whatever

This is for playing sound when landing
So instead of that you put there change animation to land

Also to event with change animation to idle
You add condition player animation is not equal to land

IF your animation kicks in after just stopping after walk animation
It means you have different size of animation frames and you should even them all in some image editor
For example LibreSprite

I did it! It worked! Thanks! :slight_smile:

1 Like