i put together a menu, but i dont have a cursor. i dont know why its not working. i dont get any errors, so its hard to tell what the problem is. can someone see the problem?
Code:
var video_mode=7;
var video_screen=1;
var movie_handle;
bmap movie_tga=<gilogonew2.tga>;
bmap playmovie2_pcx=<gistrtw.pcx>;
bmap playmovie1_pcx=<gistrto.pcx>;
bmap pfeil=<pfeil.tga>;
function play_the_movie();
string lvl01 = <nuhvn.wmb>;
panel movie_pan
{
bmap = gilogonew2.tga;
layer = 10;
button=325,400,playmovie2_pcx,playmovie1_pcx,playmovie2_pcx,play_the_movie,null,null;
//if(freeze_mode==1){button=650,430,back_white,back_blue,back_white,game_menue,null,null;}
flags = overlay, visible;
}
function play_the_movie()
{
movie_handle = media_play("inrtocutz.avi", null, 100);
movie_pan.visible = on;
while (media_playing (movie_handle) == 0) // wait until the movie starts playing
{
wait (1);
}
while (media_playing (movie_handle) != 0) // wait until the movie has stopped
{
wait (1);
}
movie_pan.visible = on; // you might want to comment this line if you want to hide the panel afterwards
level_load(lvl01); // load level nurfcut.wmb
}
function mouse()
{
mouse_map = pfeil; // mouse pointer
mouse_mode += 2;
if (MOUSE_MODE > 2) // was it already on?
{
mouse_mode=2;
}
while (MOUSE_MODE > 0)
{
while(movie_pan.visible==on)
{
mouse_pos.x = pointer.x;
mouse_pos.y = pointer.y;
wait(1);}
}
}
many thanks