So i'm trying to make a sort of top-down game (not a shooter), and I've tried looking through some of the camera tutorials and I couldn't seem to find what I wanted.
I want the player to be able to move freely without the camera moving, but if they move past a certain point (depending on the layout shape and size) the camera would follow the player and they would be kept in the middle until they reach one of the layout's sides.. For example, if the player is moving across a layout they just entered there should be no camera movement. However, if they move further away from the beginning of the layout to the point where they are in the middle of the y-axis or the middle of the x-axis (or both) of the screen, the camera would follow until they hit the end of the layout.
This may sound really simple, but when the player hits the middle, they start moving faster than the ground. I've tried editing the parallax of the layers I have, and either the player won't stay put in the middle (they move far off the screen) or the player is stuck on one side of the screen (the layers move, but the player's position on the screen stays to the left and doesn't move around, just moves on the layout). I want this to work with an object that will be used as a camera, just for the use of cut scenes. Is it because of my layout size? Any property I am missing? Please help!