Jump to content

game.sound.setDecodedCallback is not a function


stevefromio
 Share

Recommended Posts

this:

 

var m = game.add.audio('music', 0.05);
game.add.audio('enemy-move',0.5);
game.add.audio('enemy-jump',0.5);
game.sound.setDecodedCallback(['enemy-move','enemy-jump'], start, this);
 
gives me this error in Chrome:
 
Uncaught TypeError: game.sound.setDecodedCallback is not a function
 
 
Link to comment
Share on other sites

I have been using version 2.0.1 all along. I don't know how I had this version (probably the example I copied was using 2.0.1), but almost everything seems to be working. Let this be a lesson for all the newbies out there. Make sure you are running the latest version.

 

Thanks for you help Rich.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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