I’m making a game not unlike MegaMan and right now I’m not happy with how I’m doing the camera.
As of right now I’m attaching a box collider to the camera and having it move to a desired position, but then making boxes in the level for the camera to stay in.
That way I can have tunnels that constrain it from going up and down, or left and right, then having larger areas it can move freely in.
And of course, when the player hits certain triggers the game pauses, the camera turns off its collider, moves into the next screen, re-apply the collider, and unpause.
It’s still in its early stages, but surely there’s a smarter solution.
Right?