User Guide
Table Of Contents
122
4. On the insert ? at ? of ? block, click the first box and
then type Williams1.
5. Click the second box and then click last.
6. Click the third box and then click Mobs.
The script that looks at the Mobs list and determines the order
in which sprites are placed on layers will be on the Stage. For it
to work, you need two other lists: ZSprites and OZSprites. Create
these two lists in the same way that you created the Mobs list.
You also need to clear Mobs at the start of the game:
1. In the Sprite List, click Stage.
2. In the Blocks Palette, click Control.
3. Drag a when I receive block to the Scripts Area,
and change it to be when I receive StartGame.
4. In the Blocks Palette, click Variables.
5. Drag a delete ? of ? block over to the Scripts Area
and snap it into position underneath the previous
block.
6. Click the down arrow on the first box and then click
all.
7. Click the down arrow on the second box and then
click Mobs.
Create the script to order the player sprite and active enemies:
1. In the Blocks Palette, click Control, and then drag
a when I receive block to the Scripts Area.
2. Change the selection to Level1.
3. Drag a forever block over to the Scripts Area and
snap it into position underneath the previous block.
4. Add the following blocks to the middle of the
forever block: