I am wondering what would be a good way to create a line (link) between two sprites.
Think for example about a flow chart with two boxes -- each box a sprite, and a line with an arrow between them.
Suppose the line can be drawn by a sprite moving from one box to the other.
The line would need to be of length between the two boxes.
And the line needs to move if one or both boxes are moved (dragged and dropped).
Sprites are always of fixed size -- is there an good approach to accomplish this?
Perhaps, via resizing a line, or perhaps with many canvas instances, one for each drawn line, and these need to be managed somehow for resizing and rotation ...
any thoughts are much appreciated,