Global Variable Names
Global variables follow the same rules for naming as other variables, except for one major difference. They are prefixed with global. Here's some examples :
Creating Global Variables
You can create a global variable the same way you create any other variable in Game Maker, by giving it a value:
global.health = 10; global.money = 2000;
Built-in Global Variables
Built-in global variables do not need to be prefixed with global.