๐ŸŽฏ My First GameMaker Game ยท Episode 2 of 5 ยท See All Episodes
๐Ÿƒ Episode 2 ยท Beginner+ ยท The GameMaker Classic

Run & Jump!
GML Platformer

THE GameMaker genre: pixel-perfect platforming with place_meeting collision, gravity, coyote-time jumping, tile-decorated rooms and a camera that follows, the exact recipe behind countless indie hits.

๐Ÿ‘ถ Ages 10+ โฑ๏ธ ~2 Hours ๐ŸŽฏ GameMaker โœ“ Free
๐ŸŒ Gravity in GML ๐Ÿงฑ place_meeting ๐Ÿฆ˜ Jump & coyote time ๐ŸŽฅ Camera & views ๐Ÿช™ Coins ๐Ÿšฉ Level goal
โญ
0 XP
Level 1
๐Ÿ”ฅ0
Your Progress 0 / 6 steps
Build it in our GameMaker Studio too: lay out your game, add real GML behaviours and export Create, Step and Draw event code in the browser. Open the GameMaker Mod Studio →
๐Ÿ“ฆ
Reference project: download the finished code files used in this workshop: โฌ‡ gml-platformer-workshop-reference.zip. Every code block also has a Copy button.
๐Ÿ’ป
How to run: Open GameMaker, load your project, and press F5 to run!
๐Ÿงฉ
Need the game setup? Each episode builds a new game on the same GameMaker setup: a room, objects, and their Create / Step / Draw events. New here or need a refresher? Episode 1 setup โ†’ ยท GML Cheatsheet โ†’
๐ŸŒ
How it works: write the code in each step, and the canvas on the right shows what your code does. It is a live preview that builds the game as you go. Type to see it update, or press Apply to Canvas to test it straight away.
๐ŸฆŠ
Lumo says: every step adds one feature to the same game. Type a little, click Apply to Canvas, and test it straight away. There is no wrong answer you can't undo.

Build Platformer Step by Step

Each step adds one feature. Write the code, watch it come alive in the canvas, then make it your own.

Step 1 / 6
A player running and jumping on platforms
๐ŸŽ‰๐Ÿ†๐ŸŽฎโœจ๐ŸŽ‰
Workshop Complete!
Pixel-perfect collision and a following camera, the true GameMaker platformer core. Episode 3: Breakout with juice!
0
Total XP
1
Level
0
Best Streak
0%
Accuracy
๐Ÿš€ Episode 3: Breakout โ†’
โญ View My Progress & Certificates

This workshop was free and took many hours to build. If it helped you learn something new, consider supporting the project.

☕ Support on Ko-fi
๐Ÿงฉ
Code Order: GML Step Event
+20 XP
Drag these GML lines into the correct order for a Step event that moves a player and checks collisions.
if (place_meeting(x + hsp, y, obj_wall)) hsp = 0;
var hsp = 0;
x += hsp;
if (keyboard_check(vk_right)) hsp = move_speed;
if (place_meeting(x, y + 1, obj_wall)) and (keyboard_check_pressed(vk_up)) vsp = -jump_force;