NN81's Recent Forum Activity

  • ok guys, today i have tried my first year bonus construct 3 version, because im buy c2.

    i have tried export an apk for android, but after launch apk, start installing, they fails..

    Some help about it?

  • new HD trailer

    https://youtu.be/YQ6CKx4VX_w

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i remember you can purchase the full version at

    https://catom-games.itch.io/crap-attack

  • LOL the name, and the text on this trailer. Looks good.

    thank you very much plinkie, I'm really happy with the result. Thanks also to those like you for your precious support in the forum

  • masterpiece old style action platform, that I had the pleasure of planningwith C2

    https://catom-games.itch.io/crap-attack

    https://youtu.be/YQ6CKx4VX_w

  • Usually in appdata folder.

    found it! thanks ^^

  • A simple question, exactly in what hard disk folder are stored data saved by "local storage data" plugin?

    Because I noticed that if I delete and reinstall the game, the rescues remain. This also affect the "Run Layout/Debug Layout" on Construct2 preview mode, so i need to clean this manually, not using "clear storage" option in my project whenever that i need clear storage data.

  • No idea about that but you don't need to use that save state now that you've explained what you're trying to save. To check whether time attack mode is available you just need local storage and a key. To toggle whether it is available use a global variable instead of an instance variable.

    ok done it, now is working fine.

    anyway nonsense problem with reset global variables one by one to avoid "reset global variable" because "reset global variable" fortunately DON'T touch key stored values

    So I could safely enter key value e reload them at the appropriate moment

  • The problem is that you said you wanted a way of saving instance variables and I recommended that link. What you should be doing is saving that unlock information as a global variable, local storage is what you should be using for this. If it's not working properly with other global variables then it's a logic error, possibly you are loading the key items to global variables then resetting their values afterwards.

    May it be a problem related to this ??

    "Note that most browsers have a limit on how much data a web page can save to disk.... Appropriate use of the No Save behavior can also help make savegames smaller (see below)."

    in fact, even if I export game to nw.js is still based on the chromium browser right?

    in my project I did not use "No Save behavior" on objects and the project capx is 130MBytes, (90MB of videos)..

  • You can safeguard it by not resetting global variables many times. If you want to store variables FOREVER as a mechanism for when something is unlocked by a user then I don't see how resetting them can be good practice. In this case I would reset individual global variables that need to be reset, if they have to be.

    wait a moment, before reviewing half project to reset variables one by one with the risk of forgetting something or making mistakes, if save/load state make a gameshot of the situation (global and instance variable included) and if store permanently this "state" of the game as said "Savegames are stored on disk by the browser. This means players can switch off their computer or device, come back the next day, and the savegame can still be successfully loaded. " in the page you linked me https://www.scirra.com/tutorials/526/ho ... -savegames

    so, what the problem with mi situation? why don't work? because save state plugin save and load state of all variables, instenace included.

  • You need to use a global variable and local storage for that.

    ok, so the problem is with the instance variable?? o save/load state that isn't possible in my case?? forgiveme but.. i still do not understand .. if I use a global variable, how can I safeguard it? because in game i reset global variables many times..

NN81's avatar

NN81

Early Adopter

Member since 9 Feb, 2017

None one is following NN81 yet!

Trophy Case

  • 7-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

9/44
How to earn trophies