How do I solve this 'Pathfinding' issue?

Get help using Construct 2

Post » Mon May 18, 2015 9:57 pm

I'd really appreciate it if anyone could help me with this.

So I have a family (enemyTanks) that has a pathfinding behavior that works fine when I have:
Pathfinding.Obstacles(Custom)

and no custom obstacles set.

However if I set:
Pathfinding.Obstacles(Solids)

or
Pathfinding.Obstacles(Custom) == tankObstacles

the tank does not move from it's position.

(All the objects in tankObstacles have the Solid behavior)

The event sheet is pictured below -

Image
Full size image here: i59.tinypic .com/27wvb4o.jpg

Thanks in advance!
B
7
Posts: 11
Reputation: 300

Post » Mon May 18, 2015 10:05 pm

Add obstacle
If the Obstacles property is Custom, add an object to mark as an obstacle in the pathfinding grid. If this is done during the game (after Start of layout), you must also use Regenerate obstacle map for it to take effect.

So you seem to be missing the regenerate obstacle map - action.
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 » Mon May 18, 2015 10:24 pm

LittleStain wrote:So you seem to be missing the regenerate obstacle map - action.


Where should I add the regenerate obstacle map action? I have tried a few different places and events but none have worked for me.
B
7
Posts: 11
Reputation: 300


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests