ok, here is the full code (I did not try it out):
Code:
PANEL* splash_screen =
{
  bmap = splash_jpg;
  layer = 2;
  flags = SHOW | TRANSLUCENT;
  alpha = 100;
}

void splash_screen_remove()
{
  wait(-3); //wait 3 seconds
  while (pan.alpha > 0)
  {
    splash_screen.alpha -= 10*time_step;
    wait(1);
  }
  ptr_remove(splash_screen);
}

//trigger the function within the main function
function main()
{
  ...
  splash_screen_remove();
}



Last edited by MPQ; 11/27/09 21:52.

new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com