The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

I have a character using an animation tree. I've been starting with a basic state machine and it's been working great.

I recently found myself wanting to add certain effects (such as my character flashing transparent when hit) to all states of the player. My idea is to use a blend tree to conditionally add this "flashing transparent" animation to my existing state machine.

What I need to know is how to save my existing state machine node and LOAD it into the blend tree I'll be replacing it with. Is there a way to save my existing state machine and place it into a blend tree?

in Engine by (178 points)

1 Answer

0 votes

As it turns out, this is in-built functionality.

Go to your animation tree and right-click your playback node (the state machine root) and click "save"

In your new animation tree (blend tree in my case), right-click anywhere and click "load..."

I tried this when I first met this problem. Turns out I just saved it wrong. Hahaha.

Godot is so convenient. A little bit of trusting in that fact can pay off.

by (178 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 Frequently asked questions and 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 [email protected] with your username.