Maintaining Your Enemy Arrangements

While we can make lots of interesting arrangements of enemies for the player to encounter, you may find that arrangements involving the Slimes have fallen apart by the time you arrive. As an example, let’s create an arrangement of Slimes that work their way down some “stairs” toward the player. Create a scenario in your level that matches Figure 9.10.

Image

Figure 9.10 Slimes and steps arrangement

If you run the game, you’ll get to see the Slimes advancing down the steps toward the player. It’s neat to watch, and you can see the hazard coming. Eventually they’ll all fall into the pit and be destroyed.

There’s ...

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.