Creating a Spider Enemy in Unity

Matthew Clark
Jul 16, 2021

I have already created a moss giant enemy for my game. Now it is time to create the spider enemy.

Similar to the moss giant you add the first sprite of the idle animation. I created the animations for the spider and put the sprite under an empty game object to hold the scripts.

Create a spider script that inherits from the enemy abstract class and add all the required methods. Duplicate the spider and create waypoints in the same way it was done for the moss giant. Add those the to spider script.

Set up the script almost identical to the moss giant script with the animator and sprite renderer for the spider sprite.

This made the spider behave how I wanted it to.

--

--