Is there a way to get or calculate the remain time(eg remain seconds) of AnimatedSprite2D by itself?
Otherwise the only way I can figure out is to add an AnimationPlayer to control the frames of AnimatedSprite2D, then get the remain time of the AnimationPlayer.
Hi there, I think it’s a good idea to add an AnimationPlayer node to your script since it can do a lot more than Animatedsprite2d can do on its own.
I’m guessing that you want something specific to happen once the animation reached a certain point?
If so, it’s actually possible to control boolean variables through the animationplayer node.
btw, i suggest you add more information to your question since it’ll be alot easier to help you if you give more information about what you are trying to do, what your project is, and any other relevant information
It should be possible to calculate the total duration of the animation by using the different methods the SpriteFrames resource has like SpriteFrames.get_frame_duration() and so forth.