# Snow falling

**URL:** <https://forum.kirupa.com/t/snow-falling/170472>\
**Category:** Uncategorized\
**Created:** [November 26, 2005, 2:11pm UTC](https://forum.kirupa.com/t/snow-falling/170472 "2005-11-26T14:11:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Um\_Design](https://avatars.discourse-cdn.com/v4/letter/u/ecb155/32.png) [@Um\_Design](https://forum.kirupa.com/u/Um_Design)\
**Post date:** [November 26, 2005, 2:11pm UTC](https://forum.kirupa.com/t/snow-falling/170472/1 "2005-11-26T14:11:52Z")

</div>

Well, now is winter time and we are all starting to make our logos with snow. I have this code for snow, but there is a problem.

```auto

var swidth = 250;
var sheight = 200;
_root.createEmptyMovieClip("DropClip", 15999);
for(var i=0; i<80; i++)
{
	createdrop(random(sheight));
}
var lightstorm = setInterval(createdrop, 30);
function createdrop(y)
{
	var clip = "drop" + Math.random();
	_root.DropClip.attachMovie("Drop", clip, random(15999));
	_root.DropClip[clip]._x = random(400);
	if(y != null)
	{
		_root.DropClip[clip]._y = y;
	}
		
	_root.DropClip[clip]._alpha = random(100);
	_root.DropClip[clip].speed = random(4);
	_root.DropClip[clip].onEnterFrame = fall;
}

function fall()
{
	if(this._y < sheight)
	{
		this._y += 1 + this.speed;
	}
	else
	{
		delete this.onEnterFrame;
		this.removeMovieClip();
	}
}

```

Now, my animation is 250x200 pixels. Where do I have and what do I have to insert that my snow start fall 20 pixels from 0 y and x wide.

I have 20 pixels black border on my animation, bu snow is falling on that border, too. I wont wont that. I wont that snow fall only in my picture.

Thanks.
