Game Development Community

TDN platformer tutorial problem

by David Reynolds · in Torque Game Builder · 10/08/2005 (10:16 am) · 9 replies

I've been trying out the platformer tutorial on TDN: tdn.garagegames.com/wiki/T2DScript/PlatformerPhysics (btw I love how TDN is looking) I've run into a couple of problems though. In the CreatePlayer() function the tutorial uses:

$player.setCollisionResponse(CLAMP);
$player.setCollisionMaxIterations(2);

when I run it I get an unknown command error for each of them. Are these functions apart of a new release of T2D? or are they deprecated? If they are deprecated what would I use instead?

Before I got this error the tutorial was using:

$player = new t2dStaticSprite()
   {
      scenegraph = t2dscene;
   };

which caused problems as well so I changed it to:

$player = new fxStaticSprite2D()
   {
      scenegraph = t2dscene;
   };

thanks

#1
10/08/2005 (10:29 am)
When the next version of T2D comes around, we'll notice that all the T2D objects will have changed names. Basically, they change from fxStaticSprite2D to t2dStaticSprite.
I guess it's not fair to call T2D an fx effect any longer.

--
Hans
#2
10/08/2005 (10:31 am)
The next version of T2D will include all the classes been renamed from using the "fx" prefix to the "t2d" prefix, so I guess the TDN stuff has been written with that in mind.

As for CLAMP I've seen it mentioned a few times, but I can't remember where, it might have been in one of Melv's plans about the new collision changes he's been adding for the next release.
#3
10/08/2005 (10:32 am)
@Hans, Thank you that's good to know. Do you think it's worth while getting the latest from CVS? (I'm assuming we can)
#4
10/08/2005 (10:33 am)
T2D isn't available via CVS. Although Josh did mention there might be a beta release of the new version for everyone to play around with.
#5
10/08/2005 (10:44 am)
@Gary, thanks for the info. I'm looking forward to the beta, I hope they let us play with it.
#6
10/08/2005 (3:47 pm)
I hope they release the beta build soon so we can make use of the new tdn stuff.
#7
10/09/2005 (9:39 pm)
I wrote the tutorials against an early version of T2D 1.1. From what I heard at IGC it is a matter of mere weeks before you guys get access to it. Hopefully tomorrow I can write up something really quick that will make things work with the current version.

I realized after I left for IGC I probably should have made this clear somewhere in the tutorials and I apologize for that. There are also a couple other changes I have made to the tutorials themselves that will get updated tomorrow.
#8
10/10/2005 (6:10 am)
@Adam, that'll be great! :) I can't wait to see the updated tutorials. Btw I really enjoyed the platformer tutorial. It was very easy to follow aside from the wrong version problem.
#9
10/12/2005 (4:55 am)
Here is some info on the updated tutorial: www.garagegames.com/mg/forums/result.thread.php?qt=35522