TGB Missions
by kgoodrid · in Torque Game Engine · 09/10/2008 (4:15 pm) · 9 replies
I may be missing something, but I can't seem to find much information on creating multiple levels or missions in TGB. Is that only possible in more advanced versions of Torque?
About the author
#2
How do I get into the mission editor (or whatever), and is there any documentation for it, as it applies to TGB?
09/10/2008 (4:30 pm)
Yes - and I have seen that there is a mission editor, but I don't see it in my demo copy of the 2D TGB. I was starting to think it was only in the Pro or 3D versions or something,. or maybe only in the full versionHow do I get into the mission editor (or whatever), and is there any documentation for it, as it applies to TGB?
#3
09/10/2008 (4:48 pm)
@Kyle - I may be a little confused. If you are running a demo copy of TGB, you are launching the editor, right? Where you drag sprites onto the scene graph and manipulate the level?
#4
09/10/2008 (4:51 pm)
I guess what I need to understand is how to string multiple levels together to make one large game. I understand how to do 'waves' as seen in the Asteroids level, but I don't understand how to have levels, ie: player finishes a level and is moved to the next level / mission / stage / whatever.
#5
09/10/2008 (4:53 pm)
@Kyle - Ah, gotcha. This is done through scripting. There are a few examples of this in the docs, forums, and sample games. Look in the sample games to see how a level is loaded and shutdown in the scripts. If you are still stuck, post another message and I can track down a specific example.
#6
09/10/2008 (5:07 pm)
I'm having trouble finding any clear examples. All of the tutorials I have seen cover single-mission / level games. Any examples would be great.
#7
LoadLevel
EndLevel
Also, check out the Whack-a-Mole Tutorial ("If I Had A Hammer" section). Search for loadlevel.
Those are the two functions you'll use to chain together multiple missions. I'll eventually write a tutorial that explicitly walks you through the steps.
09/10/2008 (5:19 pm)
@Kyle - Some of this depends on how your game will work. But the two most important functions are here:LoadLevel
EndLevel
Also, check out the Whack-a-Mole Tutorial ("If I Had A Hammer" section). Search for loadlevel.
Those are the two functions you'll use to chain together multiple missions. I'll eventually write a tutorial that explicitly walks you through the steps.
#8
I understand how to move between levels using a button - ie: title screen to first level. I could use this method to move between game level, but it isn't ideal for the top-down 2D action / adventure game I am prototyping. I'd prefer using an area trigger or something like that, but doing so is a bit beyond my level since I am just getting started. I'll keep looking and learning and see if I can figure it out.
Thanks!
09/11/2008 (4:12 am)
Thanks for the information. I'm really surprises that there is not a tutorial that handles this sort of thing, since the overall quality of the tutorials has been very good. This is a fairly major part of many games, so I hope we can get a tutorial soon.I understand how to move between levels using a button - ie: title screen to first level. I could use this method to move between game level, but it isn't ideal for the top-down 2D action / adventure game I am prototyping. I'd prefer using an area trigger or something like that, but doing so is a bit beyond my level since I am just getting started. I'll keep looking and learning and see if I can figure it out.
Thanks!
#9
09/11/2008 (10:52 am)
Sounds good Kyle. Good luck! Let us know how it goes.
Employee Michael Perry
GarageGames
You can create multiple levels and string them together quite easily. Is this what you are thinking?