User Guide

105
1. In the Blocks Palette, click Variables and then click
Make a variable.
2. In the Variable name box, type CanScroll.
3. Click the box next to For all sprites.
4. Click OK.
5. In the Blocks Palette, click the box next to
CanScroll to remove it from the Stage.
To make L1M5 scroll with the others and set CanScroll to zero,
add this script to L1M5:
Before continuing, it is important that these two variables are set
to default values when the game begins:
1. In the Sprite List, click Stage.
2. In the Blocks Palette, click Variables.
3. Drag a set ? to 0 block over to the Scripts Area and
position it above the broadcast StartGame block.
4. On the set ? to 0 block, click the down arrow and
then click scrollX.
5. Drag a set ? to 0 block over to the Scripts Area and
snap it below the previous block.
6. On the set ? to 0 block, click the down arrow and
then click CanScroll.
7. On the set CanScroll to 0 block, click the white box
and change the value to 1.