Game Development Community

TorqueX Tutorials without TGBX?

by Kneekick · in Torque X 2D · 06/27/2007 (1:42 pm) · 5 replies

Does anyone know of some basic tutorials on how to use TorqueX through code instead of using TGBX? Or any plans to post some?

I can follow the API.chm file, I just need some basic code samples on creating a sprite object, setting up an animation, etc....

And before I get the "why don't you just use TGBX?" questions, some of us .NET coders like to code, not use wizards. I'll definetly use TGBX for GUI stuff but I like coding my stuff my way. Nothing wrong with TGBX I just would rather not use it for everything.

Is the code in the TorqueCombat files still relevant with the (non-beta) released version of TorqueX?

#1
06/27/2007 (3:34 pm)
I'm fairly certain that the TorqueCombat files will work on the released version of TorqueX, but if you come across problems, feel free to post. Not sure if there are any GG tutorials (yet) for these sorts of scripting... I'm still in the process of from TGB to TXB but I'll give this a shot:

//this creates a scene object...
public T2DSceneObject SomeObject
{
	get { return _someObject; }
	set { _someObject = value; }
}

Also note that TXB is C# based, so searching for C# resources might help until the TDN stuff is updated.

I would check this out, a nice little tutorial. More on how to create objects/set their position/name/etc:
www.scriptedfun.com/category/xna/
#2
06/27/2007 (5:31 pm)
Thanks.

I'm a full time C# developer so that's why TorqueX appeals to me. I've been using XNA since the official 1.0 release and have written a lot of helper classes for my game. But when you find you're spending all your time building helper classes and not making any progress on your game it's frustrating. So I would like to find an engine I can use.

I've had TGB for a couple years and I love the GG team so I thought I'd try out TorqueX. But I don't want to be forced to use the editors if I use it.

Also are the TorqueCombat files part of the TGBX download? I don't seem them as part of the TorqueX binary install.
#3
06/27/2007 (6:40 pm)
TorqueCombat is installed as a template, so you have to create a new C# project using it to see the source files.
#4
06/27/2007 (7:41 pm)
Fyi, i added a "hello world" sample to tdn a day or two ago.

it's the only one up there so far, but it's a start right! (hint to others, post stuff to tdn)
#5
06/28/2007 (5:47 am)
I would love to contribute to TDN but it says I don't have access to the TorqueX TDN. Only PRO owners have access.