User Guide

114
1. In the Sprite List, click GBilly.
2. In the Blocks Palette, click Control.
3. Drag a forever block over to the Scripts Area, and
snap it into position below the show block.
The player should not be able to control their movement when
they are attacking, or when they have been hit.
1. Drag an if block over to the Scripts Area, and snap
it into position inside the forever block.
2. In the Blocks Palette, click Operators.
3. Drag a ? < ? block to the Scripts Area and snap it
into the if block.
4. On the ? < ? block, click the second white box and
type the value 5.
5. In the Blocks Palette, click Sensing.
6. Drag a x position of ? block to the Scripts Area and
snap it into the first white box on the ? < 5 block.
7. Click x position and then click costume #.
8. Click the down arrow in the box, then click Billy.
9. Add the blocks on the following page into the
middle of the if costume # of Billy < 5 block:
Where it says “See Above” on the diagram, you need to create
an operator block that reads: touching ML1M1 or touching
ML1M2 or touching ML1M3 or touching ML1M4 or touching
ML1M5.
If the right arrow key is pressed then the script checks that the
GBilly sprite is in the far right of the Stage. If it is, and scrolling is
enabled, then there is a block to increment scrollX (which in turn
causes the background sprites to move to the left). If scrolling
the background causes a wall to come in contact with the wall-
When building scripts that are made of this many blocks,
assemble it in small pieces in unused space in the Scripts Area.
Then slowly combine the pieces.