Timed logo gui
by Johnathan Moore · in Torque Game Engine · 09/25/2005 (6:15 am) · 6 replies
Hey, how can you make timed logos, like with the starter.fps and skip them when pressing a key?
About the author
Been tinkering with this since I was young.
#2
09/25/2005 (7:54 am)
I copied the code but it didnt work and didnt show any syntax errors :s
#3
09/25/2005 (8:39 am)
Here is how I did it...package GGLogoScreen
{
function start()
{
Canvas.setContent(mainScreenGUI);
new ActionMap(ggLogoMap);
ggLogoMap.bind(keyboard, space, cancelScreen);
ggLogoMap.push();
$ggLogoSchedule = schedule(5000, 0, "finish");
}
function cancelScreen(%val)
{
if(%val)
{
echo("Cancel GG Logo");
cancel($ggLogoSchedule);
finish();
}
}
function finish()
{
ggLogoMap.pop();
deactivatePackage(GGLogoScreen);
activatePackage(InsectaTitleScreen);
start();
}
};
#4
09/25/2005 (8:43 am)
Thanks ill try that ,ive never used pakages before ill find them in the book
#5
Did you see your logo? If not, then could be you didn't call the function to display.
You saw your logo, but it stayed on the screen (Note: no keypress)? could be time too long, or the scheduled function fired but was not told to change the display.
You saw your logo, but pressing a key would not make it vanish. Could be you didn't have the onAction function coded.
09/25/2005 (10:15 am)
@John, How did it not work? Did you see your logo? If not, then could be you didn't call the function to display.
You saw your logo, but it stayed on the screen (Note: no keypress)? could be time too long, or the scheduled function fired but was not told to change the display.
You saw your logo, but pressing a key would not make it vanish. Could be you didn't have the onAction function coded.
#6
09/25/2005 (12:03 pm)
It works great, ive re-made all my GUI with start and finish functions, thanks
Torque Owner CdnGater
Duggan Software Studio