This is just a suggestion, could you guys add an action to set the volume for all sounds/musics? I need this to make a volume slider and setting the volume of each sound can create a big mess. Thx
This is already cover and done. I have an example you can see and mess with.
Fuged if I understood correctly, all sound you play have the same tag name? That will work, I don't need to name my sounds anyway
if you look in the example file I have, you can see that the music playing in the background is call "BM" and the crystal coin sound is called "touch".
without naming a sound it will turn all unnamed sound to the same volume level. To Void that from happening you must name all sound, unless you want all the sound to be at the same volume level.
After trying this, I noticed it's not tick-perfect. My sounds start playing full volume and almost instantly reduce to the volume I've set, but you can still hear it full volume for a tick or so
I'm interested in muting all the sounds effects and musics at the same time.
Develop games in your browser. Powerful, performant & highly capable.
jogosgratispro - use the 'set silent' action.
7Soul - this is indeed a problem with HTML5 audio. It shouldn't happen in Chrome since it has the Web Audio API which is much better for games.
I'm using a button to restart the game.
When I add set silent after it restart, it doesn't make any sound later on.
My solution was to stop all the soundfx in the game when it restarted. Not professional but it works :)