how to add 2d Animated Sprites into 3d scene of godot / in gdscript

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

hey everyone,

so i’m creating a beat-em up game and adding sprites into a 3d scene in godot. setting up movement was ok and adding a single png sprite went ok . however now that i want to add animations like “walk”, “jump”, “punch” etc . i cant figure out where and how to add these sprite animations into the script.

i’m using $animatedSprite rather than animation player since creating sprite frames is an arduous task its easier for me to add in segments.

here is my script :

can someone suggest how could add the animated sprites as the movement code works really well. thanks