Game Development Community

Torque 2D Unofficial F.A.Q.

by Matthew Langley · 03/05/2005 (3:35 pm) · 16 comments

Download Code File

---------NOTE: click the included .html file (look up) to view an easier to read format!--------


Torque 2D Unofficial F.A.Q. - As well as general help

The F.A.Q. got too large for the board happy version... click the above .html link or click here

Instead on this part I will include links to resources/tutorials people have...

Explanations by Melv:

Tile Map Explanation

Tutorials:
T2D Starter Gui Tutorial
T2D In-Depth Tutorial - Creating the Physics Demo
T2D Particle Tutorial

Tools:
Collision Vertex Plotter Utility
Image Datablock Tool


Resources:
Torque 2D Physics Demo
Torque 2D Simple Debug GUI
T2D Minimal Starting Point
Text Display Class


if anyone has anything they want me to add just ask...

(ps. soon I will have a tutorial that goes through step by step on how to creat ethe physics demo, from creating and explaining every property of the sprites/objects, to explaining in detail creating the gui interface - I have part 1 on the boards, halfway through part 2 right now, I'm trying to explain everthying very detailed so its getting long lol)

#1
03/05/2005 (3:36 pm)
Thanks Matt!

And re: #18... woops, I forgot to turn on relative paths there. Grr... XCode, why oh why do you default to absolute...
#2
03/05/2005 (3:45 pm)
Glad it can be edited :) Think I'll have some private MySQL (with access only to me) where I can then have it generate a html file and "forum happy" tagged file (for this resource) so then I can keep updating easily

@ #18: what do I need to change ? lol sorry don't have a mac, someone just suggested I added that
#3
03/05/2005 (10:26 pm)
Matt, is this going to take the place of the faq page you're running?
#4
03/06/2005 (12:16 am)
yes, might as well bookmark this, I will keep this updated as well as provide a html format downloadable page so you can keep it on your pc with easy access etc... advantage of this is it should be searchable on the resources as well as ensuring only SDK owners get access :)
#5
03/06/2005 (5:14 pm)
testing something

ok got it privately set up so I can load it to a MySQL database then it outputs a format for html file and another format with forum happy tags so I can update more
#6
03/06/2005 (6:29 pm)
Updated March 6th, 2005....

check notify to receive e-mails when this is modified...

note the one thing I couldnt translate to board code is outside links so grab the html file for that
#7
03/07/2005 (12:12 am)
Wow!

Thanks for this. Can I just comment and say thank you to the shiny new T2D community. I've come here with questions a dozen times, and I ALWAYS have found someone else has asked my question, and at least one other person has answered with the info I needed. This FAQ helped clarify numerous sticking points for me as well. Thank you all!

-Joe
#8
03/08/2005 (9:51 am)
note: just realized a bug, the html file that is spit out generates two quotes "" for every single quote "... I fixed this in the board output format (except in the table of contents), just need to apply it to the html file... so if you see two quotes its not two quotes its a single quote
#9
03/13/2005 (1:15 am)
fixed the double quote bug for the board and html format, will update the FAQ tomorrow with some stuff I missed while at GDC (still running off of 1 hour of sleep - caught about 30 more min of shut-eye on the plane too), if anyone has anything they want me to add feel free to e-mail me at

admin@razedskyz.com
#10
03/13/2005 (9:14 pm)
updated March 13th, 2005
#11
03/16/2005 (10:55 am)
modified - up to 48, now too large to keep the board happy format
#12
03/20/2005 (10:12 am)
Under Q#6, I noticed 2 typos:

$circleGuy.playAnimation(circleGuyStandLeft)
should be
$circleGuy.playAnimation(circleGuyStandLeft); // added the ;

and

playerMap.bindCmd(keyboard, "space", "playerFire();", ");
should be
playerMap.bindCmd(keyboard, "space", "playerFire();", ""); // added the ending "

Besides those, your FAQs has greatly helped me learn about animated sprites, and for that I thank you.

1 question:
Why did you use an ImageMap with the character doing actions in both directions? Wouldn't the 'setFlip' command be much more efficient?


EDIT: 1 more thing I noticed, the spell casting has a few minor issues (such as castSpellRight dosen't seem to do anything besides play the animation - no particle effects like the castSpellLeft function).
#13
03/21/2005 (8:22 am)
Thx for catching those, when I get home tonight I plan on updating it anyways so this will help so I can clean that up...

the last error with the " has to do with my php conversion scripts, I have all this loaded to a MySQL database (privately accessed - for ease of update) then have scripts that convert it to board-happy tags and html happy tags... the " doubling was a problem that probably got saved lol...

and to answer your other questions, I did the animation example the second day T2D was released, so was bumbling around in the T2D Reference docs trying to figure it out, didn't know about setFlip() then and never actually finished the Circle guy... hes an incomplete circle guy :(
#14
03/21/2005 (12:41 pm)
lol. Poor little circle guy. XD
#15
03/25/2005 (4:31 pm)
hmmm
I didnt even notice any threads for the Collision Vertex Plotter Utility.
Its cool.
#16
07/29/2005 (8:34 am)
Semi-circle guy? ;p