Jump to content

Quick question: Phaser sound not able to change volume?


Recommended Posts

Here's my code...


in preload 

this.engine.load.audio('sofaking', 'assets/audio/sofaking.mp3');


in create

music = this.engine.add.audio('sofaking');
// music.loop = true;
// music.volume = 0.1;
For some reason when I uncomment the two bottom lines, they don't work? I read the phaser docs and thought this would be ok... i can even see in the phaser example shown here (http://examples.phaser.io/_site/view_full.html?d=audio&f=play+music.js&t=play%20music) that they manipulate volume in this same way.
Link to comment
Share on other sites


  • Recently Browsing   0 members

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