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

Start learning →

forever — Scratch Block Guide

📌 What you will learn

Repeats the enclosed blocks continuously (~30 times per second) until stopped.

What this block does

Repeats the enclosed blocks continuously (~30 times per second) until stopped.

Forms the main game loop for controls, physics, and collision checks.

  • Category: Control Blocks
  • Key tip: Notice the flat bottom—no block can snap underneath a forever loop.

Working Scratch example

Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.

Example using forever
  1. When green flag clicked
  2. Forever
  3. If key (right arrow) pressed? then
  4. Change x by 5

Try it: Checks keyboard input smoothly throughout the entire game.

Related block guides

Explore other blocks in the same category or return to the full English Block Dictionary.

Back to Control Blocks See the overview and patterns for Control Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

FAQ

When should I use "forever" in Scratch?

Forms the main game loop for controls, physics, and collision checks. Notice the flat bottom—no block can snap underneath a forever loop.

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