Animation finished

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

Regarding to the command: “func _on_AnimatedSprite_animation_finished():” I would like
to know which animation this command effects. I mean, can I set it for a particular one?
Or does it work in general, for all the animations?

:bust_in_silhouette: Reply From: Magso

animation_finished() is a signal an animated sprite calls when frame equals frames.size(). The animated sprite’s signal has to be connected to the script attached to the parent or self, the signal will pertain to that specific animated sprite node.