How to get a sprite's rotation degrees and flip it when ever it passes a certain rotation degree

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Korbie

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?

:bust_in_silhouette: Reply From: flurick

it could be handy to convert the rotation to degrees.

Or if you want get fancy, use dot()