Jump to content

How to tell when a sound has finished ?


bluedot
 Share

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

 Share

  • Recently Browsing   0 members

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