Save/Load doesn't activate deactivated Groups

0 favourites
  • 2 posts
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • Problem Description

    Using the "load" system action does not properly load (or save) a group's activated or deactivated status.

    (I'm unsure whether this is part of the feature or not as it was not mentioned in the manual or your tutorial for Savegames, but it feels like a bug to me since it's not fully loading the game as it was — which means a lot of things can be broken after loading.)

    Attach a Capx ... download=1

    Description of Capx

    2 layouts:

    • "Start". Has a button to take you to the next layout. It also has a "load" button.
    • "Game". Has a square object and a mouse object.

    Steps to Reproduce Bug

    • Preview the game (it should begin with the "start" layout)
    • Click the "start" button
    • Hold down the mouse button and create lots of pink squares.
    • Before they all expire: Click on the "save" button
    • You have now been taken back to the starting layout
    • Click on the "load" button

    Observed Result

    The pink objects are not spinning or being destroyed anymore. The Group must be Deactivated!

    Expected Result

    The pink objects should continue to spin and be destroyed. The Group should be Activated.

    Affected Browsers

    • Chrome: YES

    Operating System and Service Pack

    Windows 7, everything upto date

    Construct 2 Version ID



  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem is in the events. 'Save game' does not actually complete immediately: it saves at the end of the tick, where it then fires 'On save complete'. So in your example, you guarantee that the save game has the group disabled, because you disable it immediately after the save action (which will not be done until later). If you move the disable group and change layout actions to a "On save complete" trigger, it works correctly.

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