Adding Zombies To My Endless Runner

I’ve been looking for some additional obstacles for the player to avoid and also add some extra challenge to the game. I now have zombies that get spawned, although I still need to make them attack the player and I also have a new mob of zombies on the left hand side that get closer to the player when you let a zombie get off the screen.

Here you can see I started with the mob of zombies.


Next I played around with the direction spawned zombies should be facing. This was my first attempt, but I didn’t like the way they appear to be moon walking backwards.


Finally, I changed the direction of the zombie and added in logic so that the mob moves forward when a zombie collides with it and moves back a little bit when an obstacle collides with it.


There is still a lot of work left to do to clean this up, but I generally like to get the main mechanics in place first, then come back and polish it up after I Know everything is working.

Subscribe To My Mailing List

Want to learn how to make a game? Not sure where to start? Even if you are a seasoned game maker there is still a lot you can learn from my mailing list. I'll be covering tips and tricks for how to build, release and market games each month.

Simply sign up for my mailing list and also get access to a 50% off discount code for my eBooks and other content. I promise to not spam your inbox!

Join Now