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.

--

--

--

Unity Game Developer and C# Programmer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Web Development Blogs to Follow in 2022

Music Production: Absolutely Necessary Plugins on a Budget

Komplete 12 Standard

k3s airgap application installation

How to convert XBM to JPG in Python

Nobody understands REST or HTTP!

Set up a development grade kubernetes cluster

Universal Keyboard Emulator USB Rubber Ducky

Programming Rules

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
Matthew Clark

Matthew Clark

Unity Game Developer and C# Programmer

More from Medium

Cinematography in Unity — Fade to Black

Unity : Raycast for check Distance

“Game Feel”: The Impression Of Weight

Tips: ScriptableObject