Advertisement

Making a path of tiles for a unit

Started by May 17, 2012 04:48 PM
1 comment, last by Renran 12 years, 9 months ago
Hello,

I have a question:
A unit is standing at the top of a triangle.
The triangle is filled with tiles.
So, I have to make a kind of path of tiles where the unit is permitted to
go. The tiles where the unit can go will be lighted, the others not.
What kind of AI can be used to make this path?

Thank You and greetings

Renran
Have a look at the "A-star" (aka "A*") algorithm. It should do what you need :-)

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

Advertisement
Thanks, I was not sure what to use.
Greetings,
Renran

This topic is closed to new replies.

Advertisement