0 votes

I recently tried learning animation blending. I thought it would be easier to first try a simple 2D setup, but nothing's working.

I have a sprite, with two animations: "move up" (which is simply the sprite moving up) and "move left" (which is the sprite moving to the left)

I tried to blend them, so that the sprite goes diagonally upwards. I added an AnimationTreePlayer, and set the Master Player to the AnimationPlayer.

I then added two Animation nodes (and set them to the correct animations), added a Blend2 node, and connected everything. I also played with the Blend slider on the Blend2 node.

It just plays one of the animations. Am I getting this concept of animation blending all wrong? I know it's mostly meant for IK stuff, but shouldn't this work as well?

in Engine by (33 points)

1 Answer

+1 vote
Best answer

Nevermind, I screwed up with my coding and didn't set the AnimationTreePlayer to active. Now it works exactly as expected.

So, folks, remember to always activate the AnimationTreePlayer.

by (33 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.