I am working on a top-down shooter game and I’m having a difficulty creating the aiming system.
Here is what I’m trying to do:
The player moves the mouse cursor around and the character aims wherever the mouse cursor is (from -180 to 180).
With this set up, the front part of the character is working great but whenever I go lower than -90 or higher than 90, the value just returns to 0, instead of going all the way to -180 and 180.
Just figured it out.
All I needed to do was a Branch (if statement) to separate the rotation in two parts (one was already ready, the other one was just the same thing flipped the other way).