Creating a Skeleton Enemy in Unity

In my last article, I showed you how to set up an enemy class that all enemy types would inherit from. With the enemy class set up, it will be much quicker to set up a new enemy. In this article, I will show you how I set up my skeleton enemy.

Go through the steps of setting up the skeleton with the first idle sprite. Create the waypoints for the skeleton to walk between.

Create a new script for the skeleton and inherit the enemy class.

Add the script to the skeleton and it is done. Using class inheritance it was that simple to create the skeleton.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store