Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


Making a path of tiles for a unit


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   -  Reputation: 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.


Sponsor:

#2 ApochPiQ   Moderators   -  Reputation: 15975

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

#3 Renran   Members   -  Reputation: 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.



PARTNERS