0 votes

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 setblendtime of AnimationPlayer does not seem to be having any effect on blending.

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

Godot version 3.3.3
in Engine by (17 points)

Why not simply use two tracks instead?

1 Answer

0 votes

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.

by (5,256 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 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 webmaster@godotengine.org with your username.