Game Development Community

torque script

by Evan Conrad · in Torque X 2D · 07/26/2009 (11:16 am) · 6 replies

I have no knowledge of programming whatsoever. but i would love to learn to program, were would i start? in the tutorials all it is is a copy of what you need to do, no real explanation.. were can i find that? Were can to even begin????? im planning on getting TGB 2d, but i want to learn how to program before i buy it.. any place i can learn?

#1
07/26/2009 (11:52 am)
Hey Evan,

First off I want to make sure you are in the right place here, there are many different variations of Torque. Your topic title mentions torque script and you also mention TGB 2D.

I believe that Torque Game Builder 2D (TGB 2D) is the engine that is powered behind a C++ implementation and also uses torque script. You are currently posting in the Torque X 2D forums which is powered by a C# implementation, built on top of the XNA framework and there is no torque script for this product.

So before we go into answering questions, what product is it that your asking about? Torque Game Builder or Torque X?
#2
07/26/2009 (1:15 pm)
Oh I thought they were the same thing... Tbg is the demo version I have now, and the one I'm planning on getting it apears..
#3
07/26/2009 (3:16 pm)
TGB is different than TX2D. It's a matter of preference as to which engine you want to start with. It all depends on what your goal is. If you want to develop for cross platform, TGB is your best bet. If you want to develop for PC/Xbox 360, then TX2D is your best bet.

One other important factor: TX2D uses C# which is a real, professional programming language with tons of support and good books on the language. TGB uses Torque Script, which is a variant of C++, but with far fewer good references and resources.

One last thought: if you've never programmed anything before, you might want to start by writing some programs that target the command line. That's a way faster way to learn your fundamentals without the added complexity of a game engine. It's less sexy, but you also don't learn calculus before algebra, arithmetic, or counting. If you want to start at the deep end of the pool, you are more likely to suffer the frustrations. :-)

Don't get discouraged. Be proud of your baby steps. Most or all, plan for a marathon, not a sprint.
#4
07/26/2009 (8:40 pm)
K thx =) the problem is I don't own a pc or a xbox so wud have no way to test or use anything I were to make, is there anything at all for tgb? Thx for the advice bout programming, I'll see what I can do

Thx =)
#5
07/26/2009 (9:09 pm)
So, by this, I assume you mean you are on a Mac? In this case, TGB is your only answer... unless you run Base Camp and dual boot into Windows. Macs make some of the best PCs out there.

There are some books on Torque that would be moderately helpful, but this is still diving into the deep-end of the pool. I've been programming for as long as I can remember and getting my head around how TGB "started up" and getting my head around Torque Script was a lot harder than just starting with a good compiler. You just lose a lot with an interpreted language when you are learning.

The best reference for learning Torque Script is the book they sell on this site: www.garagegames.com/products/gameprogrammersguide. It's focused on Torque, not TGB, but it would be essential for learning their language and way of work.

Good luck!
#6
07/28/2009 (3:41 am)
I'd wait for T2D to come out... Looking good so far.

As of your tutorials, i even checked the documentation and there wasnt much there.
I dont even know c# for all i care...