It's been a while since nobody talked here, but I have a similar issue. Trying not to fill the forum with duplicated topics.
I am developing a strategy board war game, Civilization/AoE like. The board is a tilemap.
You select which troop to move by pressing/clicking on the instance and then dragging/clicking/pressing on the destination tile.
After you have selected the active troop, I would like an arrow to be shown from the troop towards the destination tile. So, if you get further from the troop, the arrow lengthens.
I have read people doing similar thing by changing the animation, yet that would require having, let's say 10 differents sprites, each one a tile longer, just for that. Is it not possible to call a specific frame of the animation according to position? Being that the case, I could just have an arrow sprite, being each frame an arrow a tile longer.