Topic was automatically imported from the old Question2Answer platform.
Asked By
HarryCourt
Old Version
Published before Godot 3 was released.
So, my player is holding a weapon that points towards the mouse, but it looks crooked when it goes 180 degrees, so is there any way I can flip it once it reaches (-)90 degrees?
you can flip the sprite vertically once it passes ±90 degrees angle(might need to set it to different angle because godot’s angles are kinda weird) using get_rot() or rotation if you are on godot 3 branch and flipping accordingly