Jump to content

Sound on complete for 'this.game.sound.play...'


Hwang
 Share

Recommended Posts

I have different sound file loaded through json and current using 'this.game.sound.play' method to play my sound.

I wanted it to do something when the sound is complete, but I can't find any tutorial on how to do it with that code,

so If I use the method on the example page like

var snd;

snd = game.add.audio('MySound'); 
snd.play();
snd.onStop.addOnce(onComplete, this);

it does works but I noticed the volume is louder comparae to the 1st code.
What seems to be the problem here?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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