"on loading finished" or "on end of layout"

  • Hi Guys, which of these should be used to do stuff before the game loads? What is the difference between them? I.e. when would one use:

    1) on start of layout

    2) on end of layout

    3) on loading finished?

    E.g. If I want to grab the screen size and change the window size, should this be done on loading finished,at start of layout or end of layout, or does it not matter?

  • From my own experience

    Start of layout - Code that is entered before the game loads on screen

    On end of layout - Code that is run as the layout is ending and loading another layout or re-starting of layout

    On loading finished - Code that runs when sprites etc have all loaded.

    I'd guess the screen size and window size would be modified on Start of Layout.

  • Richard Stennett - Will code actions that are told to run On Loading Finished ever run again? Or is that the only time they will be processed for the duration of program?

    For instances, at the start I want a random number to be generated and stored to a variable, but I don't want that action to occur repeatedly every tick - just at the start-up. Is that how On Loading Finished works?

  • these 3 events are triggers,

    On start layout is useful to setup some actions like transitions, ready set go, etc..

    On end of layout, is useful to stop music and sound, etc. if you go to another layout.

    On loading finished, if you use layout preloader, when the loading is complete, you should make it go to another layout to begin the game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • See how to use loader layouts to make custom loading screens

    'On start of layout' and 'On end of layout' trigger at the beginning and end of every layout.

    'On loading finishes' only ever triggers on a loader layout, when the project has finished downloading and the game can begin.

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