Local, Instance, and Global Variables in GameMaker: A Simple Guide

Local, Instance, and Global Variables in GameMaker: A Simple Guide

When you first start writing GML, creating variables feels simple enough. You write something like health = 100;, use the value later, and everything seems fine. Then your project becomes larger. Suddenly, one enemy needs its own health, a temporary damage calculation should disappear after a function finishes, and your total score needs to be … Read more