AnimationPlayer and AnimatedSprites does not working

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

Hi guys,

I’m new to Godot and I’m trying to make a demo project. I’m stuck here with the AnimationPlayer does not work with AnimatedSprites. Could you please show me the way to do it or is this a bug? Thank you.

Here is the clip of what happened :((

I tried this in a build 3.2 beta of godot and it works, the animation node opens as expected. I don’t really know what’s going on. Oh if you didn’t know, the AnimatedSprite node doesn’t need the AnimationPlayer node to animate its frames.

estebanmolca | 2019-12-19 09:36

Oh really? Could you please show me how to do that? Something really abnormal is going on in my project so that I cant really do it with the AnimationPlayer :((

CrinstalMaiden | 2019-12-20 07:24

In the AnimationSprite node, in SpriteFrames, you can create new animations on the left. By default there is already one created, and it is called “default” at 5 FPS. Choose your animation if I create more than one, add all the frames you want, either from separate textures or a spritesheet. Then, from code you can run the animation with: ("default")
Where player is the name of the SpriteFrame node.
To stop it:
player.stop ()
In the editor you can preview the animation by Playing checkbox
Look for SpriteFrame in the editor’s documentation for more options.

estebanmolca | 2019-12-20 10:30