how to trigger something to happen after animation is finished

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

I know about the on_finished_animation signal but i want a different on_finished for each animation but i dont know how

:bust_in_silhouette: Reply From: Serenade

You can try this, when animation is finished …
if $animation_player.current_animation.get_basename() == “animation_that_I_want”:
do_something()

can you show the code more clearly i dont quite get it

Newby | 2018-03-08 10:44

:bust_in_silhouette: Reply From: Maxpilot

Don’t know exactly what you mean, but when connecting the “animation_finished” in the inspector window, you get the name of the animation as a parameter.

1 Like