Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, 7th_zorro, 1 invisible), 890 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Stupid SED? (small code) #257821
03/25/09 18:21
03/25/09 18:21
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
can't fint any mistakes in the following code but somehow it doesnt change the panel when the mouse touches the button and it won't make any sounds (beep();) only if I press the button p off course.
Does anyone know whats wrong?
Code:
function overbeep
{
	beep();
}

on_p = overbeep;

panel playerpan
{
	pos_x = 0;
	pos_y = 0;
	bmap = hintergrund;
	flags = visible,refresh,overlay;
	layer = 1;
	button = -15,-8,mainbtn,mainbtn,mainbtn,null,null,null;
	button = -15,-8,startbtn,startbtn,startover,overbeep,null,overbeep;
	button = -15,-50,stopbtn,stopbtn,stopover,overbeep,null,overbeep;
}

function main
{
	wait(1);
	video_window(NULL,NULL,16,"AztecMP3-Player V: 1.0");
	video_set(420,120,0,0);
	mouse_mode = 2;
	mouse_map = cursor;
		 while(1)
  {
    MOUSE_POS.X = mouse_cursor.x;
    MOUSE_POS.Y = mouse_cursor.y;
    wait(1);
  }
} 

best regards

Aztec


Visit:
schwenkschuster-design.de
Re: Stupid SED? (small code) [Re: aztec] #257825
03/25/09 18:39
03/25/09 18:39
Joined: Apr 2006
Posts: 273
Germany, NRW
Meerkat Offline
Member
Meerkat  Offline
Member

Joined: Apr 2006
Posts: 273
Germany, NRW
Ich bin mir nicht sicher. Aber ich glaub du musst die Abfrage des

Code:
on_p = overbeep;


in die Main function schreiben. So funktionierts bei mir. ^^


http://www.gpi-studios.com

OS: Windows 7 Home Premium (64 Bit Version)
AMD Athlon 64 X2 Dual Core Processor 5200+
6gb DDR 2 - RAM
NVIDIA GeForce GTX 460
GameStudio Version A8 Commercial
Re: Stupid SED? (small code) [Re: Meerkat] #257829
03/25/09 19:28
03/25/09 19:28
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
also haupsächlich geht es darum, dass die Buttons nicht korekt angezeigt werden. wenn ich über sie herüber fahre welchseln sie nicht zum "bmapover" panel trotzde versuch ich deinen Tipp mal


Visit:
schwenkschuster-design.de
Re: Stupid SED? (small code) [Re: aztec] #257834
03/25/09 20:04
03/25/09 20:04
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
maby this is your rpoblem

Buttons outside the panel area won't react on the mouse. The panel area is defined either by the size of the panel background bitmap, or by the size_x/y parameters. If the panel only consists of a single button and has no background bitmap, always place it at the 0,0 position


"empty"
Re: Stupid SED? (small code) [Re: flits] #257855
03/25/09 23:25
03/25/09 23:25
Joined: Jun 2008
Posts: 428
Rasch Offline
Senior Member
Rasch  Offline
Senior Member

Joined: Jun 2008
Posts: 428
Probiers mal damit!

Code:
function overbeep
{
	beep();
}

on_p = overbeep;

panel playerpan
{
	pos_x = 0;
	pos_y = 0;
	bmap = hintergrund;
	flags = visible,refresh,overlay;
	layer = 1;
	button = 15,8,mainbtn,mainbtn,mainbtn2,null,null,null;
	button = 15,8,startbtn,startbtn,startover,null,null,overbeep;
	button = 15,50,stopbtn,stopbtn,stopover,null,null,overbeep;
}

function main
{
	wait(1);
	video_window(NULL,NULL,16,"AztecMP3-Player V: 1.0");
	video_set(420,120,0,0);
	mouse_mode = 2;
	mouse_map = cursor;
		 while(1)
  {
    MOUSE_POS.X = mouse_cursor.x;
    MOUSE_POS.Y = mouse_cursor.y;
    wait(1);
  }
} 


Re: Stupid SED? (small code) [Re: Rasch] #257900
03/26/09 12:32
03/26/09 12:32
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline OP

Expert
aztec  Offline OP

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Ach ich habs verstanden.
Leide tut sich trotzdem nichts auch wenn sie sich nicht in einem positiven x und y Wert befinden, aber ich glaub ich weis warum es nicht reagiert werd es einfach mal versuchen was mir grad eingefallen ist

EDIT: Okay es ist gelößt die Button haben sich gegenseitig behindert und das habe ich nicht berücksichtigt ^^ sorry für den Aufstand den ich gemacht habe

Last edited by aztec; 03/26/09 12:39.

Visit:
schwenkschuster-design.de

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