Splash Screen creation

Posted By: Dreher

Splash Screen creation - 06/20/09 22:23

Hi there,

Some kind-of noob questions regarding Splash Screens (Loading Screens) and Camera Positions.

Ok here we go:

I'm about to release a Simulation tomorrow, and I want to have 2 splash screens being shown for like 10 seconds before the actual game starts, yet I don't know nor could I find on something on how to do it!

Thanks so much!
Posted By: Ottawa

Re: Splash Screen + Camera Positions - 06/20/09 23:13

Hi!

You can do your splash screens with 2 panels.
Posted By: Dreher

Re: Splash Screen + Camera Positions - 06/20/09 23:17

Originally Posted By: Ottawa
Hi!

You can do your splash screens with 2 panels.


Well, never used that before but as far as I know, there is a tutorial about Panels, so I will check that out!

Thanks wink
Posted By: Dreher

Re: Splash Screen + Camera Positions - 06/21/09 00:32

The Tutorial does explain some stuff, but not how to create a 'Loading screen / Splash screen' that shows for like 10 seconds, before starting the actual game :S

Also need these camera positions fixed, OR a limited Free Cam laugh
Posted By: Dreher

Re: Splash Screen + Camera Positions - 06/21/09 12:01

Update: Camera positions are fixed, I've became a code from someone else, so just the Splash screen creation is left!

ISO help XD
Posted By: Rei_Ayanami

Re: Splash Screen + Camera Positions - 06/21/09 12:09

Thats easy! Spalshscrenn;
Code:
BMAP* Splash = "splash.bmp";

PANEL* splash_pan = 
{
	bmap = splash;
	pos_x = 0;
	pos_y = 0;
	layer = 20;
}

function show_splash()
{
   //put here what must happen that your splash screnn show
   set(splash_pan, SHOW);
   wait(-10);
   reset(splash_pan, SHOW);
}


Just call show_splash in main.
Please!
Hope you understand it.
Posted By: lostzac

Re: Splash Screen + Camera Positions - 06/21/09 12:39

Here is what I use for my splash screens in you want a fade effect

#define OUT 0
#define IN 1

function fade_screen(PANEL* pFade, var* vBool)
{
if(vBool == OUT)
{
while(pFade.alpha > 0)
{
pFade.alpha -= 2.5 * time_step;
wait(1);
}

pFade.alpha = 0;
reset(pFade,SHOW);
}
else
{
set(pFade,SHOW);
while(pFade.alpha < 100)
{
pFade.alpha += 2.5* time_step;
wait(1);
}

pFade.alpha = 100;
}
}


to use this you just call this in main

fade_screen(YOUR_PANEL, IN);

Hope it helps
© 2024 lite-C Forums