Are TGB tutorials relevant at all for TorqueX??
by Andrew M. · in Torque X 2D · 02/19/2007 (11:18 pm) · 9 replies
Hi guys,
Im new to Torque & recently unlocked my TorqueX / TGB demo by purchasing a TGB license. Since im using the TXE version of TGB, obviously things are a bit different and im having a little trouble trying to complete the TGB scrolling shooter tutorial located at the Torque Developer Network.
for example:
everything was going more or less smoothly until i hit this in part 3 "Know thy enemy" section.
"Next, we want to make sure that when our enemy hits the edge of their limit we get a callback from the engine. To do this, click on the edit tab of the enemy ship and expand the World Limit rollout.
When you get into the rollout, change the Limit Mode to NULL and click the callback checkbox at the bottom of the rollout."
since im using TorqueX TGB and not just normal TGB how do I do this? There is no Limit Mode rollout or Callback checkbox that i can find anywhere?
any help would be greatly appreciated. i have the normal TGB as well, but i really want to use the TorqueX TGB instead.
thanks in advance
-A
Im new to Torque & recently unlocked my TorqueX / TGB demo by purchasing a TGB license. Since im using the TXE version of TGB, obviously things are a bit different and im having a little trouble trying to complete the TGB scrolling shooter tutorial located at the Torque Developer Network.
for example:
everything was going more or less smoothly until i hit this in part 3 "Know thy enemy" section.
"Next, we want to make sure that when our enemy hits the edge of their limit we get a callback from the engine. To do this, click on the edit tab of the enemy ship and expand the World Limit rollout.
When you get into the rollout, change the Limit Mode to NULL and click the callback checkbox at the bottom of the rollout."
since im using TorqueX TGB and not just normal TGB how do I do this? There is no Limit Mode rollout or Callback checkbox that i can find anywhere?
any help would be greatly appreciated. i have the normal TGB as well, but i really want to use the TorqueX TGB instead.
thanks in advance
-A
About the author
Recent Threads
#2
bummer.
when is TorqueX scheduled for release by the way?
02/20/2007 (1:13 pm)
Thanks for the reply Dan - so it basically sounds like I'd have to do most of the steps directly in code and not via TorqueX (for the moment atleast).bummer.
when is TorqueX scheduled for release by the way?
#3
Have you tried importing the old TGB project into TGBX? There's an option to do that.

02/20/2007 (2:00 pm)
TX is the code. Do you mean doing it in TX versus in TGBX (the graphical 2D editor for TX)?Have you tried importing the old TGB project into TGBX? There's an option to do that.

#4
02/20/2007 (3:13 pm)
Before we start a false rumor, there is no current way to import a TGB project into TX. There is a way to import a TGB level into TX, but not the whole project.
#5
02/20/2007 (3:25 pm)
Woops. Thanks Ben. That is actually what I meant. I meant the TGB level, not the project (including code). Sorry if my post sounded like I was implying that!
#6
btw - i havent been able to import TGB levels into TorqueX. Dont know why?
02/20/2007 (6:48 pm)
Jon - yeah i mean that I'm not able to do those above listed functions directly in the editor (the way you can in TGB), and instead you have to do it in code ( C# ) -- atleast until the official release of TorqueX. (?)btw - i havent been able to import TGB levels into TorqueX. Dont know why?
#7
btw - i havent been able to import TGB levels into TorqueX. Dont know why?
02/20/2007 (7:09 pm)
Jon - yeah i mean that I'm not able to do those above listed functions directly in the editor (the way you can in TGB), and instead you have to do it in code ( C# ) -- atleast until the official release of TorqueX. (?)btw - i havent been able to import TGB levels into TorqueX. Dont know why?
#8
02/20/2007 (11:47 pm)
There seems to be some terminology trouble here. You will never be able bring a TGB anything into Torque X. You can however use TGBX to import your TGB levels and save them as something compatible with Torque X. The file menu of TGBX has two items for import. Import project and import level. Don't get excited by import project, it isn't going to write any code for you. Even after the release of Torque X, tutorials written for TGB are largely going to be incompatible with TGBX for reasons Dan M. already pointed out.
#9
garagegames.com/blogs/43969/12355
02/22/2007 (5:24 pm)
I was able to recreate the Fish Game Tutorial from TGB in TorqueX. You can see pics and download it in my blog post:garagegames.com/blogs/43969/12355
Torque Owner Dan Maruschak
Callbacks, for example, are done via C# delegates in TorqueX, not via special-case names in the namespaces of objects as in TGB/TorqueScript.
To get the WorldLimit functionality with TorqueX you need to add a WorldLimitComponent to your object (TGBX does this for you automatically if you click the "Change the world limits for this object" editing button). Now, assuming you do that, you'd next need to set the OnWorldLimit to the method that you want called when that event happened. Doing that in TGBX with the open beta version of TorqueX is a bit rough.