How do I start Layout after Images and globals are loaded?

0 favourites
  • 4 posts
From the Asset Store
Globals 2.0
$3.99 USD
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
  • I have created a memory that loads the sprites from the server during runtime.

    I can start the layout of the game after the trigger: On All Animations Loaded ( I use rex's animation loader behavior)

    Now I add an array that loads Globalvariables from a json data file.

    Now I need wait for BOTH, the animation loaded and the Ajax completed trigger.

    Can anyone tell me how to do this?

    It is probably simple, but I just don't see it ....

  • Make a global variable. Add 1 to it when the images load and add 1 again when the globals are loaded. Go to layout when that variable = 2

  • Thanks, that's fast

    that seems like an easy solution.

    How can I "go to layout"?

    Is that what the "trigger once when true" is meant for?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't need a trigger once, because once you go to the layout it will shift to the new layout event sheet, so, it won't probably be checking for the conditions, unless you use one event sheet for both layouts, you won't need it.

    Go to layout is a System action, you'll find it inside the System folder. There's one action with a droplist with all the layouts so you pick one or you can use Go to layout (by name) and type it in the box.

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