0 votes

My player has an up, down, left, right aim i want to put my in between animations when changing aim.

Like if im facing right and want to aim down the inbetween would be my down right animation and if aiming up it would be my aim up right and vice versa.

Is there a was to put inbetweens using the AnimationPlayer.

in Engine by (395 points)

1 Answer

0 votes

You need to trigger the animations that you want to show first before switching over to the final ones. Or use Tween.

by (156 points)

Is there no way in the Animation Node I can set parameters to automatically choose the correct animation.

You can choose which animation to play, and which frame, but it might be a trickier solution. See https://docs.godotengine.org/en/stable/classes/class_animationplayer.html:

   String assigned_animation

Setter  set_assigned_animation(value)
Getter  get_assigned_animation()

If playing, the current animation; otherwise, the animation last played. When set, would change the animation, but would not play it unless currently playing. See also current_animation.
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.