I have a simple test. I create a line, then touch the screen, delete the old line. The problem is, the line still stays on the screen. What stupid mistake am I doing?
[blockcode]
bowStringL = display.newLine( 0,100,display.stageWidth/2,100 )
bowStringL:setColor( 0, 255, 255 )
local function onTouch(e)
display:remove( bowStringL )
bowStringL = nil
end
Runtime:addEventListener( “touch”, onTouch )
[/blockcode] [import]uid: 82667 topic_id: 28662 reply_id: 328662[/import]