How do I destroy a solid so pathfinder realizes?

Get help using Construct 2

Post » Fri May 16, 2014 1:29 pm

Hi guys!

I don't know if this is weird or works as expected. I have a very, very, very simple scene of a Point and click prototype. It's a lateral camera (as in many games as Maniac Mansion or other graphic adventures), so I use a solid sprite for the wall and a normal sprite for the floor (to catch movement clicks). I also have a door, which I modeled as a solid sprite. I have added a Pathfinder Behavior to my player sprite.

When the player beats the puzzle, this door dissapears. So I destroy the sprite. But the Pathfinder acts as if the wall was already there. I tried destroying, setting Solid to Disabled, setting collisions to Disabled and even moving the sprite to an irrelevant position... and nothing. I mean, the sprite is modifed: it is displaced or destroid (invisible, at least), but the blockage remains when I try to calculate a path through where the sprite was. There is always an "invisible wall" avoiding the path calculation.

Is this normal and I am missing something as "refresh collisions" or something like that?

Thanks in advance!
B
5
Posts: 7
Reputation: 239

Post » Fri May 16, 2014 1:51 pm

Ok. I just found it xD

You must add a Regenerate Pathfinding obstacle map in your entity with Pathfinder Behavior to recalculate the available paths.
B
5
Posts: 7
Reputation: 239


Return to How do I....?

Who is online

Users browsing this forum: el3um4s and 8 guests