x


how to make your own AI

how do you make an enemy AI without using scripts that are already supplied by unity. thanks in advance.

more ▼

asked Apr 25, 2010 at 03:18 PM

tatty gravatar image

tatty
69 25 18 25

This is a broad question. You might get better results if you narrow it down to something like "I want to make an A*" algorithm" or "How to have enemy follow player" because right now it is hard to give a good answer. I would recommend reading up on AI designs and algorithms for starters.

Apr 25, 2010 at 03:33 PM Peter G

Peter G is right. Even beyond that, you should detail what sort of game you're going for, as things would be different if you're developing a 3D game or a 2D one; if there are varying heights; if there's cover; etc.

Apr 25, 2010 at 03:38 PM Ricardo

thanks i will look that up but i was thinking of just waves of AI attacking from all around

Apr 27, 2010 at 07:00 PM tatty
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Your question is very broad and non-specific. I suggest you have a look at this questions and its answers:

AI Programing Resources

You can also browse the highest-voted questions with the ai tag.

more ▼

answered Apr 26, 2010 at 09:31 AM

runevision gravatar image

runevision ♦♦
9.2k 54 111 173

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

i don't want to repeat what others said. for creating AI you can use one of these ways 1 there are complete solutions for behavior trees, path finding, steering behavior and ... available. take a look at angryant's website 2 use DLLs or create your own dlls and call them from unity (pro only). this is good for complex codes that they need much speed. 3 create your own C#/javascript/boo scripts in unity. to learn how to create the ai for your game you can go to websites related to "ai for games"

more ▼

answered Apr 26, 2010 at 12:03 PM

Ashkan_gc gravatar image

Ashkan_gc
10.1k 77 101 164

(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:

x1396

asked: Apr 25, 2010 at 03:18 PM

Seen: 6270 times

Last Updated: Apr 25, 2010 at 03:18 PM