Jump to content

Phaser is getting frustrating now.


stevefromio
 Share

Recommended Posts

Ok, on my quest to decode .wav files (???) I tried the following:

 

snd = game.sound.play('my-sound');

snd.onDecoded.add(function() { console.log('decoded'); }, this);

 

and I don't get any response from console.log.

 

I also copied this straight from an example:

 

sound1 = game.add.audio('explosion');

game.sound.setDecodedCallback([ sound1 ], start, this);

 

AGAIN, nothing.

 

What made SpriteKit so easy to learn was the documentation. It contains clear instructions on what the class does, then shows each method used in context. That would be extremely helpful here.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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