(Godot v4.2.2)
I have a character controller with a crouching animation (All of my animations are handled through a animation tree). I use a transition node to transition between whatever state it was in before to the crouching animation. The crouching state is just a single animation hooked up to a time scale node (I’m not currently using the time scale node, I just thought it might come in handy) All of this is pictured below:
I want to add a “backflip” mechanic, similar to Mario 64, where the character does a high jump after crouching. I only want the character to jump higher about half way through the animation; however, I can’t seem to find an option to check for the progress of the animation. I thought this was weird, since I can use AnimationTree.advance() to seek through the animation, I just can’t read from that value.
I have tried checking this value through the animation player I have linked to my tree, but since the animations are handled through the animation tree, it just gives me a “AnimationPlayer has no current animation.” error.
If anyone has any idea on how to do this, please let me know! If you need any more info or screenshots please let me know.