This is not ment to be glib ok?
Do a search on the Internet for "Game AI"
If you are talking about AI the level of say, the ghosts in packman, then the community can help you. Other than that Im afaid you are on your own
Generaly you check to see how far the player is away, then you generaly make the enemy choose whether to attack or flee.
TAke a look at this
http://www.blitzbasic.com/codearcs/codearcs.php?code=1832#comments
its in B3d and its only AI to path find
Do a search on the Internet for "Game AI"
If you are talking about AI the level of say, the ghosts in packman, then the community can help you. Other than that Im afaid you are on your own
Generaly you check to see how far the player is away, then you generaly make the enemy choose whether to attack or flee.
TAke a look at this
http://www.blitzbasic.com/codearcs/codearcs.php?code=1832#comments
its in B3d and its only AI to path find