Jump to content

Issues with loading / unloading on the fly?


Recommended Posts

Hello again, team. I was wondering if anybody has experience in doing quick, on the fly loading / unloading. This case mostly targeting audio assets. I'd like to know if Phaser has problems with this and / or if there are better ways to approach my problem.

Quick doodle of what was in my brain but is there an issue with this loading style? Let's say I have A - Z in .mp3 files. I would like to play A, load B, then play B, load C and so on. (while also unloading as I go)


Any replies welcome, cheers!

Link to comment
Share on other sites

On 8/19/2016 at 10:08 PM, tips4design said:

I don't see why it wouldn't work. Make sure you wait for the audio files to be decoded too.

Cool, thanks. Is there any decent method for detecting when audio is decoded? We obviously have the onLoadComplete signal but it's always been problematic say, when kicking up a music file straight after the loading screen. It would be cool to factor some decode time accurately into load time.

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...