Line Disappear

I’ve been working on a game similar to Spider Square, and I’m almost done. There are just two things I can’t figure out:

  1. how do I get the line to only appear on tap?
  2. how do I get the line to rotate around the tip(like a spider)?