0 votes

(Sorry for my bad English)

'animation' no longer works in script?

it gives me failure when I put:
"func _process (delta):

animation (); "

together also with

"func animation ():

if (velocity.x <0):
animatedSprite.animation = "MoveRight"

animatedSprite.flip_h = true

if (velocity.x> 0):

animatedSprite.animation = "MoveRight"

animatedSprite.flip_h = false "

I try to give it animation but when I run the animation and press the keys, leave it and it gives me an error, I tried to explain myself the best I could, I hope you can help me, I am new to using the program

in Engine by (12 points)

Please provide the error and also you're supposed to use animatedSprite.play("MoveRight") to actually play the animation

Please log in or register to answer this question.

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.