| Term | Meaning |
|---|---|
| GML (GameMaker Language) | The primary language used in GameMaker by YoYo Games. |
| Sprite | The graphic/image that visually represents an object. |
| Object | Active entity that runs code and interacts (player, enemy, coin). |
| Room | The level or screen where the game takes place. |
| Layer | Room Editor organization for backgrounds, tiles, and objects. |
| Tilemap | Efficient way to build large, detailed levels using tiles. |
| Physics | Rule set controlling motion and interactions (e.g., gravity). |
| Checkpoint | Spot where the player’s progress is saved in a level. |
| Trigger Zone | Invisible area that fires events when the player enters. |
| Boss Fight | A special, challenging enemy encounter. |
Why layers & tilemaps? Layers keep scenes organized; tilemaps let you build big levels quickly and efficiently.
| GML | Effect |
|---|---|
x = x + 5; | Move 5 pixels right. |
y = y - 10; | Move 10 pixels up. |
x = x + 1; | Increase x by 1 (right by 1 pixel). |
move_towards_point(x, y, spd) — head toward a coordinate at a given speed.motion_set(dir, spd) — set direction & speed in one call.x = x + n, think “move right by n”. If you see y = y - n, think “move up by n”.place_meeting(x, y, obj) — is this instance colliding with obj at (x,y)?instance_destroy() — removes the current instance from the room.repeat (n) { ... } — repeat a block of code n times.if (...) { ... } — run code only when a condition is true.switch (...) { ... } — choose among multiple cases.score — usually tracks the player’s points.if (lives <= 0) {
game_end();
}
Ends the game if lives are less than or equal to zero.
audio_play_sound(asset, priority, loop) — play a sound asset.sprite_index — set this to a sprite asset to change how an instance looks.move_towards_point().x = x + 5? Move 5 pixels right.place_meeting().repeat.audio_play_sound().instance_destroy().if (lives <= 0) { game_end(); }motion_set(dir, spd) (concept often tested).sprite_index.