How do I create an animation that triggers every 6 seconds?

Hello, sorry for the question, but I would like to know how I can make an animation loop every 6 seconds for a sprite. The sprite is a little block that should glow every 6 seconds

you can create an animation in the animationplayer which is 6 seconds long and set it to loop

1 Like

Thanks! This worked, but I have a question, is there any way to do this with animatedsprite2D or is this the easiest way?

animatedsprited is basically just a limited version of the animation player + sprite. AnimatedSprite is nice to have for simple animation stuff, but as you realize yourself: as soon as you want to do something more complex then just change sprites it reaches its limit. Therefore i recommend to use sprite+animationplayer.

The only alternative i could imagine is to put “empty” sprites in the animatedsprite or combine animatedsprite with animationplayer

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.