Event on transition in AnimationNodeStateMachine
My character's animations are controlled through an AnimationNodeStateMachine.
Some animations change the offset or modulation of a sprite, always returning them to their default value at the end of the animation. These animations can be interrupted by instant transitions to other animations, causing the sprite to be stuck at wrong offsets or modulations. I do NOT want all my animations to control offset and modulation just to make sure they return to their default values after being used. Instead, I would like a method which resets offsets and modulations to trigger on every transition. I was a bit thrown off that there are no signals listed for the state machine itself, neither the AnimationNodeStateMachinePlayback, and only a single signal for the AnimationNodeStateMachineTransition, which does not trigger when the transition is actually being used.
Are there hidden signals that I can use? Any other way to do this? Note that you can't use the AnimationPlayer's signals for this: when using an AnimationNodeStateMachine none of those get emitted.
In general I found the AnimationNodeStateMachine (and it's playback) a bit underdeveloped. For example, to control animation speed additional blend trees have to be used as a workaround. I think controlling animations through a state machine is absolutely necessary in a complex scenario, but right now it removes so much flexibility that it seems not worth using.
Posted Sep 14, 2020, 3:10 PM UTC