0 votes

I have some animations which I want to signal when they're finished.

I only want some, not all of them to do this.

Initially, I tried putting in function calls manually on the last keyframe of the animations, but I found that this actually calls that function on the frame before the last one, which isn't suitable for what I want.

My current approach is to use the animation_finished signal and pass along the name of the animation, but this is quite messy and brittle because in the code I have to check whether the animation that finished is one of the ones I'm interested in via a big string comparison block.

Basically, is there a way to effectively have the animation_finished signal for each animation individually, rather than for the animation player as a whole?

in Engine by (37 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.