Level size
by Jace · in Torque X 2D · 03/27/2007 (9:41 pm) · 8 replies
Hello everyone I just have a quick question for you.
Alright I have been toying around with the level editor and have found out how to make scrolling levels but here is my question.
Let's say you are using the starter.space kit and you open the scene in the editor you will see it is stretched to the maximum possible.
Is there a way to make that level 4x bigger?
This is hard to explain so let me draw a picture.
www.merkhost.com/pics1.jpg
The green area is the full board I want the black square is the monitor screen. Now imagine the space ship in the center of the black square, when the ship moves is there anyway to make the black square move with it?
So in short I want to make the game board bigger 4x it's current size and scroll around it when the ship moves. Is this possible? If so has anyone done it?
Alright I have been toying around with the level editor and have found out how to make scrolling levels but here is my question.
Let's say you are using the starter.space kit and you open the scene in the editor you will see it is stretched to the maximum possible.
Is there a way to make that level 4x bigger?
This is hard to explain so let me draw a picture.
www.merkhost.com/pics1.jpg
The green area is the full board I want the black square is the monitor screen. Now imagine the space ship in the center of the black square, when the ship moves is there anyway to make the black square move with it?
So in short I want to make the game board bigger 4x it's current size and scroll around it when the ship moves. Is this possible? If so has anyone done it?
About the author
#2
03/28/2007 (12:23 am)
Great, but how do I make the game map bigger than the purple square? If you look at the editor the scene is limited to that one area in the purple box.
#3

03/28/2007 (6:38 am)
Just drop the material you want for the background onto the screen and drag the edges to make it bigger. Whatever you see in the square is simply what the camera sees, not the limit of the entire world.
#4
03/28/2007 (9:16 am)
That purple box is the extent of the camera. You can move the center of the camera about the map, however you like. Also, you can change the x and y values of the camera's extent, to change the "extent" of the camera, and what its capturing. The inner square represents the safe viewable area. The outer square, represents what might or might not be viewable, depending on your audiences monitor or TV set.
#6
03/28/2007 (7:00 pm)
Great thanks!
#7
03/29/2007 (2:06 pm)
And just to make it clear... if you want to get to your camera, you can name it so that you can find it more easily in code.. Just make sure you have downloaded the newest version of TGBX, v.1.0.4.2. When you have opened your project, click on the viewing area, somewhere where an object isnt. A blank part of the viewing area. This should bring up some options on your right, for editing. You'll see a place there to name your camera for scripting!
Torque 3D Owner Will O-Reagan
Modern Intrigues
edit: Look at the SplitScreen example, in it, they mount the camera to the player