O'Reilly logo

GameMaker Essentials by Nathan Auckett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. The GameMaker Language

In this chapter, we will look at the GameMaker Language, or GML for short. You will learn how GML is structured in terms of its variables, functions, loops, and more. We will see exactly how each variable type is defined and created, as well as how to structure statements and loops correctly, allowing us to truly grasp the main concepts and features of GML.

Variables

As in any programming language, the first things you should know is how to initialize different types of variables and how each variable type can be used. In GameMaker, there are four main types of variables: instance, local, global, and arrays.

Instance variables

An instance variable is one that is local to the instance it is initialized in. This means ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required