Help! Pathfinding issue

Get help using Construct 2

Post » Sun Nov 29, 2015 12:05 pm

I am using pathfinding for a character to follow the player and it works fine until i get to an obstacle...
so at a door i click to open the door (rotate sprite 90 degrees) and when i breach a wall (destroy wall).

The problem is when i do this and try to walk through the character stops following.

I make the character find path every 1 second so he keeps updating following the player, does anyone know how to fix this?

Thank you.
B
7
S
1
Posts: 54
Reputation: 527

Post » Sun Nov 29, 2015 12:08 pm

I guess you aren't updating your obstacles for the pathfinding..
For the object doing the pathfinding the wall is still there, there is no open door..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Nov 29, 2015 1:09 pm

Ahh yes, now i feel stupid, Thank you.

If anyone else is wondering, all you have to do is regenerate pathfinding obstacle map when you open/destroy object.
B
7
S
1
Posts: 54
Reputation: 527


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 39 guests