Sound and music is a key ingredient of any Phaser 3 game, but how do you easily stop all music tracks or sounds when transitioning between levels, or at the end of a game?
This one line of code will stop all music tracks, and sounds that are currently playing in your Phaser 3 scene:
this.game.sound.stopAll();
If this has helped you stop all sound in your game then why not read some of my other Phaser 3 hints and tips.
Leave Your Comments...