[/code]
BMAP* loading_screen_bmp = "loading_screen.bmp";
//PANEL* loading_screen_pan = /// VORHER
PANEL* loading_screen =
{
layer = 15;
bmap = loading_screen_bmp;
flags = SHOW;
}
function load_level()
{
//loading_screen..flags |= VISIBLE; //displays loading screen
set (loading_screen,SHOW};
wait(3);
wait(2);
//loading_screen _pan.flags &= ~VISIBLE; //clears screen
reset (loading_screen,SHOW};
bmap_purge(loading_lv);
level_load("level1.wmb");
}
ACTION levelchange() //*assign this to a map entity blocking the way out of the level*/!!!!
{
set(my,INVISIBLE); //makes entitie invisible
MY.ENABLE_IMPACT = ON; //enables player impact
MY.EVENT = load_level; //function name
}
[code]