Hello I have written a small splash screen wdl for a game I am working on
that has four screens at the start of game. What I am looking for is a little
help on a function that will loop back to the first splash screen and continue
to do this until the space bar is pressed. Hopefully the space bar can be
pushed at any time to continue on to the game while the four screens loop.
Thank you for any help!
The script is listed below!
///////////////////////////////////////////////
// startup splash screens
// script written by william mason May 02,07
///////////////////////////////////////////////
bmap splash1 = <splash1.pcx>;
bmap splash2 = <splash2.pcx>;
bmap splash3 = <splash3.pcx>;
bmap splash4 = <splash4.pcx>;
panel splash_1(){bmap = splash1;layer = 25;}
panel splash_2(){bmap = splash2;layer = 25;}
panel splash_3(){bmap = splash3;layer = 25;}
panel splash_4(){bmap = splash4;layer = 25;}
starter splash_start
{
freeze_mode = 1;
splash_1.visible = on;
sleep (3);
splash_1.visible =off;
splash_2.visible = on;
sleep (3);
splash_2.visible =off;
splash_3.visible = on;
sleep (3);
splash_3.visible =off;
splash_4.visible = on;
sleep (3);
splash_4.visible =off;
freeze_mode = 0;
// remove bmaps from memory
bmap_purge(splash1);
bmap_purge(splash2);
bmap_purge(splash3);
bmap_purge(splash4);