TGB won't save my Class
by Brandon Store89 · in Torque Game Builder · 07/15/2009 (10:25 am) · 3 replies
I started doing the Shooter Tutorial. I typed the code down perfectly in Torsion and it comes up error free. My ship doesn't move around, so I looked through the code, couldn't find a reason why it wouldn't work. But then I looked into the Game Builder and noticed my character's class was blank. I was certain I typed in its class earlier but No big deal, I retyped it. Ran the prototype and nothing. I type in the class name again, save it, close TGB, reopen TGB and its blank again... I even went to the length of uninstalling TGB and reinstalling it. Still with the same problem, am I just doing something wrong? If so, what? lol
thanks
regards,
Brandon
thanks
regards,
Brandon
About the author
#2
-brandon
07/15/2009 (12:40 pm)
Hah, I wasn't pressing enter. I reopened and pressed enter, that fixed it =D and thanks for giving me the second method you got their, I'll defiantly remember that for future misfortunes. Thanks a lot-brandon
Torque Owner Ehrlich
one qustion: when you type the ship's class, do you hit the "enter" button?... if you dont, that might be the problem.
now, in case you do, and still you cant see the changes, theres a way to solve that.
open up the levl you just buiult with TGB, and find the code block that defines the Ship. there you should find a line that says something like "Class = "";" if you dont find it, create it, and modifyit like somethig like this: "Class = "ship_class";", save the file with torsion, and test your level.
thats a method i use sometimes when i dont have enough time to open up the level editor, i just open the level in torsion or anyother text editor, modify the code block i need, save, and off to try out i go.