Making a Hack’n’slash #5: Introducing combo attacks

Let’s keep developing our Hack’n’slash and add some attack logic to our hero!

Mina Pêcheux
CodeX
Published in
8 min readApr 28, 2022

--

⬅️ Interlude #1: Automating your Unity imports | TOC | Tutorial #6: Hitting enemies ➡️

In the previous episodes, we saw how to import a 3D model from Adobe Mixamo and animate it according to its current “state” (Idle or Running). Our hero is now a little guard that moves around when we activate the keyboard or gamepad controls and stops when we release the key/joystick.

But of course, any hack’n’slash has to have to some fighting, too! So, in this tutorial, we are going to see how to design a simple attack system with 3-punch combos. This way, we’ll be able to do one quick light attack, a medium attack or even a full chain of punches:

Adding the attack states

Alright — first things first: let’s import some new punch animations for our character! Again, I went ahead and downloaded…

--

--

Mina Pêcheux
CodeX
Writer for

I’m a freelance full-stack web & game developer. I’m passionate about topics like CGI, music, data science and more! Find me at: https://minapecheux.com :)