|Topic was automatically imported from the old Question2Answer platform.
I am trying to figure out how to get my Camera2D to rotate around my player based on the position of the mouse. Basically, I have six directions for my character: right, left, down-right, down-left, up-right, and up-left. I already have this part working. However, I want to have the camera be in a certain position around the player based on what direction the player is facing (i.e. when the player’s direction is up-right, the player would be in the lower-left corner of the screen and the part that is visible would be what is up and to the right of the player, when the player’s direction is up-left, the player would be in the lower-right corner, etc). However, I simply can’t figure it out. Could someone please help me?