Game Development Community

game-screen

by Toni Weidstätter · in Torque Game Builder · 06/09/2011 (9:01 am) · 3 replies

hello!

is it possible to place the game screen on the top-left edge directly on startup of the game?

thx 4 help!

#1
06/10/2011 (7:29 am)
I'm not sure what you mean. Are you saying you want to move the camera to the top left edge of your level? Or do you want to move the actual window which contains your game to the top left corner of the screen? For the first one, this is what you'd want:

setCurrentCameraArea(%x1, %y1, %x2, %y2)
//or
setCurrentCameraPosition(%x, %y, %width, %height)

The first, you define the top-left and bottom right corners of your camera, the second you center and then width/height of the camera.

If you're wanting to move the window on the screen, I'm not sure if there is a way to do that directly through script.
#2
06/13/2011 (11:08 am)
thank you!
but i want to move the window if thats possible...
#3
06/15/2011 (5:47 pm)
That would require tinkering in the source. I doubt that sort of functionality is exposed to script. Is there a particular reason you need it in the corner of the screen? In source you can also set the window as "always on top" so that it can never be obscured by another window.