Hey guys, I have a problem which is when I press the button, the animation stucks at the first frame

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Trumble

The Code I Use

if Input.is_action_pressed(“walk_lft”) && isAttacking == false:
velocity.x = -125
isAttacking = false;
facing_right = false

:bust_in_silhouette: Reply From: Ertain

Maybe this will help?

if Input.is_action_pressed("walklft") && isAttacking == false:
     velocity.x = -125
     # Check for whether the animation is playing.
     if not $AnimatedSprite.is_playing():
     isAttacking = false;
     facing_right = false

Still doesn’t work :frowning:

Trumble | 2020-11-30 20:07