4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
10.48k stars 836 forks source link

Pathfinding + TilemapMask should work? #4426

Open willianholtz opened 1 year ago

willianholtz commented 1 year ago

I'm trying to use pathfinding with TileMapMask, but it doesn't seem to work very well, several bugs occur when activating pathfinding, I made a video, and I'll also leave the project here:

Project: My project18.zip

Video: https://user-images.githubusercontent.com/23488207/197300880-e34e5ff7-ff9b-43af-a00a-6c17ffa70c6b.mp4

kryptot7 commented 4 months ago

Are there any updates on this? I ran into similar issues in an earlier version of GDevelop. I'm not sure if the incompatibility between TileMapMask and pathfinding has been fixed.

Silver-Streak commented 4 months ago

Pathfinding doesn't take into account collision masks at all, so I'm not that there is an incompatibility rather than they aren't designed to be used together. Normal pathfinding just uses the full aabb square (bounding box) of the object.

Maybe if you use the nav mesh pathfinding extension in the main extension list?