Jump to content

Sound sprite and marker offset


pizza123
 Share

Recommended Posts

Hi everybody

this is the issue:

 

i have a sprite of sounds with related json map loaded via game.load.audiosprite

 

In this sprite i've 2 markers representing 2 quite similar background sounds (with same milliseconds length), let me call them bg1 and bg2.

 

When game start bg1 start plaing in loop.

 

After X seconds i want to play bg2 but i want to play it with an offset, according to bg1 currentTime.

is this possible?

I need to do this because i've to sync bg1 and bg2.

 

at the moment the solution i've found is to play bg1 and bg2 at the same time (bg2 with vol 0)  and when i need i increse bg2 vol.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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