how can i load my gameover.lua when lives ==0??
local function killbug (event)
bug.alpha = 0
lives = lives - 1
if lives == 2 then
heart3.isVisible = false
end
if lives == 1 then
heart3.isVisible = false
heart2.isVisible = false
end
local blood = display.newImage (“blood.png”)
transition.to( blood, { time=500, delay=3000, alpha=0 } )
blood.x = bug.x
blood.y = bug.y
score.setScore( score.getScore() + 100)
if lives == 0 then
end
end
bug:addEventListener(“touch”, killbug) [import]uid: 10827 topic_id: 4824 reply_id: 304824[/import]