April 19, 2017
Hex Map 16: Pathfinding
Not satisfied with just knowing distances, we move on to find the shortest paths between cells.
Comments (3)
X
Xtan911 · May 20, 2017
Looking forward to the next episode!!!
X
Xtan911 · May 20, 2017
You have a bug in the code. Everything freezes when the starting and the destination cell are the same. Fix it by changing the line when selecting the starting cell to: else if (Input.GetKey(KeyCode.LeftShift) && currentCell != searchToCell) {
C
Catlike Coding · May 21, 2017
Good catch, thanks. I fixed it.
