- Home /
Online Advanced AI(Artificial Intelligence) with JS
Hi, Know my question is where can I find Advanced AI because I only can find web sites that says the enemy health, how to follow you, and another things that are simple but know I want something complicated, like algorithms but what I actually want is something like not using any way-points that mines not algorithms so I want the enemy follow me in a strategic way like cover and shoots then he start moving and finally get to me. But the question is that where I can find something like this using JavaScript or if is a little bit complicated to find with JS is Ok in C#.
But please I need lot of answers. I will really appreciate it. Thanks in advance :P
Answer by Justin Warner · Jan 07, 2011 at 06:23 PM
UnitySteer, AngryAnt (Path Behave), and Custom are your real options...
http://www.arges-systems.com/articles/35/unitysteer-steering-components-for-unity
That's what is made.
To do custom, you're going to have to go by what you know... It is, in my opinion, the only thing Unity really needs to be a solid game engine.
sorry I don't understand it well, in this web sites is for download scripts?
Don't forget arons a* pathfinding www.arongranberg.com/unity/a-pathfinding/
AI isn't very supported in Unity. Like, if you're doing a FPS, you can do something like, enemy looks at you, waits a second, then shoots, with an accuracy of ___ that changes its angle, and so it sometimes hits, sometimes doesnt, or you can use a random number generator. In other words, their is no real good way to do it, you'll have to custom code it most likely. These are solutions/packages/plugins others have made. You'll have to read them, rather than just copy paste.
Isn't very supported? Don't you mean not really given upfront? AI is depended on the programmer, correct? :D
AI solutions seems to depend more on the problem, not the programmer. You can't use a chess AI (with its specific heuristics) on a FPS style of game, and not FPS style AI with racing games. The way I see it is that the AI is very specially tailored toward the specific problem they are trying to solve. There are also self learning AI that might be able to become reusable across a wide set of problems, although it is probably not the optimal solution.
Answer by Statement · Jan 07, 2011 at 06:36 PM
I suggest you pick up a solid nice book about AI. No really - I mean it.
I just recently bought a book myself to give myself more of an edge with AI. There is no out-of-the-box smart AI that unity provides. You'll have to get third party libraries and addons or write some yourself. AI is a complicated topic but so is rendering and physics so don't let that put you off from learning it. You'll find though that advanced ai use waypoints (or nodes) quite heavily to navigate the world. Some AI use this "nagivation mesh" to find places such as cover, health or ammo. I wish I could give you something solid to nibble on but I think the best thing would be to get yourself a book, like Game Programming AI By Example (I heard it was good, I have bought Artificial Intelligence - A Systems Approach).
"Real" AI is way more advanced than following a path or steering away from obstacles. You need to consider planning, estimating opponents move and really an at first bewildering set of options. Then you probably need to optimize the algorithms with heuristics to prune options that are clearly uesless. In short - it's a large topic :)
Treat yourself with a book. You wont regret it :)
the thing is that what I don't want way points is because there only giving patterns of where to go what I am thing is that use the way points only as a guide but not as a way to go. And thanks but only 2 question, what is the name of the book and where I can find it?
I bought $$anonymous$$e off Amazon but I bet there are cheaper places. I don't recommend the ebook one I got, I didnt get a companion CD and the images were of horrible quality, so if you would ask me I'd say go for the hardcover/paperback version. I listed two books in my answer.
I kind of like the book I bought (Artificial Intelligence - A Systems Approach) but the code is horrible (old C code with inconsistent styling makes it hard to understand). It seems to be more practical and code oriented than I hear many other books are. You need a basic knowledge about data structures such as Queues, Stacks and Trees but the book explains them briefly. You might want to learn more about data structures first if you have trouble with them.
The waypoints/nodes in themselves are quite boring. What you need to do is iterate through them to find paths to some interesting places. But to know what is interesting place, you need to make a decision, and the AI makes the decision based on the known state of the game through some sort of $$anonymous$$imax algorithm.
Answer by Uriel_96 · Jan 10, 2011 at 11:46 PM
I just got a good web page that is awesome to start learning more about Advanced AI and all of path, algorithms, etc.. here is the page: http://www.ai-blog.net/archives/000152.html but thanks any way for all your help
The page of arons a* was awesome and really helpful the only bad thing is that I was planning doing the script by my self and is difficult to learn that because is a lot of code but thanks anyway. :P
Your answer
Follow this Question
Related Questions
A* optimization and path help 0 Answers
Problem using boids algorithm for chasing enemies. 1 Answer
Modifying AI script to follow gameobject 1 Answer
ai navigation help 0 Answers
AI navigating all 6 sides of a cube 0 Answers