[GODOT for beginner tips] Global app's variables, states...
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBixGJi2xGWhEzHErWRdxEz23t48gQO4J1BShjn2CmkdvqZGXh6Il849Vk8go7J0uXLMwMDAaz6V83SvAPQ8xGHeeZmuCCvq7GBlm7YRsj92GEhXo1rbzWrhCSIyjS9hXDfVyc2kUUbQQHvFtRMVEa4ZL03x6P8dTROeaHQmyGM3-75Ljg87NTqxeZhxNj/w400-h210/godot-game-engine.webp)
While trying to develop my first game, I was wondering how to manage my game's "CONTEXT". Like maybe the current level, the global player's score or any other "GLOBAL" variables. GLOBAL variables (static in C#) can be used from any script. 1- Create a "global" script This is the script containing global variables and methods that will be accessible from every other script. Below here is an example of a global script called "App.cs": ==> you can see a static variable called "MainScene". This is the scene that can be accessible from everywhere (like a MENU scene for instance). 2- Make your script global In your project settings, find the "AutoLoad" tab and ACTIVATE the script "Global variable" parameter. Then you will be abble to access the script from everywhere. 3- Example of accessing the global variables In my mainscene script, I instantiate the app's (app.cs script) global variable by accessing it ...