I am new and I do not know very well how to use the program

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

(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

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

Wakatta | 2021-09-10 22:49