Hello everyone!
I have been using A* Pathfinding recently and I don’t understand many things yet. I am making a simple game and most of the systems I have already made, some based on this system (it’s brilliant!) But I have one little problem and I have no idea how to solve it.
I have a player in my scene with the components: “Seeker”, “AiPath (2D, 3D)” and “AI Destination Setter (Script)”. Also, I have a “Target” with a “Target Mover” component. Everything works fine here, after clicking somewhere on the map, the player easily approaches it.
I added an object to the scene, let’s call it “Item”. After clicking on it, I would like the player to approach a specific XYZ on the map. For this, “Item” changes the position of the “Target” object. Unfortunately, after changing the target position, the player sprite will not budge! I tried to copy the content of the “Target Mover”, I tried to bind the “Item” object script to the “Pathfinding” namespace, and many, many other things, but I run out of ideas and can’t find anything in these systems that pushes the player to move or blocks this movement .
I will add that after the item changes the position of the target, the player will not move, but when I click somewhere, it obviously follows the mouse.
I would be very grateful for your help, I have run out of ideas.
Thank you in advance!