User Guide

130
4. Change the block set EnemiesRemaining to 2 to
set EnemiesRemaining to 1.
5. Change the broadcast block to send SpawnE.
Following the previous instructions, make another copy of
Williams1. Name this sprite Williams3 and change the when I
receive Spawn1 block to when I receive SpawnE.
In the when Z key pressed and when X key pressed blocks,
replace the set CanScroll to 1 blocks with broadcast WinGame
blocks.
5.7 Game Over
The game broadcasts two messages that are not yet received by
any sprites: “FailGame” is sent when the player loses all their
lives, and “WinGame” is sent when the player defeats the enemy
in the last part of the level. You can use these to return to the title
screen.
If you are converting your Scratch project to an .exe, .app, or .jar
file, then it will run a lot quicker and you may be able to add
more into the game. There are a lot of areas in this project that
you can extend. For example:
To Do This
Stop the enemies from walking
through walls
Use a wall-sensing sprite for each
enemy.
Add another level Change the final enemy so that it
broadcasts “Level2”.
Add weapons Include an extra set of costumes for
the player and enemy sprites that
shows them holding a weapon.
Make the animation smoother Use more costumes, reduce the
number of steps in the movements,
and the amount of seconds in wait
blocks.