x


Advanced combat AI

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.

more ▼

asked Feb 05 '12 at 12:30 AM

jessee03 gravatar image

jessee03
306 58 77 89

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

If you are just beginning to learn to program AI, the first thing you should do is Google "finite state machine" and start researching.

more ▼

answered Feb 05 '12 at 05:22 AM

mweldon gravatar image

mweldon
252 1 5

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)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x39

asked: Feb 05 '12 at 12:30 AM

Seen: 600 times

Last Updated: Feb 05 '12 at 10:15 PM