Hi,
To create a pile up effect, just make a ground variable that the snowflakes stop and and reduce that ground variable as the snow falls.....
code:
_root.onLoad = function() {
ground=400;
for (i=1; i<100; i++) {
duplicateMovieClip(mcSnowFlake, "snow"+i, i);
myFlake = _root["snow"+i];
myFlake._x = (Math.random(100)*550);
myFlake._y = (Math.random(100)*400);
myFlake.onEnterFrame = function() {
this._y += 5;
if (this._y>ground) {
delete this.onEnterframe;
ground--;
}
}
}
}
Hope it helps
NTD




Reply With Quote