Explore our store and support our creators
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
Globals 2.0 plugin for Construct 2 and Construct 3
This is a very simple plugin that is designed to store and group variables for more efficient development, making things clean and ordered.
In large projects you often need to use plenty of variables and it is quite common that you need to access them globally. But when it comes to Global variables, they come up altogether in a single list along with Local variables, making it much inconvenient to find and select the one you need to use.
In this case, Globals works like a group or pack of variables. Therefore, when looking for a specific variable, first you select the Globals object (in other words - a “group”) and then search for a variable from a much shorter list of items. This makes things simply easier.
You just add the Globals object to your project and name it as you please.
Then you add to it as many variables as needed, same as you add instance variables for other objects.
If you wish to have your variables sorted in groups, you simply add more “Globals” objects and give them desired variables according to your concept.
Once the variables are set, you can simply operate them using common actions in Event Sheets: compare, set, add, subtract etc. Select the Globals object that stores it, choose respective action and then select the desired item from a top-down list of variables stored by respective Globals (without needing to browse a huge list of items available in your entire project).
If you need to use the variable, e.g. in your formula, just type the Globals name, put dot and type the name of the variable - same as you would refer to an instance variable. Simple as that.
Moreover, with Globals 2.0 you can easily save variables to JSON using dedicated expresion, as well as load variables with a featured action.
First of all - Globals plugin have extra dedicated features. To be more specific - you can save variables to JSON files, as well as load them.
But if you don’t need it at all - then yes, you can use other Construct plugins instead. But they also have other properties, actions and expressions, so in result when searching for a specific item, it is simply less convenient. It’s just a matter of work comfort.
No. Unlike Globals 2.0, the free Globals plugin can’t load and save data (variables) from/to JSON file.
Join our Discord server via support link.
Buy with us and we will refund 100% of the cost of the asset if it's non-functional or not as described and the author doesn't fix the issue for you in a timely manner.
This plugin really made a difference when working with variables. A lot easier maintaining Construct projects. Recommend it!
Good organization of variables and a facility to save them without problems. Very intuitive. Highly recommended
Not working on C3!
Hi, if you have encountered any bug/error or have difficulties using it, please contact us directly, so we can help. Either on our Discord server (click Support link at the right hand side) or by email you can find here: forconstruct.com/contact-us
Hi, I have tried to accept the invitation from Discord but it doesn't work, it rejects me. And I don't know how to contact to ask:
How is the physical JSON file created? the one that stays on the server, to be able to read it from outside.
Thanks.
Hey, thanks for your question. We'll check our Discord invitation link. And we've sent you an answer for your question via your email address. Thanks
This is very helpful. ^^