Jump to content

How to tell when a sound has finished ?


Recommended Posts

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.
Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...