Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LeChuck on Wed 29/09/2004 01:58:20

Title: Stopping sounds when skipping cutscene?
Post by: LeChuck on Wed 29/09/2004 01:58:20
I've got kind of a problem I can't find any solution to anywhere, so I'm asking you here.

There's this intro cutscene with a quite long wav file playing, 10 seconds long or so. If I choose to skip the intro during this time, the sound file will keep on playing even though the game skips to the EndCutscene(); part of the script. How to I stop all sounds / this sound when I choose to skip the intro?

It seems very unprofessional when it's like this...Ã,  :-[
Title: Re: Stopping sounds when skipping cutscene?
Post by: strazer on Wed 29/09/2004 02:48:37
If you're playing the wav file as music, you could put
StopMusic();
after the EndCutscene command.

If you're playing it with PlaySound, put
PlaySound(-1);
there instead.

Edit:
Oh wait, music doesn't support wav files anyway. :P
So yes, my second suggestion is correct.

You're welcome. :)
Title: Re: Stopping sounds when skipping cutscene?
Post by: LeChuck on Wed 29/09/2004 03:30:50
Thanks! It's kinda weird I couldn't find any other people wondering about the same thing!