NPC move to nearest object

Get help using Construct 2

Post » Tue Jun 18, 2013 1:22 pm

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.

- NPC move randomly
-- 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
- While there no object around NPC move randomly again

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.

https://www.dropbox.com/s/lxgzxu289g38fbd/Move%20to%20nearest%20object.capx
B
12
S
2
G
1
Posts: 25
Reputation: 986

Post » Tue Jun 18, 2013 2:06 pm

Wohh...

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..

:D
B
12
S
2
G
1
Posts: 25
Reputation: 986


Return to How do I....?

Who is online

Users browsing this forum: matrixreal, mercuryus, thatserafimkid and 5 guests