I’m following this tutorial about pathfinding: A* Pathfinding (E02: node grid) - YouTube
I’ve followed all the steps but, when it’s time to run the game, this happens:
As you can see, all the blocks are white. But they should turn red if one of the objects (the red square on the top left) is in the “Unwalkable” layer.
I’ve uploaded the code that I’m using for this.
If anyone can point out what’s wrong, that’ll be appreciated.