IGDev Also in your example it looks like you have a bug where clicking on the same sprite1 will generate additional lines - or is this intended? If you explain the required behaviour I can have a go at patching it up.
yes line must be created only on sprite1 surface and end on second sprite1
line should 'connect'