NCCA / SmallBlurryPeopleCVA3

CA2 Group project
4 stars 0 forks source link

Characters are jerky #12

Closed i7621149 closed 7 years ago

i7621149 commented 7 years ago

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...

RosieNEmery commented 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

i7621149 commented 7 years ago

Oh cool, I reckon I can fix that

i7621149 commented 7 years ago

Should be fixed now, sorry pathfinding is a bit wonky

i7621149 commented 7 years ago

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...?

i7621149 commented 7 years ago

The pathfinding bit I added was broken but only a tiny bit, it's now fixed but the grid is still offset