- Home /
How can I make the MoveTowards work?
So I am trying to make an AI for my coding class. So far it moves randomly in in generations and then goes to where ever the closest AI to the goal was and then does random steps again until it finds the goal. During that process it records all the positions its been too. Then in another script I simplify that list down to the closest coordinates in every generations. Now what I'm struggling with is being able to have the AI's go to the spawn and then move towards point 1 of the list, then when they get to point 1 they go to point 2 and so on until the list is over.
Your answer
Follow this Question
Related Questions
AI move towards closest tree? 0 Answers
how to stop something from following in the y axis 1 Answer
Game NPC "Guide" Movement (Much like Navi from Zelda) 1 Answer
MoveTowards inside Coroutine 2 Answers
Help with 2D AI scripting 2 Answers