Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

sound.isPlaying always return true


Fenopiù
 Share

Recommended Posts

Good morning everyones!

I'm using Phaser 2.6.2.

I'm working to play a sound sequence, I've didn't find a queue option in Phaser sound manager, so I've tried to build a basic one by myself.

I've 1 to 5 sounds to play one after one to make a single sound if the player has reached 1 to 5 goals.

I'v all the sounds preloaded in an array.

When I call:

console.log(sound[i].isPlaying);

is always true.

When I call:

console.log(sound[i].currentTime);

is always 0.

Why?

How can I make it works?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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