The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

Update: the code is here (https://pastebin.com/9jT0z2Kk)

Hello! I was using the built-in A* pathfinding and it was working pretty nice but when I changed the tilemap it became to not work anymore. The process was the following:

1 - I was using 1 tilemap with A* and all was working.
2 - I wanted to separate the tilemap sprites from the navigation because the sprites are bigger than the navigation I needed, then I added a new TileMap with a cell size of 256x256 and no navigation. I changed the old TileMap to 64x64 and set the navigation to the latter.

Then my pathfinding was not working anymore. I had changed some code and I was thinking the code was not right but I checked everything three times (using diff with the old files) and I found no error.
So, I was thinking the problem was the TileMap. I deleted the two tilemaps and created a new tilemap and tileset too.
I set the size to 64x64 and saved as a different scene. Then I saw the problem:
TileMap 1 problem
TileMap 2 problem

I don't know why the tilemap is broken.

in Engine by (96 points)
edited by

I found the tilemap problem with the help of a friend on Godot Engine Facebook group.

https://www.facebook.com/groups/godotengine/permalink/1605481642921757/

But the A* still not working so I updated the question with a link for the code.

1 Answer

+1 vote

Ok, after checking the code again I saw the problem. The problem appeared after the tilemap stopped working. As the tilemap was not working I changed the code and mistakenly put a bug in it. I fixed the code at the link.

by (96 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.