Starting the Game
by Jim Schuman · in Torque Game Builder · 02/21/2009 (2:58 pm) · 4 replies
I kinda forgot alot because I haven't used TGB in a while but I have a question.
I'm making a button in the gui and I want it to start the game, what was the command for loading the game?
I'm making a button in the gui and I want it to start the game, what was the command for loading the game?
About the author
#2
sceneWindow2D.loadLevel(expandFilename("level name"));
I'm not sure if the expandfilename is needed but I had to do it.
02/21/2009 (3:51 pm)
I think this is what you are looking for -sceneWindow2D.loadLevel(expandFilename("level name"));
I'm not sure if the expandfilename is needed but I had to do it.
#3
sceneWindow2D.loadLevel("game/data/levels/level2.t2d")
I don't know if you were going in that direction. But thanks anyways.
02/21/2009 (4:25 pm)
Thanks, your idea didn't really work, but not to worry. I got it and here is the command:sceneWindow2D.loadLevel("game/data/levels/level2.t2d")
I don't know if you were going in that direction. But thanks anyways.
#4
02/21/2009 (7:54 pm)
Uhhh that's the command I posted but I'm glad I could help.
Torque Owner Jim Schuman