Game Development Community

dev|Pro Game Development Curriculum

Torque 2D Tutorial - Creating the Physics Demo

by Matthew Langley · 03/19/2005 (2:50 pm) · 17 comments

Download Code File

This file is far too big to be posted here so I formated it for html...

here is the link
(or click the .html file above)



I split it up into 5 steps, I would expect it might take a few sittings to get through this... I hope you enjoy, please report any bugs, this is a lot of info and It took multiple hours, so I apologize if there are any errors, please report them :)

Hope you enjoy and learn something from this

About the author

Was a GG Associate and then joined GG in 2005. Lead tool dev for T2D and T3D. In 2011 joined mobile company ngmoco/DeNA and spent about 4 years working game and server tech. 2014 joined startup Merigo Games developing server technology.


#1
03/19/2005 (4:26 pm)
Hmm. The link seems to only send me back to this page. =P
#2
03/19/2005 (4:37 pm)
Same here
#3
03/19/2005 (5:07 pm)
Ok now it should work... forgot every time you update a resource you have to re-upload the file lol (sorry bout that)
#4
03/19/2005 (5:30 pm)
Thank you very much. I've been needing something like this.
#5
03/19/2005 (5:48 pm)
glad it could help :)
tried to put as much detail and explanation into this as I could (learned a couple things myself while doing so)... about 70-80% of this is GUI also, so if you aren't familiar with how the GUI works this should help

... btw heres a link to the Phsyics Demo if you want to see the final product
#6
03/23/2005 (11:11 am)
Ok this is getting insane. I'd like to see everyone subscribing for a lecture "how to make a proper tutorial" of Matthew :)

Great tutorial. I could skip the parts i know or understand easily and the complete code sections make it easy to check if everything's in there.

At first i found it strange that the functions were placed inside the GUI file.. But when i started thinking of the strong link between the controls and the logic it seemed to make sense once more hehe..

Is this something commenly done? (logic in a .gui file or in seperate files?)..

oncemore greetz,

::EeKay::
#7
04/02/2005 (8:11 am)
Good stuff
#8
04/03/2005 (6:21 am)
Matthew "King BoB" Langley for president!!!! Thanks alot! This is great stuff aswell as your
other tutorial on particles!
#9
04/04/2005 (8:37 pm)
Glad you all enjoyed :)

@EeKay - In the Torque GUIs they tend to have a combination of GUI's with scripts in it and guis with seperate .cs files named the same... all in all .gui's are really script files and can be run as one or the other, or vice versa... but to answer your question it is used both ways in the core of Torque and T2D... (at first I though it was weird too lol, but now I like it for organization reasons)...
#12
05/10/2005 (10:49 am)
I can't access the link for this one. I get the following error back:

Forbidden

You don't have permission to access /uploaded/code/7381.torque2dtutorial.html on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Maybe its been lost in the site re-organisation?

Any help greatly appreciated.

Cheers,
Martin
#13
05/12/2005 (8:59 am)
the link works now :)
#14
05/12/2005 (10:22 am)
outstanding, cheers Matt


Martin
#15
05/16/2005 (9:12 am)
I'm a new intern at GG. It's my 3rd day here, and I came in knowing nothing about T2D or TGE for that matter. After going through this tutorial, I can say it helped alot. I appreciate the effort you put into this, Matt.
#16
05/16/2005 (11:18 am)
Welcome to the community and hope your have a blast at GG :)

Glad you enjoyed it and learned from it. I put a lot into my tuorials so I appreciate the response. Best of luck learning T2D and TGE, its a fun, if a bit challenging, process.
#17
09/09/2005 (9:25 am)
You can now get this tutorial along with 9 others in a T2D "Tutorial Pack"... in this pack each tutorial is an external html file so you can use them offline :)