I have created Show fall using following code but after snowfall, it is not collecting properly at the ground(at the bottom of the screen)
local function spawnSnowFlake()
local flake = display.newCircle(0,0,2)
flake.x = math.random(display.contentWidth)
flake.y = -2
local wind = math.random(80) - 40
physics.addBody( flake, { density=-4, friction=0, bounce=0} )
end
ground a plain border-
physics.addBody( border, “static”, { friction=0.5, bounce=0 } )
I see the circles are aligned in a sequence, instead of clubbed like show. attached the screen shot.
Any suggestions??
Sudheer