Game Development Community

splash screen woes

by rennie moffat · in iTorque 2D · 04/26/2010 (7:18 am) · 22 replies

Hi there, I am having trouble getting my splash screen to go up. Currently, when I run my game it simply fades in which ever level/scene is curretnly open in the editor leaves it for the time length as programmed in my splash.gui and the fades out into black.




I am have ing trouble understanding the initialise project function's contents. Should I be setting schedules and stuff in here? Like, after 4 secs loadMainMenu();?


function initializeProject()
{	
   $splash = 1;
   exec("~/gui/splash.gui");               
   exec("./gameScripts/splash.cs");  
   
   // Load up the in game gui.
   exec("~/gui/mainScreen.gui");

   // Exec game scripts.
   exec("./gameScripts/game.cs");

   startGame( expandFilename($Game::DefaultScene) );
   
   ///startGame(%level); 
   $defaultScene = "game/data/levels/level1Pt1.t2d";
   getSplashNumber();
   loadSplash(); 
}

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.

Page«First 1 2 Next»
#21
06/21/2010 (11:51 am)
Your splash should be portrait 320x480 - it will be rotated automatically.

Post your code for the loading of the scene and I'll take a look.
#22
06/21/2010 (12:03 pm)
Ok, so I actually just got both to work.


The image was saved "on it's side". I simply rotated it in Preview.

and the level was on how you had set it up before which works. I was calling a level which did not exist. I thought the default scene was loading as native to the example. My bad.



Well Scott, you may still earn that money yet.


PS. this is the 8th time I have made this reply as my Airport I keep turning off to check and reload my project, then write a reply I hit send and all info lost because Airport is off. No more tho my man, no more.





Thanks!
Page«First 1 2 Next»