Snow particles

Im trying to simulate snow. At the moment I have numerous little circles that fall down the screen - that works fine. But the circles look all pixely so I am going to make the particles in Photoshop. But I want the snow particles to be of random size. Can I make one size snow particle in Photoshop and then stretch the image through code or do I have to manually make the different sized particles in Photoshop?
Thanks :slight_smile: [import]uid: 86598 topic_id: 14636 reply_id: 314636[/import]

[lua]local particleRandomScale = 0.3
local particle = display.newImage(“particle.png”,10,10)
particle.xScale = 1-particleRandomScale + math.random()*particleRandomScale
particle.yScale = particle.xScale[/lua]

You can also change the last line with this:
[lua]particle.yScale = 1-particleRandomScale + math.random()*particleRandomScale[/lua]

Cheers! [import]uid: 5629 topic_id: 14636 reply_id: 54139[/import]

A while ago, someone here on the forum made a simulation of a leaf falling that you could have as a starting point, then you can make the a few different snowflakes in PS and iterate random through a table with different scale and alpha value. You could probably throw in some parallax into this and make it real nice.

Here is the thread with the falling leaf [import]uid: 13560 topic_id: 14636 reply_id: 54140[/import]

This might be a litttle late but here is a working example, with a shake event made by freshworks

http://developer.anscamobile.com/code/its-snowing-and-shake-example-updated [import]uid: 24708 topic_id: 14636 reply_id: 54152[/import]