Game Development Reference
In-Depth Information
4. This direcion can be completely random, so we ill in 1 and 360 , in the pick random
() to () block.
5. Then, we will add a repeat unil... loop.
6. We check again for touching <explosion>? like we did earlier with the knight.
7. As long as everything is well, we will use the move 2 steps block.
8. As a precauion, use if on edge, bounce , so the ghost doesn't get stuck on the
stage edge.
9. We conclude this script with a delete this clone block for the case where the ghost
does get hit.
That's our second enemy done.
Objective complete - mini debriefing
In this step, we see that more complex scripts don't always mean a more dangerous enemy.
The script for the ghost is simpler than that for the knight. However, the ghost poses a much
bigger danger to the player because it can move through the walls. If the player isn't careful,
he/she can be easily driven into a dead end.
Creating a sword
Now, let's create an addiional weapon to make it easier to get rid of the enemies lurking in
the maze.
 
Search WWH ::




Custom Search