
-----------------------------------
Shyfire
Mon Jan 09, 2006 10:19 am

fighting game ai help
-----------------------------------
what are some elements of good fighting game ai, like i made some ai but  the ai character to hounds the player, how can i make good ai please give me suggestions?

-----------------------------------
Tony
Mon Jan 09, 2006 11:05 am


-----------------------------------
a good approach would be to first make your game 2 player (no AI required yet) and then play it yourself against a buddy. Try to figure out what kind of moves you're performing yourself and when/why. This information will give you an outline for an AI.

-----------------------------------
Albrecd
Mon Jan 09, 2006 1:25 pm


-----------------------------------
All you need are some simple if statements:

if user does a low attack then computer jumps
if user ducks then computer does a low attack

but don't make it too efficient or the player will not be able to win.[/code]

-----------------------------------
[Gandalf]
Mon Jan 09, 2006 5:43 pm


-----------------------------------
I wouldn't worry about making it "too" efficient.  As long as it follows the same 'rules' as the human player, try to make it as good as possible.  It will likely still require some tweaking before being challenging.

-----------------------------------
MysticVegeta
Mon Jan 09, 2006 6:21 pm


-----------------------------------
Ah well I have some ideas. For example if the lvl of the computer is:

-> Noobie, 

if (attackByPlayer) and (Rand.Int(1, 6)  Intermediate, 

Same except change it to Rand.Int(1, 6)  Advanced, 

Same excpet change it to Rand.Int(1, 6) 