#How to crossfade animations in AnimationPlayer

1 messages · Page 1 of 1 (latest)

winged forge
#

The docs say:

However, the support for blending those animations via AnimationPlayer is relatively limited, as only a fixed cross-fade transition time can be set. ( https://docs.godotengine.org/en/stable/tutorials/animation/animation_tree.html )

How do I do this sort of cross-fade with a fixed transition time using only the AnimationPlayer?

golden valve
#

Theres the default blend time option in the animation player.

winged forge
#

Ah, thanks! I presume when this is set to no-zero that it will blend to the new animation when you start playback of a new animation, eh?

golden valve
#

theres also the edit transitions which lets you change the blend time at an individual level.

winged forge
#

Ah, cool. I see there's also a custom_blend parameter on the play() function of AnimationPlayer 😅

golden valve
#

Yup! Hope this helped!