How can i make may own template
by M. Stolley · in Torque Game Builder · 06/28/2006 (2:00 am) · 1 replies
Hi,
i just thought it would be good to make some things faster, things that will come each time again in my different games. So i will make a Template in wich i have i.e. 2 splash screen and a main menu in wich i have an exit button and so on.
What i do not know is how can i save this project as a template so that i can use it for my new games.
It would be nice to use my own templates to start my games so that i do not make i.e. the splash screens again for each game.
Mathias
i just thought it would be good to make some things faster, things that will come each time again in my different games. So i will make a Template in wich i have i.e. 2 splash screen and a main menu in wich i have an exit button and so on.
What i do not know is how can i save this project as a template so that i can use it for my new games.
It would be nice to use my own templates to start my games so that i do not make i.e. the splash screens again for each game.
Mathias
Torque Owner Thomas Buscaglia
1. Create your template just like any other project. Get all the functionality you need into the template.
2. Copy the project folder into "...\games\tools\projectWizard\templates\"
3. Edit "games\tools\projectWizard\main.cs" to add the following two parts:
A) At the top:
B) A little lower...
function newProject() { Canvas.pushDialog(NewProjectDlg); templateListBox.clear(); templateListBox.add("Empty Game", 0); templateListBox.add("Empty Game - No LevelBuilder", 1); templateListBox.add("Fish", 2); // add your template to the listbox here... must be a // unique number for the second argument templateListBox.add("MyTemplate", 3); templateListBox.setSelected( 0 ); }Again, I *strongly suggest against* using templates for the reasons I stated above. I believe there is a tutorial on how to create resources included with TGB.