Blend time in AnimationPlayer

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

I want to move a sprite in x direction and then turn it around. The turning should happen before the sprite reaches the end so I thought of blending the two animations. However, the set_blend_time of AnimationPlayer does not seem to be having any effect on blending.

Please let me know how to use the set_blend_time to blend two animations using AnimationPlayer.

Why not simply use two tracks instead?

skysphr | 2021-09-29 15:22

:bust_in_silhouette: Reply From: Inces

I don’t think set-blend-time is for that. This is propably for use of AnimationTree and AnimationTreePlayer. these are nodes for blending animations and they use AnimationPlayer as a database.

Blending animations is mostly usefull in 3D, when using complicated rig interactions. SInce You want something easy like rotation and position change, You should just key it up with proper timing in normal AnimationPlayer frame editor.

Just add channel position and channel rotation and keyframe rotation 0 slightly before finishing keyframe of position, and final keyframe of rotation on the end of animation.