Gamemaker Studio 2 Gml Hot! < 2026 Edition >
Here’s a balanced, in-depth review of GameMaker Studio 2’s GML (GameMaker Language):
Object-Oriented Programming (OOP) without Classes
GML uses a prototype-based inheritance model via Objects. You don't write code in a vacuum; you attach scripts to Events inside Objects. gamemaker studio 2 gml
1. Naming Conventions
global.player_score(Globals)obj_player(Object resources)spr_walk_right(Sprites)scr_calculate_damage(Scripts/Functions)_argument(Temporary function parameters using an underscore)
The Workflow: Iteration Speed
GMS2 shines brightest during the "juice" phase of development—the part where you tweak jumps, add screenshake, and fine-tune gameplay. Here’s a balanced, in-depth review of GameMaker Studio
- The Room Editor: The level editor (Room Editor) is intuitive. It functions like a robust Photoshop for game levels. You can drag assets in, create layers (background, foreground, instances), and hit "Run" instantly.
- Fast Compilation: Hitting the "Play" button is snappy. The feedback loop between writing code and seeing it in action is tight, which keeps you in the "flow state" much easier than heavy-weight engines.
Arrays
Arrays can be mixed-type and nested.
// 1D Array inventory = ["sword", "shield", "potion"];// 2D Array (Grid) map = [ [1, 1, 0], [1, 0, 1], [0, 0, 1] ]; Object-Oriented Programming (OOP) without Classes GML uses a
// Accessing value = map[1][2]; // Returns 1