BRyeGmoney / ForTheLoveOfPower

The repo for the best game ever being worked on by absurdomatic games during this game's development cycle.
2 stars 0 forks source link

Units take too long to make initial movement #18

Closed BRyeGmoney closed 9 years ago

BRyeGmoney commented 9 years ago

Units take their specified movement delay time before making their first movement. This is no gouda.

Potential fix: Set delay timer to be higher than the minimum before the unit makes their first move.

BRyeGmoney commented 9 years ago

I fixed this. The issue was that was adding the initial square that the unit was stepping on to the movement list so the first move that was done was to the square it was standing on. Definitely a good fix as it could clear up some bugs in the future. However, we must come to a decision as to whether we want a delay before the first square is moved over. I have temporarily placed the entire unit movement update thing within a condition, we can easily remove the "if (movementPoints.Count > 0)" to get the units moving immediately.