Member-only story
Unity2D DevLog 10— A New Enemy Appears
The game has been moving along quite nicely. I have a whole new set of tasks to complete. I look forward to working on every one of them.
My first task is to create a new enemy type.
Objective:
Create a new Enemy Type that has unique movement.
How I went about it:
Variety is the spice of life. I want to make sure that my game has different enemies to challenge the player. Since this is a top-down shooter, the obvious choice would be to create a moving target. All of my enemies move from the top of the screen to the bottom, but this new enemy will zig-zag down, making it harder to hit!
As I always do, I started with some art to represent this new enemy type. I decided the new alien was going to be a floating blob.
Besides looking like something the player will want to shoot, this enemy’s main feature will be its movement pattern. I want to implement zig-zag movement as it travels down-screen. To do so, I created a new Prefab of the Alien and added its animation. I have a few Script Components that all of my Enemies use. I attached them and…