Hey guys,
I am making a multiplayer game similar to Smash Brothers. My game has multiple players on the same screen at once, and I am trying to make the camera zoom in and out as players are close together or farther apart from each other.
I intend to simply gather the minimum and maximum X,Y values from each player so I can find the X and Y distances that the farthest out players are in the game, and then need to use that information to zoom my camera in or out.
For example, if player 1 is at x = 50 and player 2 is at x = 250, then my camera needs to zoom to a point that views around 200 unity units. Does anyone have an idea of how I can determine how many unity units my tk2dCamera is viewing at any given time?
More likely than not I'm thinking about this in the wrong way, so any suggestions or ideas are welcome as well. Thank You.