How do I make a layout preloader?

0 favourites
  • 5 posts
  • Hi,

    I have around 10 layouts in my mobile game. Every layout is using spritefonts and other objects and therefor I have a delay (around 1-2s, depends on mobile) while switching beetween layouts.

    It gives a really bad feeling like the game was really heavy, cause it literally freezes for 1-2s before the next layout appears.

    Is there a way to make a preloader which will be shown between switching layouts?

  • I posted an example of a loading screen between levels for someone else here

    Hopefully it will help you too.

  • Thanks I figured that out myself too but I was hoping there is smarter and more generic way to do it.

    I've tried also On end of layout -> Set layer "loader" Visible, but surprisingly this does not work. Looks like switching layout is triggered before this layer is rendered .

    I guess the "loading layout" trick is the only way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I haven't made anything with long load times, so I'm not sure how Construct 2 handles it, so does it just show the layout that is ending in a frozen state as the next layout loads?

    If so, maybe put the layer "loader" visible under the event that also says to end the layout so it runs that action before the layout ends.

  • I actually face a similar problem in the game we are developing. We have ~20,000 sprites that have to be destroyed and recreated on leaving/entering the main layout, however, when I make them all global objects (to retain their existence in between layouts) the original placement code somehow mucks up their position on returning to the layout.

    I have yet to build a mockup showing the problem yet, but I am going to track this thread to see if any clever solutions to fluidly switching layouts comes up.

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