Yora Posted September 18, 2013 Share Posted September 18, 2013 Via the code below I'm trying to get music to pause when the game pauses (this works) then resume it when the game resumes (doesn't do anything). I just don't want the games music to be playing while the user is in another browser tab or something like that, but not to have to start over when tabbing back. If resuming doesn't work I'll make due without, though I could just be going about this the wrong way. Thanks for any help. game.onPause.add(function () { music.pause(); }); game.onResume.add(function () { music.resume(); }); Link to comment Share on other sites More sharing options...
rich Posted September 19, 2013 Share Posted September 19, 2013 You're doing it the right way, which means you've basically found a bug If you don't mind putting it as an issue on github that'd be super useful for us, thanks. Link to comment Share on other sites More sharing options...
Yora Posted September 19, 2013 Author Share Posted September 19, 2013 Done. Link to comment Share on other sites More sharing options...
Recommended Posts