How does animation blending work? Does it work in 2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CyttilDalionzo
:warning: Old Version Published before Godot 3 was released.

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?

:bust_in_silhouette: Reply From: CyttilDalionzo

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.