0 votes

Hi, I have a character that always faces the mouse position, and moves in the 4 direction (up, down, left, right, he doesn't rotate around the mouse), I know how to play and change animation, my problem is: I want to make the character strife when he is moving laterally to the position he is facing, I have Velocity and rotation of the character, how can I calculate de difference between those two so that I can chose the proper animation?

in Projects by (14 points)

Please log in or register to answer this question.

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.