I’ve tried a lot of times, but I’m not able… [import]uid: 27760 topic_id: 25732 reply_id: 325732[/import]
Run this;
[lua]local obj = display.newRoundedRect( 100, 100, 100, 100, 20 )
local function destroyObj(event)
if event.numTaps == 2 then
obj:removeSelf()
end
end
obj:addEventListener(“tap”, destroyObj)[/lua]
Peach
[import]uid: 52491 topic_id: 25732 reply_id: 104185[/import]
Thank you very much. [import]uid: 27760 topic_id: 25732 reply_id: 104189[/import]
Not a problem - marked as resolved
[import]uid: 52491 topic_id: 25732 reply_id: 104190[/import]