Thx before for all who spent your time to help my problem..
to the point, I try to create NPC that will move to nearest object.
-- when object spawn, NPC will move to nearest object use path finding
-- object will disapear on collision
-- NPC will move again to another nearest object till there no object left
the problem is NPC moving to nearest enemy didnt work..
I have UID of nearest object, but dont know how to use with path finding..
sorry about my english.
Develop games in your browser. Powerful, performant & highly capable.
my problem has solved..
I add time tick for every 1 sec to sprite sction, find path.
now I know, why it didnt work , bcouze of that action always be execute..