GML

  • State Machines in GameMaker

    State Machines in GameMaker

    State Machines in GameMaker: A Simple Beginner-Friendly Guide If you’ve ever written code like this: you’ve already started building character behavior. But as your game grows, managing different actions like walking, jumping, attacking, climbing, and dying can quickly become messy. That’s where state machines come in. In this tutorial, we’ll build a simple state machine…

    read more

  • Learn GML: Enums

    Learn GML: Enums

    Introduction Let’s consider the code below: This works, but what does “1” actually mean in this context? Is it one of the four cardinal directions? Is it an angle? Who knows! This is where enums come in. Enums (short for enumerators) let you replace confusing numbers with readable names, making your code easier to understand.…

    read more

  • Learn GML: Variables

    Learn GML: Variables

    What is a Variable? A variable is a container that has a name and holds onto a piece of information you want to remember, change, or use later. In GameMaker, variables are how your game keeps track of things. They store numbers, text, and all sorts of data inside your game. Almost everything in coding…

    read more

  • Learn GML: Code Blocks

    Learn GML: Code Blocks

    In GameMaker, code is written in blocks. A block is a group of instructions, called statements, that tell your game what to do. Each statement runs in order, and together they create the logic behind your game. A code block can do something simple, like add two numbers, or something complex, like make an enemy…

    read more

  • How to Learn GML in GameMaker

    How to Learn GML in GameMaker

    Every game you’ve ever played, whether it’s jumping across platforms, collecting coins, or dodging enemies, started with a conversation. A creator gave their game a list of instructions, and the game listened. That’s what GML, or GameMaker Language, is all about. It’s the language GameMaker speaks so you can talk to your game and tell…

    read more