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 (Ayumi), 662 guests, and 3 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
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