2d Camera Bounds

How would I implement this into my game?

The easiest would be limiting the center of the camera.

Every frame, limit the X and Z values of the camera’s position to some min and max using math.clamp.

It would be more useful to limit the edges of the camera, but that’s more complicated.

1 Like

Ok thanks! I will try to work with your recommendations.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.