Splash Screen: Script Problems
by Toby W. Allen · in Game Design and Creative Issues · 01/12/2005 (2:55 pm) · 3 replies
I have setup Torque's GUI for a double splash screen, the firs is the society's one and then GarageGames. So the technique I'm using:
1. Load StarupGui.gui
2. Shows GDS Leeds Screen, fade in/out.
3. Canvas.push to GG Screen
4. Shows GarageGames Screen, fade in/out.
Now I need help, the following steps don't work:
5. Load main menu / or \ Push canvas to main main.
Here is the Code for the first one:
That pushs the canvas to be this:
That doens't load the main menu, just keeps it to the flat black. Weird!
I could change it to:
Thanks,
Toby.
1. Load StarupGui.gui
2. Shows GDS Leeds Screen, fade in/out.
3. Canvas.push to GG Screen
4. Shows GarageGames Screen, fade in/out.
Now I need help, the following steps don't work:
5. Load main menu / or \ Push canvas to main main.
Here is the Code for the first one:
//--- OBJECT WRITE BEGIN ---
new GuiFadeinBitmapCtrl(StartupGui) {
profile = "GuiInputCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "./gdsleeds";
wrap = "0";
fadeinTime = "125";
waitTime = "3000";
fadeoutTime = "125";
};
//--- OBJECT WRITE END ---
function loadStartup()
{
StartupGui.done = false;
Canvas.setContent( StartupGui );
schedule(100, 0, checkStartupDone );
alxPlay(AudioStartup);
}
//-------------------------------------
function StartupGui::click()
{
StartupGui.done = true;
}
//-------------------------------------
function checkStartupDone()
{
if (StartupGui.done)
{
Canvas.setContent( StartupGarageGui );
}
else
schedule(100, 0, checkStartupDone );
}That pushs the canvas to be this:
//--- OBJECT WRITE BEGIN ---
new GuiFadeinBitmapCtrl(StartupGarageGui) {
profile = "GuiInputCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "./GarageGames";
wrap = "0";
fadeinTime = "125";
waitTime = "3000";
fadeoutTime = "125";
};
//--- OBJECT WRITE END ---
function loadStartup()
{
StartupGarageGui.done = false;
Canvas.setContent( StartupGarageGui );
schedule(100, 0, checkStartupDone );
}
//-------------------------------------
function StartupGarageGui::click()
{
StartupGarageGui.done = true;
}
//-------------------------------------
function checkStartupDone()
{
if (StartupGarageGui.done)
{
echo ("*** Load Main Menu ***");
loadMainMenu();
}
else
schedule(100, 0, checkStartupDone );
} That doens't load the main menu, just keeps it to the flat black. Weird!
I could change it to:
//loadMainMenu(); Canvas.setContent( MainMenuGui );That doesn't work either. Any bright ideas as to why??
Thanks,
Toby.
#2
Toby.
01/13/2005 (2:38 pm)
I replaced loadmainmenu(); with loadstartup(); and still nothing. Either it's that the GG image isn't finnishgin which would be strange, or it's cause I'm calling the loadstartup(); twice - once in each file.Toby.
Torque 3D Owner Billy L