Preload sound in preview problem

0 favourites
  • 4 posts
From the Asset Store
Best soundtracks for any game. High quality and engaging assets.
  • Link to .capx file (required!):

    http://dev.intiva.ws/preload_test/preloadSound_onPreview.capx

    Steps to reproduce:

    1. Run preview with provided capx.

    Observed result:

        Doesn't change layouts

    Expected result:

        Change layout on "preloads complete"

    Browsers affected:

        Chrome: yes

        Firefox: yes

    Operating system & service pack:

        WinXP SP3

    Construct 2 version:

        r114 (also tested in r116)

    I've spent several hours with this and perhaps I'm missing something, but I've read through the forum and manual and didn't find anything.

    The capx consists in two layouts: one splash and the other mimicking a game. One sound is preloaded on start of splash for it to be played on user input in second layout. Also music is streamed in start of splashscreen.

    -If I disable just "All preloads complete" condition it works as it should. But how do I know when it was preloaded?

    -The strange thing is if I disable only the preload the game also gets stuck in the splashscreen as waiting for the music to download (this is just mere speculation).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as not a bug: your event says "On loading finished AND all preloads complete". 'On loading finished' only ever fires once, and if all sounds have not preloaded already by that specific time, the event will never run.

    You probably just want to replace "On loading finished" with a compare two values: loadingprogress = 1

  • Closing as not a bug: your event says "On loading finished AND all preloads complete". 'On loading finished' only ever fires once, and if all sounds have not preloaded already by that specific time, the event will never run.

    You probably just want to replace "On loading finished" with a compare two values: loadingprogress = 1

    You are very right! I completed overlooked that "on loading finished" is in fact a trigger.

    Just for the sake of completeness: "All preloads complete" remains FALSE even if there aren't any preloads going on?

    EDIT (addendum)

    I had to also add a "Trigger once ..." because it was firing a second time.

  • Sorry to bump up an old post but , I can only find it here , my prloader is firing the "on loader complete" trigger twice . loading progress becomes 1 and then goes back to 0.5 or so after loading few images. Any ideas what might be happening.

    Edit: I just saw that I was not supposed to reply to a closed bug. I am sorry pls don't ban.

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