Rpg combat system tutorial for Unity with simple state machine – part 4
This rpg combat system tutorial for unity is almost ended, you can press play and test if the enemy and player health points are scaled correctly when they are in close combat and their Box triggers components intersect. This Rpg combat system for Unity with simple state machine is to be improved in the future, or by yourself, with two additional fixes. As of now it doesn’t matter if the attacker is facing the defender, so every gameobject that intersects with an attacker is hit and damaged regardless of the weapon orientation. Another quick fix its to make the player die if he runs out of health points and create a quick game over sequence!
I hope you enjoyed this Rpg combat system tutorial for Unity with simple state machine and that it gave you some ideas to make your combat system working !
You can find all the scripts used in this Unity rpg combat system tutorial with state machine in this page :