Skip to main content
Participant
April 29, 2018
Answered

How to make sound stop when my character hits the end goal

  • April 29, 2018
  • 1 reply
  • 138 views

So i am making a game and what i want to happen is when my character hits an object, he not only goes to the next scene but the music from the previous scene stops.

Im trying everything

Please help

    This topic has been closed for replies.
    Correct answer kglad

    you can always use SoundMixer.stopAll() to stop all sounds currently playing.

    there are better ways to do this but they all require proper sound setup.  the best (imo) set-up is to use as3 to play and control your sounds.

    1 reply

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    April 30, 2018

    you can always use SoundMixer.stopAll() to stop all sounds currently playing.

    there are better ways to do this but they all require proper sound setup.  the best (imo) set-up is to use as3 to play and control your sounds.