I am trying to use the AnimationNodeStateMachine in the AnimationTree in my Player node.
However, I am keep getting errors that the state machine is not playing. (ERROR: Can't travel to 'Falling' if state machine is not playing.)
I found out with the is_playing() method that for the first several steps(like 7~8 steps), it return false then it returns true afterwards.
I currently made a temporary solution that the player should not proceed the process if the state_machine is not playing (see the last two codes below), which seems to work for now.
state_machine = $AnimationTree.get("parameters/playback")
$AnimationTree.active = true
#Added the below code and it starts working
if(state_machine.is_playing() == false):
Will there be a better solution for this situation, since mine doesn't look like a good one?