I'm making a top-down local multiplayer racing game, but I have a problem, which I can't address. I need to make sure to place the camera between all of them (at the midpoint) and I scale the layout enough, so all players come into view and none of them is off-screen.
I managed to do the first, but I can't figure out how to know, when all players are in view and how to make a bulletproof scaling formula for that. Can anyone help on that?
EDIT: .capx file can be found here:
https://drive.google.com/file/d/0B3B2L_ ... sp=sharing