NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

How to Make a Flap-and-Dodge Game in Scratch

📌 What you will learn

Build one-button gravity flapping, scrolling obstacle gaps, and crisp point scoring.

Core approach

Give the player constant gravity and set y_vel = 9 whenever Space or click is pressed. Clone pipe pairs at random heights on the right edge and scroll them left.

  • Wait for Space release so holding the button does not rocket upward.
  • Award +1 point when a pipe’s x position crosses the player’s x position.
  • Tilt the sprite slightly based on y_vel for expressive flight.

Pro tip & next steps

Keep the gap generous at first and tighten slowly as score rises.

All Project Tutorials Browse more English guides in this section. Learn more → Scratch Block Dictionary Look up any Scratch 3.0 block with examples. Learn more →

FAQ

What is the best first step for "How to Make a Flap-and-Dodge Game in Scratch"?

Wait for Space release so holding the button does not rocket upward. Keep the gap generous at first and tighten slowly as score rises.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.