how can I stop one music file but keep others still looping?
StormyStudio
United KingdomMember Posts: 3,989
Good afternoon.
In my current (1st app) I want the user to be able to control the background sound by turning on/off different aspects. There are around 8 different music beds that I want on or off depending on which ones the user ticks.The buttons work fine, but when I turn one music file off it turns all the music off, as I am using the Stop Music behavior. Is there a way to turn off a specific music file another way.
Looked in the wiki and the forum but no luck, no audio info in the Wiki yet.
Cheers
Jon
In my current (1st app) I want the user to be able to control the background sound by turning on/off different aspects. There are around 8 different music beds that I want on or off depending on which ones the user ticks.The buttons work fine, but when I turn one music file off it turns all the music off, as I am using the Stop Music behavior. Is there a way to turn off a specific music file another way.
Looked in the wiki and the forum but no luck, no audio info in the Wiki yet.
Cheers
Jon
Comments
What are the available behaviors for sound effects? Maybe if you're using them all in one scene, you can bring them into GS as sound effect files instead of music files. Then it might be easier to manage them.
If I bring them in as Sound effects instead, I can have the behaviours setup so:
The buttons change status of attribute (attribute for each sound as an integer)
if attribute = 0
play sound (loop)
if attribute = 1
play sound (no loop, and no volume) ...
works a treat, and they can all play over each other (well the 2 I've tested it works).
Cheers
Jon