User Guide
Table Of Contents
120
2. Calculates if it is in striking range and if so, punches.
3. Walks a few steps if it is not in striking range.
Add the following blocks underneath the go to x: y: block:
Eventually, there will be two copies of this sprite on the screen
at the same time. To avoid them moving identically, notice how
the script picks its direction by looking at Billy and then changing
the direction by a random number of degrees. And the sprite
intentionally moves slower than the player’s character –
otherwise it would be impossible to escape and the game would
be very difficult.
Updating the Order of Layers
Because of the perspective used in the background graphics,
when the sprites move up the screen they are actually moving