system->load, and functions mapped in 'on start of layout'

0 favourites
  • 1 posts
From the Asset Store
A template which allows you to customise the controls of your game.
  • I'm running into some strange behavior when using function maps with system->load and system->save. Basically, if system->save was called in a layout's event sheet, and functions were mapped to a function map in that layout's "on start of layout" event, those functions will not be in the function map if I call system->load from another layout.

    This project shows the issue: To duplicate:

    - Preview project

    - Press 'go to layout' button

    - Select 'blue' and press call- color should turn to blue

    - Press 'save' button

    - Close project preview

    - Preview project again

    - Press 'load' button

    - Select 'blue' and press call - color is now black

    Because function Blue is mapped in levelLayout->on start of layout, it's being ignored/forgotten when calling system->load from titleLayout.

    Is this a bug? Or does system->load ignore "on start of layout" events? So far I've only seen function maps affected by this, otherwise things that were set in "on start of layout" seem to be retained after calling system->load.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)