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.
Posts: 54
Reputation: 377

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..
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.
Posts: 54
Reputation: 377

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests