# Snow Fall :)

**URL:** <https://forum.kirupa.com/t/snow-fall/10629>\
**Category:** flash\
**Created:** [January 4, 2003, 4:30pm UTC](https://forum.kirupa.com/t/snow-fall/10629 "2003-01-04T16:30:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pom](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@pom](https://forum.kirupa.com/u/pom)\
**Post date:** [January 4, 2003, 4:30pm UTC](https://forum.kirupa.com/t/snow-fall/10629/1 "2003-01-04T16:30:47Z")

</div>

Copy and paste in the first frame of the movie (you need a dark background)

```auto
// Pom 3/01/2003
// Credits:
// Bit 24/12/2002
// Kirupa snow tutorial
points = [];
maxPoints = 100;
y = 200;
for (i=0; i < maxPoints; i++) {
	points* = {x:20+500/(maxPoints-1)*i, y:y};
}
createEmptyMovieClip("bombe",5000);
bombe.lineStyle(5,0xffffff,100);
bombe.lineTo(0.15,0.45);
bombe._visible=false;

createEmptyMovieClip("land", 1000000);
dep = 1;
onEnterFrame = function () {
	if (getTimer()-start > 100) {
		start = getTimer();
		bomb = bombe.duplicateMovieClip("b"+dep, dep++);
		bomb.frequency=Math.random()*Math.PI;
		bomb.ySpeed = 1+Math.random()*2;
		bomb._xscale = bomb._yscale=50+Math.random()*50;
		bomb._alpha = 75+Math.random()*100;
		bomb.onEnterFrame = fall;
		bomb._x = Math.random()*250+Math.random()*250+20;
		bomb._y = 0;
	}
};
drawLand();
function destroy(x) {
	points[x].y -= 4;
	if (x) {
		points[x-1].y -= 1;
	}
	if (x < maxPoints-1) {
		points[x+1].y -= 1;
	}
	drawLand();
}
function drawLand() {
	with (land) {
		clear();
		beginFill(0xffffff, 100);
		lineStyle(1, 0xffffff, 100);
		moveTo(points[0].x, points[0].y);
		for (i=0; i < maxPoints; i++) {
			lineto(points*.x, points*.y);
		}
		lineTo(520, 380);
		lineTo(20, 380);
		endFill();
	}
}
function fall() {
	this.rad += this.frequency*(Math.PI/180);
	this._x += Math.cos(this.rad);
	this._y += this.ySpeed;
	if (land.hitTest(this._x, this._y, true)) {
		x = Math.round((this._x-20)/500*maxPoints);
		removeMovieClip(this);
		destroy(x);
	}
}

```

pom \<:}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 4, 2003, 4:33pm UTC](https://forum.kirupa.com/t/snow-fall/10629/2 "2003-01-04T16:33:05Z")

</div>

replace all \< with something like [\*_i]\<_ because kirupa will cut off all code post \< (assuming its renegade html)

… nm you got it 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 4, 2003, 4:36pm UTC](https://forum.kirupa.com/t/snow-fall/10629/3 "2003-01-04T16:36:13Z")

</div>

wow that’s a nice piece of code, nice effect too, I’m sitting here waiting for it to fill up the screen. 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 4, 2003, 4:51pm UTC](https://forum.kirupa.com/t/snow-fall/10629/4 "2003-01-04T16:51:34Z")

</div>

thats pretty cool! the best snow effect so far :beam:

:A+:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 4, 2003, 4:55pm UTC](https://forum.kirupa.com/t/snow-fall/10629/5 "2003-01-04T16:55:59Z")

</div>

yep … that’s sweet 😏

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 4, 2003, 7:02pm UTC](https://forum.kirupa.com/t/snow-fall/10629/6 "2003-01-04T19:02:08Z")

</div>

Sweet reverse rendition of bits file, excellent work man.

\<~~~Jealous 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 5, 2003, 1:39am UTC](https://forum.kirupa.com/t/snow-fall/10629/7 "2003-01-05T01:39:47Z")

</div>

We’ll see what will come out of this (-: : [http://www.bit-101.com/forum/viewtopic.php?t=786&start=0&postdays=0&postorder=asc&highlight=](http://www.bit-101.com/forum/viewtopic.php?t=786&start=0&postdays=0&postorder=asc&highlight=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 5, 2003, 1:55am UTC](https://forum.kirupa.com/t/snow-fall/10629/8 "2003-01-05T01:55:10Z")

</div>

Pom, is this your website?

[http://surface.yugop.com/](http://surface.yugop.com/)

I’ve found it on your bit101 profile and I’m shocked cause I’ve surfed onto it a few times before. It has some amazing stuff on there. =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 5, 2003, 2:11am UTC](https://forum.kirupa.com/t/snow-fall/10629/9 "2003-01-05T02:11:26Z")

</div>

😛 Not at all [SIZE=1]I wished…[/SIZE] Actually, I was pissed off because a lot of people used to ask questions about 2advanced all the time (not that much anymore, I don’t know why), so I put 2advanced in my profile. And now it changes from time to time, theory7, yugop, uncontrol… :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 5, 2003, 2:31am UTC](https://forum.kirupa.com/t/snow-fall/10629/10 "2003-01-05T02:31:37Z")

</div>

lol, you tricked me…I was all amazed cause I thought it was yours…hahaha You should do something like that though, put together a site with your stuff, I’m pretty sure you have plenty too. I still have the blob thing you posted last time. :geek:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 5, 2003, 3:15am UTC](https://forum.kirupa.com/t/snow-fall/10629/11 "2003-01-05T03:15:43Z")

</div>

Well, I was thinking about it, of course, but I just can’t design anything that looks nice, even from a distance. I’ll have to work on it a bit more, I guess :hangover:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 5, 2003, 3:20am UTC](https://forum.kirupa.com/t/snow-fall/10629/12 "2003-01-05T03:20:55Z")

</div>

I just joined the bit forum, hopefully ill absorb some knowledge there. Too bad you don’t live here in cali, I wouldn’t mind helping you build a site as long as you teach me AS. :geek:
