Hi, I'd like to express in an event to mute all the music with any tags except one, how can I do this? I wouldn't want to name all of them, they're too many.
Thank you very much!
You need to keep track of playing tags. You can create a function which will be called any time you need to play a sound, and inside this function add sound tag to a dictionary.
* On function 'Play' * Parameter 'audioName' (String) * Parameter 'tagName' (String) -> Audio: Play audioName (tag tagName) -> TagsDictionary: Add key tagName with value 1
As a result, you'll have all tags in the dictionary. You will be able to loop through them and stop/mute them.
I would love there to be a way that tags would support having a list like "boss1, sfx"
and you can call them using only one tag.
Sry, kind off a derail
Develop games in your browser. Powerful, performant & highly capable.
You can with tokenat, tokencount, and loopindex fedca. But OP didn't want to name all of them.