+1 vote

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 :((

in Projects by (20 points)

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.

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 :((

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:
player.play ("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.

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.