Hello everyone, I need help making a 2d camera for a game I’ve been making. I want to be able to rotate an image to point towards the mouse or “looking”. Unfortunately, I have no idea how to go about this.
Ah, I didn’t see that before! Thanks!
Hello, I have one more question: If I want to use atan2 to point an image to the mouse where the image rotates in relation to a point, but I want to alter the position of the image and still have it point to the mouse. I can’t seem to get this to work. In my case, I have a circle with an image over its center, where it rotates towards the mouse pointer. However, I want to be able to move the image to the borders of the circle, so it rotates around the circle in relation to the mouse.