If you want to change the variables in Fall you will have to modify the line shown below:
var numObjs=20, waft=50, fallSpeed=15, wind=0;
- numObjs=20
number of objects
- waft=50
maximum side-to-side drift (pixels)
- fallSpeed=15
maximum falling speed (pixels)
- wind=0
prevailing wind (1=right, -1=left, 0=off)(can be greater than 1 or -1)
The images are set up on the next line(s) as follows:
newObject("pathto/filename.gif",height,width);
- pathto/filename.gif
The path and filename of the image to fall.
- width
The width of your image in pixels.
- height
The height of your image in pixels.
e.g. newObject("snowflake.gif",28,25);