0 votes

I'm making a 3D action sidescroller and right now the character can move left and right (video below) and I am having trouble getting the character to rotate smoothly instead of just snapping left and right, please help!


Right now I am using move and slide to move and changing rotation_degrees to rotate.

Godot version 3.2.1 stable
in Engine by (63 points)

1 Answer

0 votes

There are many ways this could be achieved, but I would recommend to either:

  1. Create the animation for it in an AnimationPlayer and have the animation trigger when moving left/right
  2. Use a Tween to interpolate the rotation degrees

I think the easiest way is the former.

by (127 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 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.