phaser-grid-physics
phaser-grid-physics copied to clipboard
Pathfinding not working with tiles with borders
This is't ment to be understood by anyone. Just doodling down a solution,
Solution: Tile 1 and 2, 2 has border to the left, sprite is 3 trying to walk down:
Default 0330 1122 1122 Add border: 0330 1||2 1||2 Prevent walking down with border in the middle by bodies larger than tile siez. * = blocked left and up. * should be | if body width equals grid width: 0330 1*|2 1||2