Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (7th_zorro), 1,390 guests, and 2 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
I got an error! #296308
10/30/09 21:25
10/30/09 21:25
Joined: Jan 2004
Posts: 60
D
Deha Offline OP
Junior Member
Deha  Offline OP
Junior Member
D

Joined: Jan 2004
Posts: 60
Hello everybody!

A few days ago i insert a title menu into my project...
It works but i cannot stop the music which is playing on media_loop in the title menu
when i click on "start game".
I've tried it with media_stop but does not work!

I got this error
--> Can not convert "ARRAY" to "FIXED"

Need help! Any ideas are welcome! ;-)

Re: I got an error! [Re: Deha] #296310
10/30/09 21:27
10/30/09 21:27
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
What does your code look like?


Your friendly mod is at your service.
Re: I got an error! [Re: MichaelGale] #296374
10/31/09 13:14
10/31/09 13:14
Joined: Jan 2004
Posts: 60
D
Deha Offline OP
Junior Member
Deha  Offline OP
Junior Member
D

Joined: Jan 2004
Posts: 60
function start_program()
{
while (key_any) {wait (1);}
level_load("coast.wmb");
set (anzeige_pan, SHOW);
reset(menue_pan,VISIBLE);
mouse_mode = 0; // Mauszeiger wird nicht eingeblendet
handle = media_loop("wellen.wav",NULL,60);
media_stop("menu.mp3");
}

function main()
{
video_mode = 8;
video_depth = 32;
video_screen = 1;

level_load("menue.WMB");
wait(2);
handle = media_loop("menu.mp3",NULL,90);

mouse_toggle();
reset(anzeige_pan,VISIBLE);

}

Re: I got an error! [Re: Deha] #296379
10/31/09 13:44
10/31/09 13:44
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
you have to put in the handle of your music.
example:
var lala_handle;

function main()
{
lala_handle=media_loop("lala.mp3",NULL,90);
while(!key_any)wait(1);
media_stop(lala_handle);
}


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: I got an error! [Re: alibaba] #296558
11/01/09 18:20
11/01/09 18:20
Joined: Jan 2004
Posts: 60
D
Deha Offline OP
Junior Member
Deha  Offline OP
Junior Member
D

Joined: Jan 2004
Posts: 60
Great it works! ^^
Thank you so much alibaba! ;-)


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