New TGB Tutorial on TDN
by Patrick W · in Torque Game Builder · 05/27/2009 (6:38 am) · 21 replies
Hey all,
I posted a beginners tutorial on TDN here.
"It's a simple tutorial for TGB that aims to take someone from zero knowledge of TGB to a working game that is a simplified clone of the arcade hit “Stacker”. A little programming knowledge would be helpful but not necessary as I walk through every step of the process with code examples and screen shots."
Please let me know what you think!
Patrick
I posted a beginners tutorial on TDN here.
"It's a simple tutorial for TGB that aims to take someone from zero knowledge of TGB to a working game that is a simplified clone of the arcade hit “Stacker”. A little programming knowledge would be helpful but not necessary as I walk through every step of the process with code examples and screen shots."
Please let me know what you think!
Patrick
Torque Owner Patrick W
Dream. Build. Repeat.
Comment the following line in game.cs:
then you need to tell TGB to allow mouse events on your bacground image by making the datablock in untitled.t2d look like so:
new t2dStaticSprite() { imageMap = "BackgroundImageMap"; frame = "0"; canSaveDynamicFields = "1"; size = "100.000 75.000"; Layer = "30"; mountID = "2"; useMouseEvents = "1"; };lastly, paste this at the end of untitled.t2d:function t2dStaticSprite::onMouseDown(%this) { checkUserInput(); }Good luck!