bluedot Posted August 15, 2014 Share Posted August 15, 2014 I want to play GameOver music before going to results.Doing this doesn't work: this.gameOverMusic.play();while (this.gameOverMusic.isPlaying()){ this.game.update();}this.state.start('Results');How does onStop work ? I can't work it out from the docs and there don't seem to be any example. Thanks. Link to comment Share on other sites More sharing options...
lewster32 Posted August 15, 2014 Share Posted August 15, 2014 this.gameOverMusic.onStop.addOnce(function() { this.state.start('Results');}, this);Sound.onStop is a Signal, so the documentation for that is here: http://docs.phaser.io/Phaser.Signal.html bluedot, Balamurugan and Dread Knight 3 Link to comment Share on other sites More sharing options...
Recommended Posts