Hokay… we all know that as much as we want to make games, if we want to include an antagonist of some sort to the player, there is a need for at the very least a basic AI system.
i’ve tinkered with AI scripts here and other places and made one which i posted elsewhere here (link to forum post Here:-- http://forum.unity3d.com/threads/64971-Matrix-Variables-for-Multiplayer-Aggro-AI ) and though it works for a very basic, single-minded AI system (find player, go to player/follow player) it isn’t the most polished. it would work for things like basic turrets (if you freeze the movement) and is rather flexible (i’ve even used it to control the pyrokinesis “seeds” and with the right physics settings, acts relatively believable.)
thing is, i KNOW that this is the most basic of AIs that are out there… and i also know that good AI scripts are what can make your game from “good” to “WOAH!!!”
so, i propose this… a collaboration to help break down what basic principles are needed and how they would be implemented. this is for my own benefeit too since i’m trying to work out a good AI system (since the enemies in the game i am making aren’t as dumb as a brick wall.)
… so, here’s what i’ve got so far.
so… i know that this is likely not going to attract all you coders out there since some of you have some amazing scripts up for sale and aren’t really keen on releasing the secrets to how you did it… but that’s okay too. (we all have motives after all.)
so… first things first… in your opinion, would it be easier to use Java or C# (or is that merely a matter of preference?)
(using the Hulk as an example… but, ya gotta admit, the Hulk is a bad-ass character, amirite?)
basically, i would like to see about making the most flexible AI script out there that can be tailored to be used for various different enemies.
thing is, what i’ve not wrapped my head around quite yet is wether i can make this flexible such that the creator can add in different AI states on the fly or if they should be hard-coded in there. not sure, that’s where my newb is showing.
so, first off, i would think that the code(pseudocode) would go something like this.
i’m still learning and now going through some pretty nice AI demos and tutorials as well as going over other AI scripts… but, do you have any tips or advice? any resources you would recommend that anyone interested in doing follow first?