Jump to content

Fade Out using AudioSprite


sharbelfs
 Share

Recommended Posts

Can someone help me and tell what I'm doing wrong.

 

I'm trying to create a fadeOut effect using audiosprite (external .json file).

 

this is part of the code, and I'm using Phaser 2.4.4

 

also, I tried some tests, and seems that the tween function isn't running (onStart and onComplete are not working)

// after decode the sound and before start the gamegame.sfx = game.add.audioSprite("sfx");// on the gamevar reelSound = game.sfx.play("Freespin");// this version doesn't workreelSound.fadeOut();// neither this onegame.add.tween(reelSound).to({volume: 0}, 1000, Phaser.Easing.Linear.None, true);

thanks in advance

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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