Game Development Community

Changing Window Resolution

by ~Mystic~ · in Torque Game Builder · 12/07/2008 (7:59 pm) · 2 replies

How would I change the window resolution from default to 320X240? and If I press oh alt+enter the resolution would go from 320X240 to full screen.

Anyone know how to do this?

#1
12/08/2008 (1:24 am)
In the editor, you can set the screen resolution that the game should run with by switching to the camera tool in the toolbar and setting the design resolution on the edit tab to the desired values.

In scripts, you can call setScreenMode to set the screen resolution. Unfortunately, there's a bit of a mixup in the default scripts used by TGB in that the persistent game prefs use "$Game::Resolution" whereas setScreenMode will set "$pref::Video::..." variables, i.e. your set screen resolution won't be persisted except if you set "$Game::Resolution" yourself.

BTW, you sure you have it running at 320x240? AFAIK TGB won't go below 640x480.
#2
12/08/2008 (3:24 pm)
I just want the window to be 320X240 since I'm coding a NDS like game, you serious that you can't go below a 640X480 window?><