Where is Starter.Racing loadMyMission()?
by Infinitum3D · in Torque Game Engine · 09/26/2008 (6:18 am) · 1 replies
Does Starter.Racing have a loadMyMission() function? I can't find it anywhere.
I'm working off the Tutorial.Base demo from gettingStarting.pdf
I've added some flags to stater.racing, which score points onCollision. When all are collected, I want the pop-up window to say "start again" and "quit", just like the tutorial.
But the tutorial has "loadMyMission()" as the messageBox "yes"
This doesn't work with racing.mis and I tried replacing loadMyMission() with onStart(); but it says 'canvas already created' and crashes.
If starter.racing doesn't have a loadMyMission() function, what function can I call to clear the game and restart the level?
Thanks!
Tony
I3D
I'm working off the Tutorial.Base demo from gettingStarting.pdf
I've added some flags to stater.racing, which score points onCollision. When all are collected, I want the pop-up window to say "start again" and "quit", just like the tutorial.
But the tutorial has "loadMyMission()" as the messageBox "yes"
This doesn't work with racing.mis and I tried replacing loadMyMission() with onStart(); but it says 'canvas already created' and crashes.
If starter.racing doesn't have a loadMyMission() function, what function can I call to clear the game and restart the level?
Thanks!
Tony
I3D
Torque Owner Infinitum3D
All I had to do was copy the function loadMyMission() from tutorial.base\main.csn paste it into starter.racing\main.cs (at the very bottom) and change the name of the mision (where it says expandFilename) to racing.mis
save
delete dso.s
restart and it works.
Now I just have to change the name of the function and missions and I can use triggers to get from one mission to the next.
Tony
I3D