How do I make a camera system similar to the one in Nuclear Throne

I am trying to make a top down camera similar to the one in Nuclear Throne(Gameplay here: Nuclear Throne Gameplay (PC HD) [1080p60FPS] - YouTube), I want to be able to get my cursor position and calculate the distance between the player and the cursor, then set the camera’s X value to that distance divided by 2.

Double post, answered here:

2 Likes