How do I set a pathfinding sprite to avoid holes?

Get help using Construct 2

Post » Fri Apr 20, 2018 2:59 pm

I have a tilemap, and I want enemies to avoid going on areas where there aren't any tiles.
So, how?

Help would be appreciated! :D
B
6
Posts: 24
Reputation: 300

Post » Fri Apr 20, 2018 5:13 pm

Make another invisible "inverted" tilemap with tiles in place of holes, and use it for pathfinding.
Set obstacles=Custom in pathfinding properites and add this tilemap as an obstacle.
B
19
S
9
G
158
Posts: 2,377
Reputation: 84,381


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 57 guests