Reply To: Camera Issue from Game World Chapter

Home Forums Books Mastering Unity 2D Game Development Camera Issue from Game World Chapter Reply To: Camera Issue from Game World Chapter

#10031

Jason

Could you possibly explain why after implementing the changes to the camera in “A Better Follow Camera Script” I end up having to divide the minXAndY and maxXAndY by 2 in the clamp function in order to get the camera to stop at the edges of the background image? If I leave it the way it is in the book, the camera stops moving only after allowing the background to go half-way off the screen.

Is this because the transform position of the camera is the center of the camera view?