LocalStorage won't load. It works when I restart Layout

0 favourites
From the Asset Store
Plugin Transition Layout C3. Layout opening and closing animation for C3. Quickly set up transitions between lay
  • I gave up the option to save earned stars after completing LVL and now it's good. This probably caused an error, moreover it was not logical (you could win stars several times)

  • I'm telling you - the problem is with the order of events. When using Local Storage you need to wait before doing anything else.

    On start of layout -> read from Local Storage -> Wait for it to complete, only then compare variables!

    When level is finished -> write to Local Storage -> Wait for it to complete, only then switch to another layout!

    If you don't know how to organize this wait properly, you can simply wait 0.5-1 seconds, this should be enough.


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey again. What you wrote is obvious and the problem is that it doesn't work.

    I have such a thing in the project.




  • This doesn't make sense. Are you sure you don't have other events (maybe in other included event sheets) that can create this doctor sprite?

    Add a debug message using "Browser Log" into event 2, check browser console - will you see this message?

    If nothing helps, you can email me your project and I'll fix it for you.

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