Question by
magmorta2012 · Oct 23, 2018 at 10:06 PM ·
c#movementpathfindinglistsastar
How do I make my A* script work with prefab enemies and make enemies move using the list created through A*?
Hi there. I asked before about implementing A* into my game. I managed to do this through Sebastian Lague's tutorials and code.
Now I'm not sure how to tailor it to my own needs. I can see the algorithm working through the gizmos and it works when I set the Seeker and Target references to an Enemy and the Player. How do I get this Seeker bit to be a reference to all the Enemy1 prefabs that are made?
Secondly, I have no idea how to actually make the Enemy follow the path (list) that is created in the algorithm.
Any help is greatly appreciated. If you need any more details, let me know. Thanks.
Comment