React in code to New Godot 3.1 AnimationStateMachine playback finished?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TobiLa


I tried the new AnimationTree with the StateMachine.

I start the playback with this code:

var playBack = $AnimationTree.get("parameters/playback")

I want to execute code when all of the animations are finished. I could’t find a signal or something similar for this in the doc, any suggestions?

I guess you’d need to check the is_playing() function is true

davidoc | 2019-02-15 16:13

From what I tested it seems the is_playing() function is true from the call of the start() until end() is called. My animation is finished and it still returns true.

TobiLa | 2019-02-15 16:39