Jump to content

Sound sprite and marker offset


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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