Animation Tree transition expressions seemingly not working

Godot Version

4.3

Question

Hey there, I just started reworking my player controller state machine recently, this time working with components made out of nodes, and primarily using the Animation Tree as my state machine. I got my idle/run animation working with blendspace1D, and started looking into how to work those transitions. I am currently stuck trying to get my character to animate while jumping, I really would rather work with expressions, I currently have my Advance Expression Base Node pointing at my CharacterBody2D, while the variable I am referencing in the expression is located in my jump component. How could I fix this?

If jump_componet has the state is_jumping and the character2d is the expression node.

Then your expression is just jump_componet.is_jumping

1 Like

Thank you so much, that’s exactly what I was looking for!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.