Description #
GML is a scripting language used in GameMaker Studio to develop 2D and 3D games. It offers a mix of imperative and object-based syntax tailored for rapid game development.
History #
GML was developed alongside GameMaker, originally released by Mark Overmars in 1999. Now maintained by YoYo Games, GML has evolved into a flexible language supporting both drag-and-drop and code-based workflows within the GameMaker IDE.
Hello World Code #
show_message("Hello, World!");
How to Run #
Option 1: Online
No standalone online runner. Use https://www.gamemaker.io/en with the GameMaker IDE.
Option 2: Local
- Download and install GameMaker Studio 2 or 2023+
- Create a new project → Add a Create Event
- Insert:
show_message("Hello, World!");
Run the project using the Play button in the IDE.
Key Concepts #
- Interpreted scripting tied to in-game objects and events
- Imperative, C-like syntax
- Object-based game structure
- Integrated into a full game IDE (GameMaker)
- Dynamically typed
- Strong support for graphics, input, and audio
- Event-driven execution model
- Used in both beginner and professional indie games
- Built-in functions for physics, AI, UI, and more
- Supports lightweight OOP via objects and scripts
Try It Online #
❌ No official online runner — use the IDE at https://www.gamemaker.io/en
Fun Facts #
- Games like Undertale, Hyper Light Drifter, and Katana ZERO were built in GameMaker using GML.
- GML bridges drag-and-drop logic and typed code, making it ideal for beginners transitioning to text-based scripting.
- It supports both visual scripting and advanced code-only projects.
Resources #
Official Site
GML Reference Manual
YoYo Games Forum
Beginner GML Tutorials