I may need some help today regarding SFX. Apparently, whenever I head over to the Main Menu, the current SFX that is being played in the story is still playing even if you are no longer in the story mode.
I heard that there is a stop play script but I don't know any commands on where to put it.
This is the code that I currently have at the start of the game.
scene black with Pause(1)
play sound ("SFX/chirpingBirds.wav") fadeout 1.0
scene Gym with fade
show sample
I was wondering if there is a way that I can end the SFX if ever a player or myself decide to go to the Main Menu regardless if the sound that is being played is over or not.
Thank you for your reply, I have tried your suggestion but I only end up receiving an error. I don't know if the exact codes were right or if I placed the codes correctly. Regardless of this, kindly see the following codes below and let me know the error(s) that is in my script.
I am very pleased to let you know that this part has worked!
I can now able to stop ongoing sounds that are still playing when heading back to the Main Menu. However, the sounds are already being cut-off during the confirmation dialogue box (asking you to confirm your decision to go to the Main Menu). As for that, I cannot find the codes for the confirmation box in any of my scripts. I tried tracing the confirmation dialogue but I couldn't find it.
Below is the sample of the confirmation dialogue box that I am talking about.
I hope you could help me out on this one. Thank you in advance!
Imperf3kt wrote: ↑Wed Nov 15, 2017 4:15 pm
It might be better to stop the sounds using the "on show" command withing the main menu?
I can't think of a way right now, but the documentation may have some clues.
Hello Imperf3kt,
I apologize for the late reply as I was so caught up with my irl job. I find the documentation to bear less information on what I need I'm afraid. However, upon checking some of the recently solved threads related to my concern, I found some helpful tips for fixing my problems. Regardless, thank you for your reply and I appreciate it very much!