# Raising snow

**URL:** <https://forum.kirupa.com/t/raising-snow/136587>\
**Category:** Uncategorized\
**Created:** [February 6, 2005, 6:35pm UTC](https://forum.kirupa.com/t/raising-snow/136587 "2005-02-06T18:35:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tahnaroth](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@Tahnaroth](https://forum.kirupa.com/u/Tahnaroth)\
**Post date:** [February 6, 2005, 6:35pm UTC](https://forum.kirupa.com/t/raising-snow/136587/1 "2005-02-06T18:35:34Z")

</div>

I know it must be quite simple to convert falling snows in raising snows using these codes

```auto
onClipEvent (load) {
//variables
width = 300;
height = 200;
//random x,y, and alpha 
this._xscale = this._yscale=50+Math.random()*100;
this._alpha = 20+Math.random()*50;
//random x and y for flakes
this._x = -width+Math.random()*(3*width);
this._y = -10+Math.random()*height;
//speed and trigonometric value
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
rad = 0;
}
onClipEvent (enterFrame) {
// horizontal movement
rad += (k/180)*Math.PI;
xmovement = _root._xmouse;
this._x -= Math.cos(rad)+(xmovement-(width/2))/50;
// vertical movement
this._y += i;
// remove clips when they misbehave (overstep boundaries)
if (this._x>(width+50)) {
this._x = -45;
this._y = Math.random()*height*2;
}
if (this._x<-50) {
this._x = width+45;
this._y = Math.random()*height*2;
}
if (this._y>=height) {
this._y = -50;
this._x = -width+Math.random()*(3*width);
}
}

```

But i can’t manage to do it right, pls help.
