Game Development Community

Platform demo... Am I missing something?

by Rick Howard · in Torque Game Builder · 03/03/2009 (6:57 pm) · 3 replies

I have gone through the platform demo several times (starting afresh each time just to be sure) and I am having problems. I feel like I have followed the tutorial faithfully, but I still get odd behavior. The sprite can move indefinitely in either direction (doesn't stop at the "wall"), and when I jump, the sprite just disappears off the top of the screen.

Has anyone else had these issues? I have the latest download of TGB, and I followed the latest platform demo tutorial.

Thanks!
Rick

#1
03/04/2009 (3:26 am)
It souinds like you need to set the world limit to "CLAMP". Make sure you resize the limit to the size of your level.
#2
03/04/2009 (10:12 am)
Thanks! I'll give that a shot.

Rick
#3
03/07/2009 (7:24 pm)
Steven,

Thanks! As soon as I set the animated sprint world limit to clamp, and then sized the world limit box, I got the desired behaviour. At least the sprite stops at the edge of the screen now. This needs to be added to the tutorial.

I am still having trouble with gravity, though. I have added gravity to both the static sprite and the animated sprite, but it doesn't seem to be working. When I jump, the sprite still exits the top of the screen, and when I walk off a platform, it stays in midair. Any more suggestions?

Thanks again,

Rick