Question by
pinkyking256 · Jun 01, 2020 at 11:28 PM ·
2d2d gamepathfindingpath-finding
A* 2D Pathfinding not working with prefabs?
I'm using A* to make my enemies follow the player. I was unable to drag the player sprite into the enemy prefab "target" slot without making the player a prefab itself. This was fine, but instead of following the player, the enemy went to the place the player starts in and didn't move after that. The only solution I found was to drag the player into each individual enemy, however, I want to make an infinite enemy spawner, so this won't work for me. Any ideas?
Comment
Your answer
Follow this Question
Related Questions
2d Pathfinding in Unity 5.6, how it works? 0 Answers
2D platformer AI 0 Answers
How do you use a BFS algorithm in an isometric tilemap? 0 Answers
2K screen resolution problem 0 Answers