Adding objects to the Level Builder
by Adam Beaumont · in Torque Game Builder · 11/27/2007 (3:49 am) · 7 replies
Is it possible to add objects to the level builder (next to the bit where you have script object etc)?
I want to make it easier for level builders to build levels for our game, so it would be good to pre create objects and allow the level builders to just drag and drop them into the level.
Is that possible?
I want to make it easier for level builders to build levels for our game, so it would be good to pre create objects and allow the level builders to just drag and drop them into the level.
Is that possible?
#2
11/30/2007 (10:02 pm)
Excellent.
#3
12/08/2007 (8:34 pm)
How do you do it?
#4
I looked into this about year ago with similar goals. From what I remember, you start in
tgb\tools\levelEditor\scripts\forms\objectLibrary\otherObjects.ed.cs
tgb\tools\levelEditor\scripts\forms\quickEditClasses\t2dSceneObject.ed.cs
However, I switched over to using behaviors (one or two "uber" behavior scripts per object) instead because it was easier than editing the core level editor :)
12/09/2007 (4:06 am)
Adam, I looked into this about year ago with similar goals. From what I remember, you start in
tgb\tools\levelEditor\scripts\forms\objectLibrary\otherObjects.ed.cs
tgb\tools\levelEditor\scripts\forms\quickEditClasses\t2dSceneObject.ed.cs
However, I switched over to using behaviors (one or two "uber" behavior scripts per object) instead because it was easier than editing the core level editor :)
#5
Do i need a different version/install to see the source on those?
12/09/2007 (5:12 am)
I found something on the forums about those files but mine are all .edsoDo i need a different version/install to see the source on those?
#6
12/10/2007 (5:31 am)
Yes.. you need the pro version which includes the source code - more $$$$
#7
12/13/2007 (9:15 pm)
Currently there is no way to accomplish what you want without modifying the editor. As mentioned, if you purchase the Pro version of TGB you get access to the source of the engine as well as the tool; however, one thing that you can do is create "config datablocks" that allow you to pre-define object values and then assign them to objects. Either the "Fish Demo" tutorial or the "Fish Game" tutorial should have a step covering "config datablocks" :)
Torque Owner Brian Wilson