User Guide

73
Building and Running Scripts
This section describes how to work with blocks from the Blocks
Palette to create scripts – sequences of blocks. Each sprite (and
the Stage itself) can contain many scripts.
To attach a block, select an item in the Sprite List and then drag
blocks from the Blocks Palette to the Scripts Area. For example:
1. In the Sprite List, click Stage.
2. In the Blocks Palette, click Control.
3. Click the block when <green flag> clicked and,
while holding the mouse button, drag the block
over to the Scripts Area. Release the mouse
button.
4. In the Blocks Palette, click Looks.
5. Drag the block change color effect by 25 to the
Scripts Area and below the other block. The white
line shows where the block will go. Release the
mouse button.
6. In the Scripts Area, on the block change color
effect by 25, click color, and then click brightness.
7. On the block change brightness effect by 25 click
the white box that contains 25. Change this to -25.
8. In the Blocks Palette, click Control.
9. Drag the block wait 1 secs to the Scripts Area and
to the bottom of the block change brightness
effect by -25.
10. On the block wait 1 secs, click the white box that
contains 1. Change this to 0.5.
11. In the Blocks Palette, click Looks.
You cannot move backgrounds in Scratch, so if you want areas of
the background to move then you have to create them as sprites.