How do I set up a loading screen to wait for sound preloads

0 favourites
  • 3 posts
From the Asset Store
Is a circular loading screen with code ready to use. No Animation.
  • Hi, this seems like a simple question, but all common sense approaches seem to fail...

    I created a frame, and simply used the "all preloads finished" event, with the action: go to splash screen

    works great the first time, it seems, but NOOOOOOOOOO once it goes to the splash screen apparently all sounds have been cleared from the memory they were just loaded into.... why?

    Even worse: When you click the refresh page icon in your browser, the loading screen is stuck in infinite loop because it thinks the sounds are already in memory ,therefore the on preloads finished event NEVER triggers!

    Has anyone else found the answer to this?

    I need a universal solution that will work on all devices, all browsers, and as an APP (cocoon js)

    thanks,

    Mike

  • The sounds not loading after may come from the offline.appcache exported file (removing the sounds may help, but I think it is not the best solution)

    The better way would be not to preload everything like that, but more preload just before you need.

    I ve also saw that sounds seems to not stay on memory on mobile html, you could eventually try to play the sound in a silently manner, so it is actually in memory, then to restart it with a louder (audible) volume.

    Also some phone (mine at least) refuse to play sounds for a reason, I think it needs sounds to come from a touch (which effectively sucks...), but my phone is a low end device that should not be targetted.I even wonder how my games runs at a 20 fps on it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi Aphrodite,

    Thanks so much for mentioning the offline.appcache file. . I never paid any attention to it before, but opened it in a text editor, deleted the sound files from the list, and re-oploaded just that offline.appcache file.... the sound loading screen now works mostly as intended!

    It still seems to completely reload the sounds at the start of each frame, which is very unfortunate, I guess the only solution is to add a loading message to every frame instead of the start of the game.

    cheers,

    Mike

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)