HELP with fading out an image.

hello, im wondering how can i make an image fade out?? like in this, i want the “blood.png” image to fade out after about 3 seconds, is there a way i can do this? thanks

local bug = display.newImage( “goldbeetle.png” )
bug.x = 60
bug.y = 210
local function killbug (event)
local blood = display.newImage (“blood.png”)
blood.x = bug.x
blood.y = bug.y
score.setScore( score.getScore() + 10)
bug:removeSelf()
end

bug:addEventListener(“touch”, killbug) [import]uid: 10827 topic_id: 4531 reply_id: 304531[/import]

Inside your killbug function

transition.to( blood, { time=500, delay=3000, alpha=0 } )

Would that work?

(Play around with the times) [import]uid: 10835 topic_id: 4531 reply_id: 14251[/import]

yes this works!! thank you!!! [import]uid: 10827 topic_id: 4531 reply_id: 14268[/import]