Jump to content

Issues with loading / unloading on the fly?


NewGuy
 Share

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)

Untitled.png

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

 Share

  • Recently Browsing   0 members

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