Search the Community
Showing results for tags 'isplaying'.
Found 1 result
Good morning! I've a related sounds question. I would like to manage all my sounds in just one Phaser sound object, when i want to start playing one or more sounds, it all works properly but, when I have to check if one specific sound is playing, or if I want to pause/stop one specific sound I don't get how to do that. Example: let sounds: Phaser.Sound = null; sounds = game.sound.play(sound1, 1, true); sounds = game.sound.play(sound2, 1, false); sounds = game.sound.play(sound3, 1, true); sounds = game.sound.play(sound4, 1, false); Now how I can check if sound2 is playing or pause/stop just sound4?