0 votes

The Code I Use

if Input.isactionpressed("walklft") && isAttacking == false:
velocity.x = -125
$AnimatedSprite.play("walk")
isAttacking = false;
facing
right = false

in Engine by (54 points)

1 Answer

0 votes

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():
         $AnimatedSprite.play("walk")
     isAttacking = false;
     facing_right = false
by (1,988 points)

Still doesn't work :(

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.