I have two sprites, node1 and node2, and am drawing a line connecting the two sprites.   As I drag the sprites, I want to erase the old lines, only keeping the current connected line visible.  How can I do this?  See below for current problem (image).     function update() {     var g = game.add.graphics(0,0);     g.lineStyle(1,0x0088FF,1);     g.beginFill();     g.moveTo(node1.x,node1.y);     g.lineTo(node2.x,node2.y);     g.endFill(); }