Stop All Sound In Phaser 3 Game

Image of Stephen Garside Stephen Garside | Fri 20 Mar 20 > 1 min read

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.

Phaser 3 Stop All Game Sounds And Music

Leave Your Comments...