I'm doing a 2D runner with two players, I would like the camera to automatically zoom out when one of the players leaves the screen, and to automatically zoom when both players are visible on the screen. As in Broforce for example.
To summarize I would like all players to be always visible on the screen.
How can I do this ? I can't find a tutorial on youtube..
Thanks a lot !