AI Type Programming


I've been working on a little AI programming for a zombie game, because that's original.

The question I have is would it be more fundamentally ideal to create a separate entity with corresponding scripts per zombie type (ie. Fast zombie, exploding Zombie), or can I set up all zombie types in a single script and entity and have a property that allows me to choose between my types?

The former is the setup I used to use in Unity due to ease of accessibility, but for debugging purposes, the latter doesn't sound too bad.

more than that, should I keep the enemy set up the same as the Player's, in terms of having a separate script for animations/pathfinding/etc? Or should I rather have one big script per type?

Thanks for any answers!

Who is online

Users browsing this forum: No registered users and 1 guest