- Home /
Scaling my game for different resolutions?
Basically, I am running my game at a set resolution currently. When I make a stand alone build, I force it to reset the resolution when the main menu loads. I would like to have the game basically scale up for the different resolutions so that regardless of the resolution. I am an amateur coder, and am looking for a pretty simple way to do it.
Answer by poncho · Aug 15, 2012 at 07:37 PM
you can adjust camera's size on the factor given by the resolution
Could you explain that in more detail? That sounds like it would work, but I'm not sure how to go about doing it. Thanks!
ie your camera size is 100 and the resolution you have its 1024*768 if you want to have it adjusted to a resolution of 960*640 then your ratio is 960/1024 = 15/16 = 0.9375 then set your camera size to 100 * 0.9375 = 93.75 then your camera should have a relative ratio to the new resolution