Game Development Community

Widescreen mode in TGE?

by Vickie Eagle · in General Discussion · 10/28/2008 (7:23 am) · 4 replies

I ran into a big issue I didn't think about while I was creating my game Witch Gate. It seems the engine that I am using now does not support widescreen modes, and anyone running the game with a widescreen monitor will have the menus run off the edges of the screen. The developers of the engine told me that it could never be fixed. So now I am looking for an engine that will support widescreen modes and I own TGE (just never used it yet). So before I dive into TGE and port all of my work into it I am going to ask first :D
Here is a screen shot of my game in widescreen mode. You can see where the menus run off the screen.
[img]http://www.eaglesoftworxstudio.com/Witch_Gate/Rouge3.jpg[/img]
Thanks for any advice you can give me,

Always~
Vickie ;)

#1
10/28/2008 (8:18 am)
@Vickie - A few questions for you:

1. Is that screen shot from TGE?
2. If so, is the entire game off screen or just the menus?

If you are using TGE and it is just the menus that are pushed off screen, you can use the GUI Editor to modify the properties of the menu items so that they are always locked in the same position. You can also set a property that they adjust with the resolution change, or stay the same size.

If this is happening to the entire TGE game, can you post the resolution you are working with? I've had wide screen to on my monitors with both TGE and TGEA.
#2
10/28/2008 (8:27 am)
Hi,

Just to add some info about using odd resolutions in TGE, you can go to the onStart function in example/starter.fps/main.cs and near the end of function, insert the following script . . .

%newRes = "1024 768";  
	%newBpp = "default"; 
	%newBpp = "default";
	%newFullScreen = "0";  

	setScreenMode( firstWord( %newRes ), getWord( %newRes, 1 ), %newBpp, %newFullScreen );

Of course there are obvious ways to streamline this, but that should get you on the right track. Tinker with your %newRes values and see how that works for you.

Good luck.
#3
10/28/2008 (10:36 am)
TGE can be set up to use wide screen mode with little to no problems. I recently switched to a new widescreen laptop and Torques GUI system was able to correctly scale and place almost all of my GUI elements. Once I figured out how to correct the few that weren't, which was a simple fix to my GUI controls, I'm able to swap between any resolution and/or aspect ratio supported by my video system.
#4
10/28/2008 (7:11 pm)
Thanks for the information guys and thatn you M Hall, that is what I needed to know!

Always~
Vickie ;)