Game Development Reference
In-Depth Information
Diving In - Enemies
Would
Super Mario
be complete without
Goombas
,
Halo
without
Grunts
, or Portal
without
GLaDOS
? No. No real game is complete without some solid enemies. That's
just what we are going to work on in this chapter, because Kevin needs someone to
stop him from rescuing Dom, right? Let's see what we are going to talk about.
• Creating various enemies to make things difficult for Kevin
• Making our enemies move, including a path finding system
•
How to make our enemies attack Kevin
•
How to give our enemies health and make them die too
Let's make things hard for Kevin.
Creating enemies
Let's start setting up our enemies. If you haven't drawn some up yet, no worries, you
can use the ones I've created. Import all the enemy images into our project and create
a new actor from the images. Open it up so we can bring the enemy to life.
First thing we should do is change his
Bounciness
to
0
; we don't want him bouncing
all over the place.