In other languages

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more about joining as an editor!

See discussions in the Community Portal

Reporter Block

The general shape of a Reporter block.

A reporter block is a block that contains a value. These blocks can contain anything, from numbers to strings. Boolean Blocks are a special form of reporter blocks that report either "true" or "false". To quickly view the value of a reporter, simply click it in the editor and a bubble will display the value.

Shape

As reporter blocks are values, they are designed to fit wherever a value is needed. This can be anywhere: many blocks have spaces (parameters) within them or drop-down menus capable of inputting reporter blocks. An example:

glide () secs to x: () y: ()

This block can easily be filled with Reporter blocks:

glide (costume #) secs to x: (x position) y: (y position)

Blocks

There are 37 reporter blocks in Scratch 2.0, as follows:

Use

As Reporter blocks are values, they are used whenever a script needs a certain value. These values can be anything — from X positions to the costume number of a sprite. Reporter blocks also need another block to work; they cannot stack like Stack blocks.

An example is below:

when gf clicked
wait until <(y position) > [200]>
say [I've reached the ceiling!] for (2) secs

Note how the Reporter block is used in the script — the script waits until the Reporter block's value reaches a certain point, and then it continues.

  • This page was last modified on 3 September 2014, at 15:35.