Transitions
by Taylor Ringo · in Torque Game Builder · 12/01/2011 (4:02 pm) · 3 replies
I have a question, I know now i need the Torque and Garage Games Logo, so how do I make a transition from one logo, to the other, then to the title screen?
About the author
It all started in the 9th grade when i was going to use Platfrom studio, then Game maker, then Xna now I'm with Torque2D
#2
12/02/2011 (12:08 am)
Use this :startGame(expandFilename($Game::DefaultScene));
function StartSplashScreen1()
{
//Hide the cursor.
Canvas.hideCursor();
//Set the game's content to the MySplashScreen.
Canvas.setContent(MySplashScreen);
//Call the EndSplashScreen1 function.
EndSplashScreen1();
}
function EndSplashScreen1()
{
//Check if the MySplashScreen is done.
if(MySplashScreen.done)
{
//If it is done call the StartSplashScreen2.
StartSplashScreen2();
//And exit out of this function.
return;
}
//If it is not done, after 100 milliseconds call the EndSplashScreen1 function again.
schedule(100, 0, "EndSplashScreen1");
}
function StartSplashScreen2()
{
//Set the game's content to the TorqueSplashScreen.
Canvas.setContent(TorqueSplashScreen);
//Call the EndSplashScreen2 function.
EndSplashScreen2();
}
function EndSplashScreen2()
{
//Check if the TorqueSplashScreen is done.
if(TorqueSplashScreen.done)
{
//If it is done, start the game with the default scene
startGame(expandFilename($Game::DefaultScene));
//And exit out of this function.
return;
}
//If it is not done, after 100 milliseconds call the EndSplashScreen2 function again.
schedule(100, 0, "EndSplashScreen2");
}
#3
12/02/2011 (4:27 am)
so do I have my own scene for this code? and how domi load the .psd? and do make this a behavior or game script?
Conor O'Kane
cokane.com