Zho:盖章（积木）

The Stamp 积木 is a 画笔类积木 and a 条形积木. When used in a 程式, the 角色 will produce a bitmap image of itself, which is stamped onto the 舞台. The image cannot be programmed, as it is not considered a sprite. Like other 画笔类积木, the stamp block will not stamp over other sprites.

New in Scratch 2.0, if a sprite has a ghost (transparency) effect, the stamp will keep the effect and stamp transparently onto the stage. All stamps from all sprites are removed with the 筆跡清除 block, but will remain even when the 专案 is stopped.

历史
Before Scratch 2.0, if an image was stamped, its transparency (the 幻影效果) was not applied. This means that the ghost effect of the stamped object will always be 0. In the 2.0 prealpha from Scratch 日 2011, there was a Stamp Transparent block to get around this. It was not included in the full release of Scratch 2.0, as this bug was fixed with the normal stamp block. Stamping graphic effects works properly for all other effects, too.

用法示例
This block is commonly used and is vital to many projects:
 * Having multiple images of a sprite on the screen
 * Covering up part of the stage
 * Creating an 图像效果
 * Creating the illusion of multiple sprite movement in 一角色一脚本类专案
 * Rendering a random world
 * In some types of drawing projects

當 @greenflag 被點擊 定位到 x: (56) y: (43) 蓋章 定位到 x: (4) y: (123) 蓋章 定位到 x: (132) y: (6) 蓋章

应用
One simple workaround is to create a clone of a sprite that does nothing: 分身 [自己 v] 建立

However, the clones could still eat up memory and should not be relied on. There is also a clone limit of 300 whilst stamping is infinite.

That said, clones will appear in front of other sprites and clones whilst 'stamps' will appear behind all layers excluding the backdrop, making this workaround reliable if you don't want to "stamp" on the backdrop.

示例

 * Stamping tutorial and explanation by leonneo

参见

 * 盖章
 * 画笔