Move global variables to their own sheet

0 favourites
  • 4 posts
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.
  • Hi!

    I'm starting to have so many global variables, that I wanted to make my main event sheet a bit cleaner looking. So I had the idea that I would make a new event sheet called "globalVariables" and include that event sheet into my main event sheet.

    That didn't work however: After I have copied the variables and included the globalVariables event sheet to my main even sheet, I deleted the old global variables from the main event sheet. At that point Construct will think those global variables got deleted (even when they are really in the included event sheet) and removes all references to them from the events.

    It would be nice if Construct would also check the includes before determining if global variables don't exist anymore.

  • Select your Global, right-click, Move to event sheet... Sadly you have to do them one-by-one, but it works.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for this workaround, it's certainly better than nothing!

  • You might ask yourself why you need so many globals. You might be able to declare them inside the events that use them, or as instance variables. Just a suggestion.

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