x


Help with Grid movement script + AI script

Hi! I and som friends recently started with a gameproject that will outplay in a maze from a 2d angle. We now wonder if anyone can help us with a script for AI patrol? It only needs to be able to go between two points in a grid but it would be nice if it could adapt to a change in the grid aswell as following the player if he gets close to him.

Thank you in advance //Anton Ek

more ▼

asked May 03 '11 at 07:24 PM

Kjellan gravatar image

Kjellan
34 4 4 4

You aren't going to get much help on here asking for scripts. Do a search of Unity answers and read up on how other people have approached the problem. Then work on the script yourself and if you have a specific problem you are are stuck on with the script we will be happy to help :)

May 03 '11 at 07:29 PM Meltdown
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You should also learn about Waypoints at least for the patrol part.

Maybe this helps http://www.youtube.com/watch?v=-5RiMoILHTA

more ▼

answered Jan 31 '12 at 09:26 PM

Alverndbl gravatar image

Alverndbl
31

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

x3327
x1366
x958
x268

asked: May 03 '11 at 07:24 PM

Seen: 1387 times

Last Updated: Jan 31 '12 at 09:26 PM