Gamestudio Links
Zorro Links
Newest Posts
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, SkinnyApe, 1 invisible), 7,580 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 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 | 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