I am making a strategy game in mmf and I am having trouble finding a way to count the number of spaces that the player has moved. Currently, the player moves on a grid, and every direction subtracts from the total steps. I would like to build a movement system similar to Advanced Wars or Fire Emblem where you select the target destination and the character automatically finds the correct path to get there.
Could someone help me out?
The easiest (although not the best) way would be to use fastloop to fire off half a dozen invisible squares very quickly that move in a semi-random fasion towards from the origin to the player's destination. As they move they should count the number of steps, and the first to reach the destination would provide the shortest path.