Trying to connect camera movement with player AND mouse
Ok so I think my request that I am asking may actually be a little too hard to achieve.
I HAVE seen it on a game before... So I know it is possible... but it might be quite hard to code... Which is why I have come here to the pros!
Basically the game I am designing is a 2D platformer Shooter Death Match...
Now where ever the cursor is, is the direction in which the players gun will shoot...
But what I am trying to achieve is having the mouse move where ever the cursor goes. So the player can freely jump around the screen without the camera moving... BUT if the player gets to the edge of the screen, the camera will of course push up so the player does not exit the screen! Also, the camera can not make the player leave the screen! So If my cursor was to go all the way to the right side of the screen and my player was on the left, the player would not exit.
Is this possible? Please by god tell me you guys understand what I mean. Thank you so much.
Your answer
Follow this Question
Related Questions
Change Camera's size relative to player's speed 0 Answers
Moving a character regardless of the camera position 0 Answers
How do I make my player's movement relative to Main Camera's direction? 1 Answer
Make character face movement direction 0 Answers
PlayerMovement And CameraFollow Relative 0 Answers