How do I show a loading screen between layouts?

0 favourites
  • 3 posts
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • It seems like I can't create a loading screen between layouts in construct, because I can't find any tutorial or answer regarding this problem.

    The closest answer I can get is this construct.net/en/forum/construct-3/how-do-i-8/add-loader-layouts-152800 , but that solution is so limiting. Is there really no way to make an animated loading screen between layouts?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are two approaches to loading screens based on the way images in memory are handled between layouts.

    construct.net/en/make-games/manuals/construct-3/tips-and-guides/memory-usage

    Specifically:

    When the layout ends, all images that are loaded but not used on the next layout are released from memory.

    If an object is not placed in the layout view, but events create it at runtime, its images are not pre-loaded.

    You can have your "loading screen" be either an intermediate loading layout that will create the objects required on the following layout, or a loading layer that covers the contents of the layout while they are being created.

    In both cases, you don't want to place the objects in the layout editor, so that the layout is not required to load everything into memory before starting. If you are using the layout editor to arrange your objects/level, then the first method would be more suitable (Place the objects in the following layout, not the loader layout. They will remain in memory when changing layouts). If not, the second might be more straightforward.

    Note that this normally should complete very quickly (thus defeating the purpose of having an animated/interactive loading screen in the first place) unless you're really pushing the limits of memory on the user's device, which is a situation you generally want to actively avoid.

  • The way I did it is to fade to a loading screen (global layer) on layout A, go to layout B, then fade the loading screen out again. It's not technically needed but the instant transition felt kinda jarring.

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