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

Start learning →

Control Blocks

📌 What you will learn

Master timing, loops (repeat and forever), conditionals (if / if-else), and clones.

Loops and conditions work together

A single "if" block checks a condition only once and finishes immediately. To keep checking throughout a game—such as whether a key is pressed or a coin is touched—wrap the "if" block inside a "forever" loop.

Continuous key check inside a loop
  1. When green flag clicked
  2. Forever
  3. If key (right arrow) pressed? then
  4. Change x by 6

Try it: Holding the right arrow key moves the sprite smoothly to the right.

Clone rules to avoid bugs

Clones let you spawn many bullets, coins, or enemies from a single sprite, up to Scratch’s limit of 300 active clones. Always delete clones when they leave the screen or hit a target.

  • Hide the original sprite and show each clone under "When I start as a clone".
  • Always end a clone’s life with "delete this clone" so you never hit the 300-clone cap.
  • Never create clones inside a fast "forever" loop without a "wait" block.

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