How do I RESET only some GLOBAL VARIABLES?

From the Asset Store
Globals 2.0
$3.99 USD
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
  • Hey friends!

    I'm currently building roguelike, and I'm trying to create the mechanics - and here I need help.

    I want to create that every time a death occurs the character returns to the beginning - but - and that's the main part, I want some of the parameters to remain.

    Because doing a reset for the whole game is not a problem, you just use the command "RESET GLOBAL VARIABLES" - but there are variables I do want to keep (as for example, what if the character bought a constant upgrade for all the runs - like... adding life, I do not want something like this to be reset)

    How can I save only certain variables?

    But such a preservation will not only be for the play of the game, but also for future sessions of the game even after I have arranged it (I do not want my players to have to start all over again every time)

    Thanks so much for the help and very much appreciate it

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can also store data in localstorage, or an array.

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