Godot Version
4.4
Question
animationPlayer has call_method track. Is there similar thing for animationTree?
I have animation blend tree set up and I’d like to call queue_free after death animation is played.
4.4
animationPlayer has call_method track. Is there similar thing for animationTree?
I have animation blend tree set up and I’d like to call queue_free after death animation is played.
There’s an animation_finished signal for the AnimationTree. You can use that to trigger a queue_free(). Altenately you can make an Animation track in your AnimationPlayer that does it and then call that animation in the AnimationTree.
Thanks for that. I tried using animationPlayer finished signal and it didn’t work. I didn’t realize animationTree also has finished signal. ![]()
No worries. The reason for that neither one defines that method directly. They both inherit from the AnimationMixer class, which defines the animation_finished() method, and they both use that. So whenever you’re trying to do something, go to the documentation and see if any of the classes it inherits from declare something useful to you.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.