Jump to content

Can't play audio with Phaser


gbrennon
 Share

Recommended Posts

Hey,

 

I'm loading the audio and calling the play method, but it doesn't play.

function preload() {  game.load.audio('trilha', 'assets/sounds/trilha_jogo.mp3');}function create() {  var audio = game.add.audio('trilha');  audio.play();}

I've printed it to the console and the sound object seems to be ok..

 

Can someone help me?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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