Welcome to the forums @EvilDoor!
You probably are overriding the jump and fall animations. You probably need to see if the character is grounded before changing to the run
or idle
animations using a condition like if is_on_floor():
. For example, you could change your code in _process
like the code below so it does not override the in-air animations:
if (is_on_floor()):
if Input.is_action_pressed("ui_right"):
if WAY == true:
$AnimatedSprite.play("Run")
elif Input.is_action_pressed("ui_left"):
if WAY == true:
$AnimatedSprite.play("Run")
else:
$AnimatedSprite.play("Idle")
else:
if velocity.y < -10:
$AnimatedSprite.play("Jump")
else:
$AnimatedSprite.play("Fall")
if (Input.is_action_pressed("ui_right"):
$AnimatedSprite.flip_h = false
elif (Input.is_action_pressed("ui_left"):
$AnimatedSprite.flip_h = true