Sound effects still playing if cutscene skipped (Solved)

Started by Volcan, Wed 29/01/2014 01:51:11

Previous topic - Next topic

Volcan

I worked on Space Trash today.

I noted if the player skips the cutscene, sound effects still playing.

Is there a way to prevent sound effects playing if the cutscene is skipped?

Crimson Wizard

Put this somewhere before EndCutscene();
Code: ags

if (Game.SkippingCutscene)
{
   Game.StopAudio(eAudioTypeSound); // replace the audio type if needed
}


Alternatively, you may also check this property during cutscene to know if you should or should not start sounds:
Code: ags

if (!Game.SkippingCutscene)
{
   aSound1.Play();
}

Volcan


SMF spam blocked by CleanTalk