Can I cancel the "switch mode: at end" in code?

Godot Version

v4.4.1.stable.mono.arch_linux

Question

Is it possible to skip an animation although it has “switch mode: at end”?
I am making a 2D platformer where I want a landing animation to happen, unless the player Immediately either attacks or jumps.

I’ve tried to call next() on the AnimationStateMachine but it did not skip the “transition at end” rule for the transition :frowning:

You’ll need to call AnimationNodeStateMachinePlayback.start() to skip transitions and play the node directly. next() just triggers the next transition without waiting for the animation to finish but if the transition is set to at end it will still wait for the previous animation to finish.