Question in the title really. Can the pathfinding behaviour pathfind around a tilemap? I've tried a few experiments but they don't seem to interact at all.
Develop games in your browser. Powerful, performant & highly capable.
Yes, you can build an obstacle map for Pathfinding with tilemap. Pathfinding cell size needs to be smaller than the tile size. Set tiles for walls, other tiles need to be empty, or have a collision polygon which allows to pass through them.
Another option is to use EasyStar.JS plugin for tilemaps, it has tons of great features. See the last page for C3 link:
construct.net/en/forum/extending-construct-2/addons-29/behavior-easystar-js-pathfindi-96215
Thanks. I see mention of obstacle maps in the documentation for pathfinding but I don't see any examples or mention of how tilemaps link in to an obstacle map. How do I make it use the tilemap?
Just add Solid behavior to the tilemap. Or add the tilemap as a custom obstacle for Pathfinding. It's not much different from sprites.
Here is a demo I made for some other post, it uses an invisible tilemap:
dropbox.com/s/isnc7nm26ekdv8q/PathfindingFTL.capx
Ah, solid behaviour on the tilemap, that's what I was looking for. Thanks :)