just started learning corona yesterday so my mind set is still thinking the same way as if im using gamesalad. tried various things but im not sure what im doing wrong or where to start to be honest. i have an image that i want to remove when the condition is true. it has *10 lives* i want these lives to decrease by 1 everytime it’s touched. also can i change my username? lol or am i stuck with my real name thanks
local candytower1 = display.newImageRect (“poptower.png”, 64,128 )
candytower1.x = display.contentWidth / 2
candytower1.y = display.contentHeight / 2
local
function killcandytower1 (event)
candytower1:removeSelf()
end
local candytowerlife = 10
local function takelifeoff (event)
candytowerlife = candytowerlife -1
end
candytower1:addEventListener (“touch”, takelifeoff)
[import]uid: 80874 topic_id: 14460 reply_id: 314460[/import]