Play an AnimatedSprite2D in an AnimationPlayer

Godot Version

4.3

Question

How to play an AnimatedSprite2D in an AnimationPlayer?

Hi,

I am programming a TD game in Godot 4.3.

In an AnimatedSprite2D I have animated a portal (8 frames).

I would like to play this “portal” in an AnimationPlayer. I would like to use the AnimationPlayer, so that when the “portal” appears on the map, I don’t just pop it up, but use scale, for example. It would look nicer that way.

I have tried the following in AnimationPlayer:
Add Track → Property Track… → AnimatedSprite2D selected → animation

I have inserted an insert in animation.

When I run the AnimationPlayer nothing happens. The selected animation is “portal”.

I can’t find a YouTube video for this either.

Do I have to do this without an AnimatedSprite and use the property track “frame” in the AnimationPlayer?
If so, how can I loop the animation for “frame”?

1 Like

From what I know the AnimationPlayer can’t play a single animation from AnimatedSprite2D’s. It has to have keyframes from AnimatedSprite to actually be animated… But I found a neat tool to workaround the disadvantage, here it is: