I'm making a game that will run at 1024x768, but on widescreens, it is stretched out and everything looks weird. Is there any way to get rid of the stretching?
Printable View
I'm making a game that will run at 1024x768, but on widescreens, it is stretched out and everything looks weird. Is there any way to get rid of the stretching?
Did you enable "Resize display to fill window size"?
If you enable "resize to fill window size" you'll have the frame which is stretched to the screen.
To correct it, you can use Sphax Kernel object and resize the frame with the good dimensions like that :
newWindowWidth = originalWindowWidth*(originalWindowHeight/screenHeight)
;)
But then if you have a large screen, everything will appear tiny. What I'm trying to achieve is to make it so it chooses the best resolution to display the 1024x768 screen size at without stretching, and the trouble I'm coming across is that montitors cannot just resize to any old screen size.
One thing I've noticed is that in the program properties box, if you enable 'change resolution mode' and set the resolution to some obscure numbers like 864x977 it will choose the next highest resolution that it will fit into. Problem is that I can't do that at runtime.
Ok I'm sorry if anybody read the post I am now writing over. I was mad at the time.
Ok I've decided to just forget about the whole trying to get rid of the stretching thing.
The problem with the big box object is that whenever you change the screen resolution, it rearranges all the icons to fit on the screen.
Just make different versions for different resoloutions. Simple, yet complex. (My favorite saying!)
There are too many resolutions for that man.
It's why, you can use the option "resize to fill window size" and to keep the good ratio, you resize the frame window...
This will not change the screen resolution and you'll have the game in full screen.
"to some obscure numbers like 864x977 it will choose the next highest resolution that it will fit into"
yes, thats because your moniter can handle 640*480 and 800*600, etc. it cant handle 650*500
Some monitors can't/don't/won't support those strange numbers, like neat_Kliker2 rightfully said.Quote:
Originally Posted by neat_Kliker2