0 votes

Hey guys, so i have an animationplayer and animationtree, everything setup, i can draw the cursor and see how the animation blends between eachother in the editor.
But how do i use it?
i start the animation like this
and when i press the run key i just do the same but call the running animation.
therefore i cannot see any blending between the animations occur ?

thanks any help guys!

in Engine by (155 points)

1 Answer

+1 vote

In order to make the blending in AnimationTree works, you have to play from AnimationTree instead of AnimationPlayer.play().

But the method to play animation from AnimationTree varies by its implementation, for example, here's how AnimationTree StateMachine get initiated:

var state_machine = anim_tree["parameters/StateMachine/playback"]

You can find more info about controlling AnimationTree from code here

by (218 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.