Game Development Community

setting resolution onStart

by J Raven · in Torque Game Builder · 07/21/2012 (4:51 am) · 4 replies

Hi guys

Does anyone have any idea if its possable to get T2D to set the screen res and the like onStart instead of creating a options menu?

basicly im thinking of having the game set res bit depth etc. to that of the desktop of the machine it is on and herefore always be right for the machine its being played on and not need to be set by the player to get optimum screen settings!!

Just an Idea!!!

#1
07/21/2012 (11:51 am)
Well, if you just want it to default to full screen, you can add the following at the start of the program:

if(isFullScreen() == false)
{toggleFullScreen();}

Beyond that, you may want to look at TorqueScript Console Functions 12 on TDN (linking to it doesn't seem to work right :o
#2
07/22/2012 (7:36 am)
Cheers for that

now just need to work out if its possable to get the screen res from the desktop and pass it to the res of the game and chnge it to that on start up

fiddle around time me thinks!!!
#3
07/22/2012 (10:37 am)
There's a function called getDesktopResolution().

Should do the trick. :)
#4
07/23/2012 (2:01 am)
Ace thanks for that will have a look at that now

Cheers guys