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