narasimha, I still can't open the project, because of the rex-function plugin, but do you still use selected as a boolean?
If yes you could spawn a sprite on the first selected. set angle towards the second selected and width to distance(firstselected.x,firstselected.y,secondselected.x,secondselected.y) spawn a sprite there to set angle towards third selected etcetera. You are probably going to need a global (or local?) variable to keep track of all this, but hace fun trying!