How to find out how many degrees an object is looking

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

I have a character with a weapon (sprite), and I want it to flip vertically when on the opposite side. How to do that?
I can’t find a method that shows the exact degrees of an object.

:bust_in_silhouette: Reply From: Lopy

The rotation of Node2D inheriting objects is accessible in a property called rotation_degrees.

Thank you so much!

Krasapan | 2020-12-23 12:03