+1 vote

Could anyone please give me a basic explanation of what custom_blend does? I know to set it to 1 to have both run at the same time but I'm not sure what it does. I can't seem to have 3 animations in the same player run at the same time, only 2. I just don't understand exactly what custom blend does. Thanks.

in Engine by (152 points)

1 Answer

+1 vote
Best answer

Godot's AnimationPlayer is built to run one animation at a time, which can be blended with one other animation at a time. That's what custom_blend is for. When you do

AnimationPlayer.play("test", 1, 1)

it will blend from the last animation to the new one. If you repeat this, it will ignore the very first animation, because only two can be blended.
If you want to have multiple animations running simultaneously, use multiple players or AnimationTreePlayer.

by (840 points)
selected by

Thanks that's what I thought. Yeah I've just been using multiple animationplayers.

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.