I still do not understand how worked a Preloader

0 favourites
  • 13 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Hello, guys!

    I still do not understand how worked a Loader layout <img src="smileys/smiley5.gif" border="0" align="middle" />

    I have:

    1) Project with this settings

    <img src="https://dl.dropbox.com/u/52880552/c2_test/1.jpg" border="0" />

    2) Two layouts: Loader and Main

    3) Loader layout contain minimum images & events

    <img src="https://dl.dropbox.com/u/52880552/c2_test/2.jpg" border="0" />

    <img src="https://dl.dropbox.com/u/52880552/c2_test/3.jpg" border="0" />

    4) Main layout contain very huge images (70Mb)

    5) Browser cache is empty!!!

    I'm run Loader layout in C2

    <img src="https://dl.dropbox.com/u/52880552/c2_test/4.jpg" border="0" />

    and see the following (standard loading takes about 5 seconds)

    <img src="https://dl.dropbox.com/u/52880552/c2_test/5.jpg" border="0" />

    WTF ?!

    Where is my loader layout, where is my custom text with percents ?

    I'm really don't understand this <img src="smileys/smiley5.gif" border="0" align="middle" />

    p.s. Construct 2 [r100]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is the standard charger HTML5. Put a wait (3), before the GO TO MAIN. Ai vai see your bar.

    Greetings from Brazil.

  • Put a wait (5)

    <img src="https://dl.dropbox.com/u/52880552/c2_test/10.jpg" border="0" />

    And now i see:

    1) "standard charger HTML5"

    then

    2) my Loader layout with 100%

    then

    3) 5 sec delay

    then

    4) my Main layout with huge images

    But how to make the Loader layout shows the percentage of load these huge images of Main layout when you start?

    Because the standard HTML5 loader shows it loading all game resources that are on all layouts ... I understand it correctly?

  • The standard progress bar still appears when loading the loader layout. Are you sure you have minimal images on there?

  • Yes, on Loader layout i have 3 rotating gears (10kb image) and my logo (10kb) + text with percents

    But on Main layout i have huge images (over 70mb)

  • So the standard progress bar will still be used to load the loader layout, and from then on the loader layout will be used to preload the rest of your game amirite?

  • Exactly, I also thought that the standard progress bar will load quickly and display only boot Loader layout, and my Loader layout will load the rest of my game.

    But standard progress bar now loading too long, and load the entire project, why?

  • Can you share a .capx? Last I tried everything was working fine.

  • Yes, sure!

    Take it: dl.dropbox.com/u/52880552/c2_test/Test.capx (82.4Mb)

    p.s. Construct 2 r101

    p.p.s Huge images on Main layout is specially for test

  • 82.4 mb... That's huge!

  • It's especially for testing Loader layout

    All these huge images are loaded at the time of initial application load (standard html5 loader), but not at the time of the show Loader layout

    p.s. sorry for my english :)

  • hmm ...

    1) download this example: Custom Loading Screen

    2) open capx in C2 (r101)

    3) add some huge images on Main layout and run loader layout in browser (Chrome)

    and again i have trouble with custom progress bar :(

  • AbLaZe - I can't find any .capx at that link.

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