Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Grant, valino), 3,367 guests, and 13 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Re:Turning off a loop sound #12104
03/15/03 07:48
03/15/03 07:48

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



ok ive got the code:

function init_alarm()
{
while (alarm == 0) {wait (1);}
snd_loop(alarm_wav, 100, 0); ]-- turns on
}

function Alarm_off()
{
if (alarm == 1) {wait (1);}
snd_stop(alarm_wav); ]-- should turn off
alarm = 0;
msg_show(level_cht,10);
}

can anyone help thanks.

Re: Re:Turning off a loop sound #12105
03/15/03 15:52
03/15/03 15:52
Joined: Nov 2002
Posts: 2,148
Germany
Dima Offline
Expert
Dima  Offline
Expert

Joined: Nov 2002
Posts: 2,148
Germany
Hi,

I think thats right:

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

var wavehandle;
function init_alarm()
{
while (alarm == 0) {wait (1);}
wavehandle = snd_loop(alarm_wav, 100, 0);
}

function Alarm_off()
{
if (alarm == 1) {wait (1);}
snd_stop(wavehandle);
alarm = 0;
msg_show(level_cht,10);
}

//////////////////////////////
....But I am not sure [Roll Eyes]


I'm not afraid of competition cos I'm know that I'm best
Re: Re:Turning off a loop sound #12106
03/15/03 18:34
03/15/03 18:34

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



thanks but it didnt work and i havent found a solution yet anyone else wanna try ;p


Moderated by  HeelX, Spirit 

Gamestudio download | 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