Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | kityeeeee |
i was told my jump animation isn’t working because the animatedSprite was playing my idle/walk animation whilst i play the air animation and that i need to implement a way to detect if the player is in the air and make it not play the walk or idle animation while they are.
i tried this piece of code from a previous qna but no go:
var jump_ani_playing = false
... # The following is in your physicsprocess function:...
if !is_on_floor() and !jump_ani_playing:
$Sprite.play("JUMP")
jump_ani_playing = true
it just made my character play the idle animation in mid air, as opposed to my previoud stuck on the first frame of the jump animation problem.