How do I set a sprite to pathfind "find path" to object?

Get help using Construct 2

Post » Fri Jul 18, 2014 2:24 am

How do I tell a pathfinding sprite to find a path to an object. Ive tried setting the action "find path to X:object.x, Y:object.y" and then set the unit to move along path once path is found but it does nothing. I set another action for the pathfinding object to flash if it fails to find path just to see if that is what is happening but it doesnt even flash making me think it isnt even initiating the find path command. There is a start event for the sprite to "find path to X:object.x, Y:object.y" which is once its health instance variable reaches a certain value (3) and once i launch the game and get that sprites health variable to 3 it does not move to the object.x, object.y. Any ideas?
B
4
Posts: 10
Reputation: 220

Post » Fri Jul 18, 2014 1:47 pm

Did you check the examples that comes with C2 ?

Check this example :
You do not have the required permissions to view the files attached to this post.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Fri Jul 18, 2014 2:31 pm

You might need to provide a capx. There's a few things that can go wrong. Try this - add an event when path NOT found and see if that triggers.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to How do I....?

Who is online

Users browsing this forum: lordsas and 68 guests