Help On Making a Camera That Follows and Focuses 2 Players

So I’m Making a Game with 2 Players and I’m Trying to Figure out a way to get the Camera to Follow 2 Players and As the Players Spread Apart the Camera Would Grow.

There isn’t an example for this, but you could likely do this by making an object that always stays in the center of the two players positions. You’d center the camera on this object.

Once the distance of the two players is further apart than the screen width, you’d start zooming out. You’ll need to figure out the exact math you want and go through testing to ensure it does what you expect, though.

2 Likes