How to make our program repeat forever in Scratch? Preview

Sometimes we wish to program something such as a day-night cycle, but we don't know how long the program should run, so we program it to run indefinitely.

That's how day and night cycle between each other until another command tells them to stop or the program is switched off.

Here's how to do this:

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #1590
  • 27 Mar 2020

The block for indefinite repetition is called "forever" and is located in the orange block palette:

content picture

Unlike most blocks, this block has a mouth and it can bite other blocks!

content picture

All of the blocks in its mouth will be repeated until another command stops them or the program isn't stopped.

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Keep 'em clean - remote Scratch game course
  • 41
  • 0:00
  • 70
Image for Lesson 6 - Programming the clones and forever loop
  • 3
  • 4
  • 7
  • 3d_rotation 0