0 votes

Im making a shooter game with the gun separate to the player sprite, I have the gun rotate around the player to face the mouse. The thing im struggling with is, how do you take the rotation degree and flip the gun sprite based on it rotation. can anyone help?

Godot version 3.2.3
in Engine by (24 points)

1 Answer

0 votes

it could be handy to convert the rotation to degrees.

Or if you want get fancy, use dot()

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