Hi,
I have a function that is supposed to be called when an animation finishes. It gets called 90+% of the time, but sometimes the function isn't called after the animation is done. The animation always plays, but sometimes the function that is supposed to be called after the animation is done, isn't called. I've poured over all the code and can't figure it out. The code that connects the signal doesn't return an error, even when the function doesn't get called. I can't find any other reason why it wouldn't be called either. I'm sure there is still a possibility that there is a bug in my code, but I was wondering, if the game is processor intensive, is it possible that signals get dropped? Any other things I should look into? I'm on Godot_v3.1.1-stable_x11.64.
var expl = $Explosion
var err = expl.get_node("AnimationPlayer").connect("animation_finished", self, "_on_ExplosionAnim_animation_finished")
print(err)
. . .
func _on_ExplosionAnim_animation_finished(anim_name):
print('animation done')
Josh