I followed your advices and come out with this:
display.setStatusBar( display.HiddenStatusBar )
local background = display.newImage("countrySide.jpg")
local function itsRaining()
local rainType = math.random(1,3)
local ovalShape = display.newImage("Oval.png")
local xPostion = math.random(0,48) \* 20
ovalShape.x = xPostion; ovalShape.y = 0
ovalShape:rotate(45)
local function removeRainDrop(obj)
local myCircle = display.newCircle( obj.x, obj.y, 1 )
myCircle:setFillColor(204,255,255)
myCircle:setStrokeColor(153,204,255)
myCircle.strokeWidth = 1
myCircle:scale(1,0.25)
--ovalShape:removeSelf()
transition.to(obj,{time=00,xScale=2,yScale=2,alpha=0,onComplete=function() ovalShape:removeSelf() end})
transition.to(myCircle,{time=500,xScale=4,yScale=1,alpha=1,onComplete=function() myCircle:removeSelf() end})
end
local toY = math.random(0,64)
transition.to(ovalShape,{time=(toY \* 100)/1.5,x=ovalShape.x - 200,y=toY \* 10,alpha=1,onComplete=removeRainDrop})
end
Runtime:addEventListener("enterFrame",itsRaining)
Do you have any suggestion for better visual? [import]uid: 89131 topic_id: 19005 reply_id: 73874[/import]