Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
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
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.