You saved me! Thanks
by Gina-Marie -Netjera- Hammer · in Torque Game Engine · 02/19/2005 (2:33 am) · 2 replies
I've been looking all over trying to find out why I was experiencing errors in Chapter 3. I noticed there were a few typos, with beginning braces appended to the end of previous lines, and I figured those wouldn't be an issue if I dropped them to the next line. However, I was still experiencing problems with running moveshape.cs and turnshape.cs.
1) MoveShape.cs: If I ran the functions separately as "$tt = InsertTestShape();", "MoveShape($tt,35);", then they ran correctly. But when I ran, DoTestMove, the heart would drop out of the sky at the final position. It's in the right spot, but it doesn't drop at the initial position and then move (unless it's happening too fast for me to see?), it drops at the final position.
2) TurnShape.cs: The shape wouldn't visibly rotate at all. Even though I was fairly certain I had entered the program correctly and I had called it from the engine correctly. ("exec("CH3/turnshape.cs");" "$tt = InsertTestShape();" and "$tt = TurnShape($tt,30);" . Since the call to TurnShape never worked, of course the "DoTestMove" function never worked, either.
However, after many, *many* hours of searching, I stumbled upon the forums here and a few hours later found this thread: www.garagegames.com/mg/forums/result.thread.php?qt=21680. Apparently, there was a line missing in the TurnShape function, and as soon as I added it, I could see the rotation of the heart as expected.
First, I'd just like to thank everyone who posts to these forums. I could've been stumped for much longer than the frustrating two-days I spent. Thank you, thank you!
Second, can anyone tell me if the heart is supposed to visibly move in the MoveShape function? Or does it go so fast that you only see it drop from the sky in the final position. I'm tending toward the latter, since if I put in the calls individually I *do* see it drop, and then move. I just want to be sure that I didn't miss anything important in the "DoTestMove" function.
Thanks a bunch!
1) MoveShape.cs: If I ran the functions separately as "$tt = InsertTestShape();", "MoveShape($tt,35);", then they ran correctly. But when I ran, DoTestMove, the heart would drop out of the sky at the final position. It's in the right spot, but it doesn't drop at the initial position and then move (unless it's happening too fast for me to see?), it drops at the final position.
2) TurnShape.cs: The shape wouldn't visibly rotate at all. Even though I was fairly certain I had entered the program correctly and I had called it from the engine correctly. ("exec("CH3/turnshape.cs");" "$tt = InsertTestShape();" and "$tt = TurnShape($tt,30);" . Since the call to TurnShape never worked, of course the "DoTestMove" function never worked, either.
However, after many, *many* hours of searching, I stumbled upon the forums here and a few hours later found this thread: www.garagegames.com/mg/forums/result.thread.php?qt=21680. Apparently, there was a line missing in the TurnShape function, and as soon as I added it, I could see the rotation of the heart as expected.
First, I'd just like to thank everyone who posts to these forums. I could've been stumped for much longer than the frustrating two-days I spent. Thank you, thank you!
Second, can anyone tell me if the heart is supposed to visibly move in the MoveShape function? Or does it go so fast that you only see it drop from the sky in the final position. I'm tending toward the latter, since if I put in the calls individually I *do* see it drop, and then move. I just want to be sure that I didn't miss anything important in the "DoTestMove" function.
Thanks a bunch!
About the author
Art, Games, Life www.netjera.com See my in-progress website and game design work at: www.netjersoft.com!
#2
Torque seems very similar but I'm still feeling a bit like I'm in a bubble and can't get out. Is Chapter 4 supposed to be an overview of all the modules you need to make a game? I'm typing all these things in, and I'm seeing how they connect, but I'm sort of unsure why I need them all.
Everyone take care :)
02/21/2005 (11:21 pm)
Heh. I hope you guys don't get sick of me. I have some programming experience (BASIC, PASCAL); but it's *ooollld* and it only really helps me understand the programming logic.Torque seems very similar but I'm still feeling a bit like I'm in a bubble and can't get out. Is Chapter 4 supposed to be an overview of all the modules you need to make a game? I'm typing all these things in, and I'm seeing how they connect, but I'm sort of unsure why I need them all.
Everyone take care :)
Torque Owner Joe Bestor