FANDOM


Forever (block)
Forever
Category Control
Type C

The Forever block is a Control Block and a C Block. Once the block is activated, all blocks inside of it will be read "forever", forming a loop - the only way to break it is for the project to end or a Stop Script/Stop All block to be read.

ShapeEdit

The Forever block has one of the most interesting shapes in Scratch. Its shape is a cross between a C Block and a Cap Block. This prevents blocks from being placed on the bottom of the block, as these blocks would never activate.

Common UsesEdit

The forever block is one of the most commonly used in Scratch. To many projects, such as games requiring a loop, this block is vital. If an if block is included in a script, it will most likely be placed inside a forever block. Some of the other many uses of the forever block are:

  • Scrolling
  • Operating System windows (The sprites contained in them are often moved)

Permanently setting x and y to another sprite

  • Certain math projects (such as a project to calculate the value of pi)
  • Sound projects

Music looping

  • Some animations

Continuously waving piece script


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.