Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
help, still no menu... #120357
03/31/07 04:31
03/31/07 04:31
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
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

Re: help, still no menu... [Re: Blink] #120358
03/31/07 16:50
03/31/07 16:50
Joined: Nov 2003
Posts: 1,257
Wade_Adams Offline
Serious User
Wade_Adams  Offline
Serious User

Joined: Nov 2003
Posts: 1,257
try this:


make sure to call you mouse funtion from play_the_movie()
Code:
  

movie_pan.visible = on; // you might want to comment this line if you want to hide the panel afterwards
wait(2); //make sure the panel is visible
mouse(); // call the mouse stuff
level_load(lvl01); // load level nurfcut.wmb




Optimism is an occupational hazard of programming: feedback is the treament.
Kent Beck
Re: help, still no menu... [Re: Wade_Adams] #120359
04/01/07 00:56
04/01/07 00:56
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
still not working, thanks anyway Wade.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1