Create a Boolean variable, and set it to "true" when you want the song to start playing, and add a method to set it to "false" when you want the song to stop playing. Then make an event that says "while [variable] is true, play sound [music]".
If you want to have multiple pieces of music in your world, you could create a sound variable, and whenever you want the music to change, set the Boolean to false, change the sound variable to the new music, and set the Boolean to true again.
Thank you for taking the time to read this signature. This signature loves you.
Create a Boolean variable, and set it to "true" when you want the song to start playing, and add a method to set it to "false" when you want the song to stop playing. Then make an event that says "while [variable] is true, play sound [music]".
If you want to have multiple pieces of music in your world, you could create a sound variable, and whenever you want the music to change, set the Boolean to false, change the sound variable to the new music, and set the Boolean to true again.
I thought sound was "play it all" in Alice and that once started it would continue until the track was done. Is this not true?
Mark
wait... The sound doesn't stop. Am I doing something wrong?
I made a Boolean variable, set it to false, and made it set to true when you are near something. I made Boolean variables for every sound and when ever a new sound comes, I set all the other Boolean variables to false, but the sound keeps on playing!
Make sure that the method that has the sound playing is being constantly checked with a loop of some kind. And sometimes, depending on the size of the sound file or type it is, it may not work properly or immediately.
If you are stuck on a project, check out the tutorials I made here at this link: