Fish doesn't move
by David Wade · in Torque Game Builder · 02/16/2010 (11:38 pm) · 6 replies
I started the fishgame tutorial and I can't seem to get the fish to respond to the key presses. Let me know if you want to see the code I typed. I used torsion to type the code. Not sure why it won't work. It seems to compile fine.
About the author
#3
Sorry to waste your time. This is my second attempt at the program and the first time I didn't realize that notepad was a bad idea to type the scripts in so I finally switched over to torsion and that seemed to help. Anyway, I appreciate your effort. Thanks.
02/16/2010 (11:53 pm)
Thanks man, I figured it out. It was a type :(Sorry to waste your time. This is my second attempt at the program and the first time I didn't realize that notepad was a bad idea to type the scripts in so I finally switched over to torsion and that seemed to help. Anyway, I appreciate your effort. Thanks.
#4
02/17/2010 (11:15 pm)
Just thought I'd add that Notepad while inferior to Torsion isn't necessarily a bad idea per se. In fact, many of the people working at GG now began using notepad for scripting.
#5
Thanks for your time!
02/17/2010 (11:52 pm)
Well that's funny because when I started using Torsion the game mechanics worked. However, when I used notepad it didn't seem to work. Obviously, it's me that isn't familiar with torque game builder. Now I can't get the random fish food to work, it continues to drop in the same spot.Thanks for your time!
#6
02/18/2010 (3:12 pm)
I used to use notepad for all my Torquescript back in the day, though Torsion is a huge improvement :)
Torque Owner Cassy Brink
Minalien.com
(Browse to the project directory and either copy/paste the contents of console.log in a reply, or (preferably, if it's a large amount that shows up) put it on pastebin.com and link us).
Things to check:
Make sure that you didn't typo the name of the class in script (make sure that all of the function FishClass::whatever() is named properly)
Make sure that you actually applied the class to the fish object in the editor
Make sure that the code is in a file that is actually being loaded by the game.