Check if different animations are done

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

Hi everyone!
Sorry, I’m kind of a noob with gdscript… I wanted to know how I can check if a different animation is finished?

“func _on_AnimationPlayer_animation_finished(zoom_in):”
however I wanted to use this same function, but check for my other animation: “to_pamela”

I want something different than what happens after the “to_pamela” animation ends to happen when the “zoom_in” animation finishes… Any suggestions?

:bust_in_silhouette: Reply From: exuin

“zoom_in” here should actually be the name of the animation that just finished, not just one animation, since that signal is emitted for every animation that is completed. Just check if that variable is equal to the name of the animation you’re looking for.