How do I make my pathfinding work?

Get help using Construct 2

Post » Sat Apr 30, 2016 9:01 pm

Hello everyone, I have a question, is that my pathfinding only works when I start the layout or when you have a count of every x seconds.
My question is: how can I make the pathfinding find the path and go when a variable reaches a certain value, is why until now tenteir do but did not succeed.
B
32
S
9
G
3
Posts: 280
Reputation: 4,262

Post » Sat Apr 30, 2016 9:28 pm

Try this

- Sprite is pathfinding not moving along path -> add 1 to Variable
>- Variable >= 10 -> Sprite find path to
B
18
S
7
G
1
Posts: 56
Reputation: 3,000

Post » Sat Apr 30, 2016 9:43 pm

Thank a lot my dear friend, for what you wrote got me based here, was this I did:
When Variable is greater than or equal to 3 -> Regenerate obstacle map
On pathfinding failed to found path -> Find patch at (tarjet.x, tarjet.y)
On pathfinding found path -> move along the path
B
32
S
9
G
3
Posts: 280
Reputation: 4,262


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests