Screen Resolution
by C Martin · in Torque Game Builder · 10/03/2008 (6:38 pm) · 6 replies
Hi guys,
I'm currently developing an iPhone app - however I haven't got around to purchasing the iTGB as yet. In the meantime I want to set the resolution of my game to something around the iPhones native resolution. Is there actually a way to do this? I've tried:
// Set the screen resolution
setScreenMode( [width], [height], [bpp] );
and:
setRes( [width], [height], [bpp]);
and neither seem to do a single thing! Any ideas? Is there a particular part of the app you have to call this in before it will work?
..although, i have a sneaking suspicion that this is clamped internally... I thought an update was coming to TGB that would allow a user to set the resolution lower?
I'm currently developing an iPhone app - however I haven't got around to purchasing the iTGB as yet. In the meantime I want to set the resolution of my game to something around the iPhones native resolution. Is there actually a way to do this? I've tried:
// Set the screen resolution
setScreenMode( [width], [height], [bpp] );
and:
setRes( [width], [height], [bpp]);
and neither seem to do a single thing! Any ideas? Is there a particular part of the app you have to call this in before it will work?
..although, i have a sneaking suspicion that this is clamped internally... I thought an update was coming to TGB that would allow a user to set the resolution lower?
About the author
#2
Modifications are being made to iTGB to allow for iPhone resolutions in the editors.
10/06/2008 (11:20 am)
@Cain Martin - The resolution in TGB 1.7.4 is indeed clamped so that you cannot set your resolution below 640x480 (or 480x640).Modifications are being made to iTGB to allow for iPhone resolutions in the editors.
#3
But that won't roll out to TGB itself then? Only if you have the iTGB license will you be able to run at that resolution?
10/07/2008 (2:26 am)
Cheers - thanks.But that won't roll out to TGB itself then? Only if you have the iTGB license will you be able to run at that resolution?
#4
10/07/2008 (8:29 am)
@Cain - I'll have to check on that.
#5
How do i set my screen size ready for the iphone (need to make my game in TGB before going ahead and buying iTGB).
I'm sure its pretty easy, but its something that i cannot figure out.
07/19/2009 (2:44 am)
Sorry to bring up a really old post, but i seem to be having problems changing the screen size to 320x480... and it keeps reverting back.How do i set my screen size ready for the iphone (need to make my game in TGB before going ahead and buying iTGB).
I'm sure its pretty easy, but its something that i cannot figure out.
#6
07/19/2009 (4:08 am)
Ah i've now found a couple of posts that suggest this is still not possible in TGB... except for changing the camera... not great, but still :|
Torque Owner Deozaan