Hi, with the falling snow tutorial (click here), how do you make the snow rise up? I sorta did it but the snow doesn’t reappear where it should. Can you help me? Here’s the code. You can download the original from the provided link, thanks.
onClipEvent (load) {
// specifies the size of the movie stage
movieWidth = 300;
movieHeight = 500;
// variables that will modify the falling snow
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
// giving each snowflake unique characteristics
this._alpha = 75+Math.random()*100;
this._y = 10+Math.random()*movieheight;
this._x = 10+Math.random()*movieWidth;
}
onClipEvent (enterFrame) {
// putting it all together
rad += (k/180)*Math.PI;
this._y-= i;
if (this._y>=movieHeight) {
this._y = +5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
this._y = +5;
}
}