Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Making a path of tiles for a unit

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Renran   Members   

132
Like
0Likes
Like

Posted 17 May 2012 - 10:48 AM

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

Edited by Renran, 17 May 2012 - 10:48 AM.


#2 ApochPiQ   Moderators   

22538
Like
0Likes
Like

Posted 17 May 2012 - 12:58 PM

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]

#3 Renran   Members   

132
Like
0Likes
Like

Posted 17 May 2012 - 01:12 PM

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




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.