Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
Stamp Transparent ()
Stamp Transparent ().png
Category Pen
Type Stack
Introduced in 2.0 prealpha
Removed in 2.0 alpha
Stamps with transparency values 20, 50, 80 (top row, left to right) and unaltered (bottom)

The Stamp Transparent () block was a pen block and a Stack block. When used in a script, the sprite would produce a partially transparent image of itself, which would be stamped onto the Stage. The amount of transparency in the stamp depended on the value in the input. As the value increased, so did the amount of transparency. The image could not be programmed as it was not considered a sprite — it was simply an image. Like other pen blocks, the stamp block would not stamp over other sprites. Its marks could not be removed with the Clear block.

This block was only available in the 2.0 prealpha from Scratch Day 2011. It was removed to minimize the amount of blocks[citation needed] and its functionality is included in the Stamp block using the amount of the ghost graphic effect for the sprite.[1]

Workaround

The block can still be done in Scratch 3.0 with the following code:

set [ghost v] effect to (. . .)
stamp
clear graphic effects

or

set [ghost v] effect to (50)
stamp
set [ghost v] effect to (0)

or

set [ghost effect v] to (. . .)
set [ghost v] effect to (ghost effect)
stamp
set [ghost v] effect to (0)

Custom Block:

define stamp transparent (number)
set [ghost v] effect to (number::custom-arg)
stamp
set [ghost v] effect to (0)

References

  1. ar-post:1244537