Closed i7621149 closed 7 years ago
This is a problem with the path finding, it breaks when given a float starting point so I was temporarily rounding its position to get it to work. Should be looked into when reworking the path finding
Oh cool, I reckon I can fix that
Should be fixed now, sorry pathfinding is a bit wonky
I also updated the character's move function and added something to the pathfinding to allow the character to move diagonally by optimising their path, they now move to the furthest away point on their path that they have line of sight to, rather than going to every single point on the path.
It's difficult to tell whether the pathfinding is working properly, I think that the grid is offset incorrectly...?
The pathfinding bit I added was broken but only a tiny bit, it's now fixed but the grid is still offset
When clicking somewhere to tell the character to MOVE, they seem to reset on their square or something, so they look all jumpy. Eg: clicking a tile really quickly and a character stays on the same tile popping back each time...