Godot Version
<stable4.2>
Question
<I am trying to change state when animation has finished. I have checked that animation is set to one shot instead of loop, and made sure that name is correct. However, the animation finished signal will trigger not in first time the animation has finished but in second time of animation finished somehow. I also tried to fixe this by disconnecting the signal once and connecting it again, but this time the signal was triggered in fourth time the animation has finished. do you have any idea why? btw the length of animation is 1 second.
func _on_animation_player_animation_finished(anim_name):
if anim_name == "charge":
state = States.RUSH