Hsaka Posted April 26, 2013 Share Posted April 26, 2013 Hello, is it possible to play music and sound effects in Phaser? I see the SoundManager and Sound classes but I'm not sure what to pass in to initialize a Sound instance and there doesn't seem to be a Game.createSound method. Any help would be appreciated. Link to comment Share on other sites More sharing options...
rich Posted April 26, 2013 Share Posted April 26, 2013 I am re-doing the SoundManager from scratch, it never evolved very far anyway and is missing lots of important features, so hold fire for a bit if you can. You could use it to play music/effects as it stands now, but it will be changing soon. Link to comment Share on other sites More sharing options...
Hsaka Posted April 26, 2013 Author Share Posted April 26, 2013 Thanks for the advice. I'll hold off on adding sounds until it's ready. Keep up the good work. Link to comment Share on other sites More sharing options...
initials Posted April 28, 2013 Share Posted April 28, 2013 I've put this into the github issue tracker, but thought I'd post it here too. The first time I call:myGame.sound.play('gameOver', 0.1, false);the volume is ignored and is played at volume=1. Subsequent times it is played, the volume param works. Link to comment Share on other sites More sharing options...
Recommended Posts