Jump to content
  • Advertisement
Sign in to follow this  
umanga

Few newbie problems on AI??

This topic is 4999 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hy guys! I've got some problems om game AI 1] In games like Delta Force, which player and enemies are moving mostly on the terrain how to do enemy AI. Are they moving on a fixed path? If not how to code AI to move avoiding obsticals. I guess path finding is not good here , cuz the the number of Nodes in a terrain will be huge? so to find shortest path between two given Nodes, will eat our fps! 2] In indoor games like quake, I guess the method is shortest path? Like in Pacman, there is only nodes in the path.Am I correct? Or is it ok to use fixed path? 3] I got no idea of AI of fighting games like Mortal Kombat.Where can I found tutorial about this? thanks guys.

Share this post


Link to post
Share on other sites
Advertisement
ok, this is going to be a biggish post.

First, A* is very fast. Especially with a good heuristic. With Heirachial A*, you can basically get a path from one end of the map, to the other. As long as the path exists, it will be fine. If it doesn't, then it will take some time.

There is a way around that: Get a path manager. It basically gets all the paths, orders them, and computes them, so that per frame its not using that much time, yet it computes all the paths when needed.

With delta force, i would say (i haven't played the game), that there using A*, but with terrain cost as a heuristic. For eg. Moving up a hill increases the path cost much more then moving on a flat level road. So, your pathing algo will find the path on the road system, until it has to move off. (which is rather nice, once you get it to work).

There are always nodes in the path, there are a few (very complex) algorithms which will turn a mesh, into a nav mesh (which you then use for pathfinding).

For info on pathing, look at This tutorial/

For the fighting games, i'm not sure what they use. Thry probably have some sort of fsm. (finite state machine... Tutorial)

Hmmm. I'll have to get back to you on that.

From,
Nice coder

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!