How to Make a Platformer Game in Scratch
📌 What you will learn
Combine gravity, smooth jumping, momentum, wall collision, and hazards to build a classic side-view platformer.
Core approach
Track horizontal velocity (x_vel) and vertical velocity (y_vel) every frame. Resolve floor collisions cleanly inside a "Run without screen refresh" custom block.
- Apply friction (x_vel = x_vel * 0.85) for responsive, weighty running.
- Allow jumping only when grounded (or add coyote time of 3 frames for great game feel).
- Design original tiles, characters, and hazards using your own artwork.
Pro tip & next steps
Cap fall speed (e.g., -15) so fast drops never tunnel through thin platforms.
FAQ
What is the best first step for "How to Make a Platformer Game in Scratch"?
Apply friction (x_vel = x_vel * 0.85) for responsive, weighty running. Cap fall speed (e.g., -15) so fast drops never tunnel through thin platforms.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.