Search Unity

[Tutorial] Building an Attack Slot Manager

Discussion in 'Community Learning & Teaching' started by sirgolan, Oct 10, 2017.

  1. sirgolan

    sirgolan

    Joined:
    Oct 18, 2013
    Posts:
    175
    Hi everyone!

    I've started writing some game AI tutorials for my company recently. The first showed how to implement a Wapoint Path Finding System, and the latest one goes over a simple Attack Slot System.

    If you're building a game where multiple NPCs attack the player at once in either a 3D game or top down 2D, an attack slot system can make the AI look a bit smarter by directing them to spread out around their target.

    Without attack slots:



    With attack slots:



    I was actually pretty surprised how little code it took in Unity. The previous times I've built a similar system have been in custom engines in C++. Anyway, you can check out the tutorial at the link below. I'm hoping to continue with other similar tutorials in the near future. Let me know if you find it helpful!

    Building an Attack Slot System in Unity