0 votes

The player moves well, and all the animations work except the left one, it moves to that side but the animation doesn't come out.

if Input.is_action_pressed("ui_up"):
    movement.y -= velocity
    animation = "Walking_Up"

if Input.is_action_pressed("ui_down"):
    movement.y += velocity
    animation = "Walking_Down"

if Input.is_action_pressed("ui_left"):
    movement.x -= velocity
    animation = "Walking_Left"

if Input.is_action_pressed("ui_right"):
    movement.x += velocity
    animation = "Walking_Right"

in Engine by (12 points)

1 Answer

0 votes

The animations are case dependant. if you check the name of the animation in the node my guess is you will find it has a different case perhaps the L in left is lower case or something.

by (1,417 points)
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.