here try this instead
make a new script and name it what ever you want.
put this code in the new script then include the new script in your main script
Code:
string loading_video = <video.mpg>; //Change to your video
bmap loading_lv = <loading.bmp>; //Change to what ever
panel loadingscreen {
bmap = loading_lv; //loading screen name
flags = refresh,d3d;
}
function movie_play()
{
media_play (loading_video, loading_lv, 77);
}
function load_level()
{
loadingscreen.pos_x = (screen_size.x - bmap_width(loading_lv))/2; //centers loading screen
loadingscreen.pos_y = (screen_size.y - bmap_height(loading_lv))/2;
loadingscreen.visible = on; //displays loading screen
movie_play();
wait(3);
sleep(2);
loadingscreen.visible = off; //clears screen
bmap_purge(loading_lv);
LOAD_LEVEL <-->levelname<-->; //level name
}}
ACTION levelchange //*assign this to a map entity blocking the way out of the level*/!!!!
{
MY.INVISIBLE = ON; //makes entitie invisible
MY.ENABLE_IMPACT = ON; //enables player impact
MY.EVENT = load_level; //function name
}
That should work. Although there might be a problem when the video plays, it may not play the whole thing. I don't know. I'm pretty sure it will work though. BTW, this is written in A6 C-Script not A7 Lite-C.