Trash Can.svg The block documented in this article is a hidden block, meaning that while it technically still exists in the latest version of Scratch (3.0), it is not available in the palette.
Counter
(noop:: #c3af00)
Category Experimental (in 2.0), Control (in 3.0)
Type Reporter
(counter:: control)
The Counter block's appearance in Scratch 3.0.
The counter block's 2 block specs.

The counter block was a reporter block and an experimental block. It reported the value of a global project counter that could only be manipulated with the Incr Counter and Clear Counter blocks. Like all of the other experimental blocks in Scratch 2.0, it was a hidden block, meaning it could not be accessed via the block palette.

The block's name mistakenly showed as "noop" in the editor, due to there being two copies of the block spec present.

This block is still present in Scratch 3.0 as a hidden block, and its functionality was kept intact. Additionally, its name is now correctly shown as "counter", and was moved to the Control category.

Workaround

Main article: List of Block Workarounds

This block's functionality can still be simulated with a variable reporter ((counter)), in conjunction with these two workarounds for the Incr Counter and Clear Counter blocks:

change [counter v] by (1) // Incr Counter workaround

set [counter v] to [0] // Clear Counter workaround

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.