🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Making a path of tiles for a unit

Started by
1 comment, last by Renran 12 years, 1 month 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
Advertisement
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]

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

This topic is closed to new replies.

Advertisement