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
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 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
sounds go on playing during level change #89863
09/14/06 10:46
09/14/06 10:46
Joined: Aug 2003
Posts: 50
Norway
anime Offline OP
Junior Member
anime  Offline OP
Junior Member

Joined: Aug 2003
Posts: 50
Norway
I have another problem When a cutscene starts playing during level change, the sound from the last level continue playing, although the cutscene sounds are also playing. Very annoying. Any solutions?.

Re: sounds go on playing during level change [Re: anime] #89864
09/14/06 10:59
09/14/06 10:59
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
You´ve to use a handle. Example:

var sndhandle;
sound music_snd = <music.wav>;

...

sndhandle = snd_loop(music_snd, 100, 0);


...

snd_stop(sndhandle); <-- With this command you can stop the music / sound


no science involved
Re: sounds go on playing during level change [Re: fogman] #89865
09/14/06 11:35
09/14/06 11:35
Joined: Aug 2003
Posts: 50
Norway
anime Offline OP
Junior Member
anime  Offline OP
Junior Member

Joined: Aug 2003
Posts: 50
Norway
Hi and thanks for the answer.

My problem is there are lots of sounds in the area where the player enters the next level. The sounds have all been placed different places around the exits as sound icons. Is there a way to make them all stop playing at once?.I am not a very good programmer, so the more spcific you answer, the happier I get :-)

You can see images and some video material from the project here:
http://home.no.net/mselsjor

Re: sounds go on playing during level change [Re: anime] #89866
09/14/06 11:54
09/14/06 11:54
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Take a look at the manual under "snd_stopall (mode);"

edit:

Example:

function stop_all_sounds
{
snd_stopall (4);
}

Now call "stop_all_sounds()" before you start your cutscene.

Last edited by fogman; 09/14/06 11:56.

Moderated by  HeelX, Spirit 

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