Jump to content

onMarkerComplete has been broken since 2014.


Tilde
 Share

Recommended Posts

game.bgm = game.add.audio('southSide');
game.bgm.addMarker('start', 0, 11.748, 0.7);
game.bgm.addMarker('loop', 11.748, 110.769, 0.7, true);
game.bgm.play('start', 0, 0.7, false);
game.bgm.onMarkerComplete.add(function() { // This will only fire once, and the sound will NOT loop after heading into the loop section under any circumstances
      if (game.bgm.volume != 0.0) {
           console.log('yes');
           game.bgm.play('loop', 0, 0.7, true);
     }
}, this);

I did a search on this and it turns out it's just never been fixed!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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