Game Development Community

GUI Splash Before Mission

by none · in Torque Game Engine · 04/23/2010 (10:23 pm) · 2 replies

Alright, I fixed my saving problem :D. Sorry to post another question so soon but... I'm making a game based on the Vietnam War based on factual battles. Before each mission, I want to show the player a gui with information about the historical battle and an overview of the map. How could I make a unique loading screen for each mission or a splash screen when the mission loads that stays for like 45 seconds? Thanks!

#1
04/24/2010 (6:24 am)
This is a simple one. Looking in "client/ui/startupGui.gui" and you'll see how to make your splash screen. As for making it stay for 45 seconds, look at the bottom of startupgui and you'll see the timer function.

function loadStartup()
{
   StartupGui.done = false;
   Canvas.setContent( StartupGui );
   schedule(100, 0, checkStartupDone ); // 100 is time in milliseconds
To load your gui before each mission, you would need a custom cycleGame command to tell torque which splash to load, then load the mission directly from the splash.
Hope that helps.
#2
04/24/2010 (3:05 pm)
LOL I'm a really big noob. More specifically how would I call a GUI to pop up like say after the level loads, a gui pops up and then disappears in x time. Where and how would i call a function to do this?