I’ve this code
function createBall()
create…
ball…
code…
ball.addEventListener(“touch”,ballClicked)
end
function ballClicked(event)
event.target:removeBall() end
function removeBall(b)
b:removeSelf()
end
it’s work but have console error [import]uid: 42761 topic_id: 8031 reply_id: 308031[/import]