I have a 2D game where your boundaries are on either side of the camera. Unfortunatly when this game is played on a bigger screen, instead of the entire game just looking bigger, the camera’s view size changes and shows you more of the world, thus making the boundaries inside, rather than on the edge of the camera’s view, and other problems.
I’ve read that changing the orthographic camera’s size should solve that problem, but the size seems to be increasing when the game is played on a bigger screen.
Any suggestions?
Usually it is the HEIGHT of the screen resolution which maps to the HEIGHT of the camera. When the screen resolution increases in vertical pixels, the camera ancors to the top and bottom of the screen. Anything that happens at the sides of the screen is just a side effect, either hiding some of the content or showing more of it.
So usually you’ll see the effect you’re getting due to aspect ratio etc. You would have to counteract the vertically-locked adjustment of size by re-calculating what the vertical camea height would be based on a FIXED WIDTH. The effect of that will be that the top and bottom of the screen will then be where you see content either getting hidden or revealed.
Can you explain how to do that?