- Home /
Help me with this Pathfinding?
I'm trying to make it so when the player clicks a star (the little dots on the picture) it creates a path star-to-star to the designated star. All the stars randomly generated.
Would A* Pathfinding Project work for this if so could you help me with it?
If there's an easier way or something please let me know.
I've been doing my whole project in C#. If you can keep it in C# thanks.
Thanks!
Answer by YoungDeveloper · Sep 30, 2013 at 11:10 AM
You could save pressed stars in an array. Then (if array exists) draw line from point to point using draw line http://docs.unity3d.com/Documentation/ScriptReference/Debug.DrawLine.html .
I mean if I pressed a star I want it to be able to calculate the shortest path to it by going star-to-star.
Your answer
Follow this Question
Related Questions
A* Algorithm Node Grid Generation 2 Answers
Multiple Cars not working 1 Answer
How to apply A* algorithm in C#? 2 Answers
Distribute terrain in zones 3 Answers
A* endless loop 0 Answers