|
Anyone know where I could find tutorials or have any tips on creating an advanced combat AI. I'm think of something along the lines of the zelda combat system where enemies block, jump back, run around, and use special abilities at a certain time. I'm not sure exactly the best way of going about doing this.
(comments are locked)
|
|
If you are just beginning to learn to program AI, the first thing you should do is Google "finite state machine" and start researching. Not exactly the answer I was looking for. I've known about this but would like to know the best way about going about setting it all up. Should I use trigger boxes to check distance ? Make different random states for defending or attacking ? Also how would the enemy know to run around the player in a random path rather than running straight at the player.
Feb 05 '12 at 07:11 PM
jessee03
This site is for direct questions and direct answers. The questions you are asking do not have a single definitive answer. There are lots of ways you could do it, though pretty much all of them would require a state machine of some kind. If you are looking for a more in-depth discussion of different ways to make AI, that would probably be better suited for the forums.
Feb 05 '12 at 08:59 PM
mweldon
A state machine does seem like the right way about going about this but ya I still have trouble with AI so was hoping someone had some sort of direct answer. I'll definatly try the forums.
Feb 05 '12 at 10:15 PM
jessee03
(comments are locked)
|
