Jump to content

AudioSprite inconsistency


Recommended Posts

I got bit by this one today (Phaser 2.2.1 release) ...


To load an audiosprite, you use:

game.load.audiosprite  // lowercase "s"

To add it to your app, you use:

game.add.audioSprite  // uppercase "S"

Any other form (in either load or add) will fail with an "undefined is not a function" error. 

Link to comment
Share on other sites


  • Recently Browsing   0 members

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