How to make a multilayer animation on AnimationPlayer and then Blend layers from diferent animations

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JayJay99

I have an animation for walking, an animation for walking with a gun and a transition animation. How can I go from the walk animation to the walk with gun going trough transition while keeping the legs sync and don’t wait for the walk animation to finish. I though about making all animations with 2 layers, one for the upper body one for the lower, then mix when needed, but I don’t know how to make that and I don’t know if it’s the best way.

:bust_in_silhouette: Reply From: klaas

Hi,
the animation tree can do this for you. It’s not that trivial in the first place, but its quite good.
check it out here:

and you find some good video tutorials on yout tube too.

Hi, could you explain a little more? I’m already using Animation tree, mainly the AnimationNoneStateMachine, but I still can’t think this trough. Should I create an AnimationTree for the upper part of the animation and then create other tree for the lower part? then manage all separately on code? Like this:
state_machine_lowerbody.travel(idle) state_machine_upperbody.travel(idle)
Sounds messy

JayJay99 | 2021-07-06 17:39

Hi,
have a look here
Using AnimationTree — Godot Engine (stable) documentation in English

Blending can also use filters, i.e. you can control individually which tracks go through the blend function. This is very useful for layering animations on top of each other.

With the filter-option you can blend animation on specific bodyparts.

klaas | 2021-07-09 19:35