Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, kzhao, 7th_zorro), 714 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
ok...menu help, again!!!! #317486
03/31/10 21:30
03/31/10 21:30
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
ok, i got the animated menu to work, then i started to add the cursor for the mouse and the start and quit buttons. i got them on screen, but the dont work at all and the cursor isnt visible. what did i do wrong?

Code:
/////////////////////////////////////////////////////////////////////////////////////////
// copy / overwrite all the files inside the animsprite folder to your game (\office) folder
// don't forget to include animsprite.wdl in your main game file (office.wdl if you are using the templates)
// place this line at the end of your main function: init_animsprite();
/////////////////////////////////////////////////////////////////////////////////////////

bmap panel_pcx = <mosrn3.bmp>;
////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////////////

panel energy_pan // background panel
{
	bmap = panel_pcx;
	layer = 15;	
	pos_x = 1;
	pos_y = 30;
	flags = d3d, overlay, refresh, visible;
}

entity energy_sprite 
{ 
	type = <mo+10.pcx>; 
	layer = 85; 
	view = camera; 
	x = 450; 
	y = 14; 
	z = 44; 
	flags = visible, flare, bright;
} 

function init_animsprite() 
{ 
	while (1) 
	{ 
		energy_sprite.frame += 0.1 * time_step; 
		if (energy_sprite.frame > 10) 
       {
        energy_sprite.frame =0; // loop
       }
		wait (1); 
	} 
}

////////////////////////////////

var effectvol = 50;
var musicvol = 50;

SOUND wave = "eerieint.ogg";
var wavehandle;


bmap start_w=<menustr2.bmp>;
bmap start_o=<menustr1.bmp>;
bmap pfeil=<handcur.bmp>;
bmap exit_o=<menuquit.bmp>;
bmap exit_w=<menuquit2.bmp>;


string sceneext =".wmv";
string scene01 ="samofc.wmv";

string buttonext =".wav";
string buttonsnd ="button.wav";

function start_game();
function exit_game();









panel pn_menue

{ 
  
  button=300,400,start_w,start_o,start_w,start_game,null,null;
  button=300,480,exit_w,exit_o,exit_w,exit_game,null,null;
  //if(freeze_mode==1){button=650,430,back_white,back_blue,back_white,game_menue,null,null;}
  flags = overlay, refresh, visible;
  layer=300;
  
}



function main()
{
level_load("dummylv.wmb");   

Menue();
wavehandle = snd_loop(wave,50,0);
wait(-120); 

}
	

function menue()
  
  {
  	
  	//while(levelstart==0){wait(1);}
  	mouse_mode=2;
  	mouse_map=pfeil;
  	
  	while(pn_menue.visible==on){
  	mouse_pos.x = mouse_cursor.x;
  	mouse_pos.y = mouse_cursor.y;
   wait(1);}
  }
  
function start_game()

{ 
wait(1);
media_play(buttonsnd, null, 50);
media_play(scene01, null, 100);
wait(-120);
level_load("samoffice.wmb");      // load level nuhvn.wmb 
snd_stop(wavehandle); 
wait(1);

}


function exit_game()

{ 
// your exit game stuff here
media_play("button.wav", null, 50);
exit;
}

}




My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: ok...menu help, again!!!! [Re: Blink] #317488
03/31/10 21:35
03/31/10 21:35
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
mouse_mode = 4; //2 is also good

Re: ok...menu help, again!!!! [Re: Rei_Ayanami] #317502
03/31/10 23:18
03/31/10 23:18
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 tried it, didnt work. i think i added the button codes wrong somehow.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: ok...menu help, again!!!! [Re: Blink] #317507
04/01/10 00:28
04/01/10 00:28
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
I checked your code. it works without problem and cursor is visible.

Edit: Maybe there is a problem in your bitmaps or your other codes.

Last edited by Emre; 04/01/10 00:31.
Re: ok...menu help, again!!!! [Re: Emre] #317511
04/01/10 00:48
04/01/10 00:48
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
really? thats odd, I dont see the cursor at all, and the start button and quit button wont work.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: ok...menu help, again!!!! [Re: Blink] #317513
04/01/10 01:12
04/01/10 01:12
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
Yes i'm sure.
Look at this;


Re: ok...menu help, again!!!! [Re: Emre] #317518
04/01/10 01:49
04/01/10 01:49
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
wow, i dont know why it doesnt work for me? it's clearly working for you.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: ok...menu help, again!!!! [Re: Blink] #317519
04/01/10 01:59
04/01/10 01:59
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
ok, i figured out whats wrong, and i dont like the results. i ran the level from the dummy level, and the cursor was absent. as well as the start and quit button not working. so i tried running it from the menu script and it ran fine, but i didnt like the look of the screen. it was awful. i lost the dummy level background and the menu music didnt stop when the start movie played. what a mess. oh well, off to bed, i will work on it in the a.m. Thanks for looking emre.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: ok...menu help, again!!!! [Re: Blink] #317723
04/01/10 23:41
04/01/10 23:41
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
is there a way to keep the backround running behind the menu? i was using the wad file night sky that is animated on the dummy level. now that i know i cant use the dummy level to start the game.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: ok...menu help, again!!!! [Re: Blink] #317840
04/02/10 23:33
04/02/10 23:33
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 gotr the animated sky back, but the background is blue and not black, any idea why? also, when the level loads, i get errors saying certain scripts were not found. i know that simply means the dummy level has to have the scripts included that will be used for the game. i am trying to finish my first game, so any advice will be helpful.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Page 1 of 2 1 2

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