New section FLASHINIONS!

Oh yeah, and you can remove this line… I just noticed it is used nowhere else in the script…

xmovement = _root._xmouse;

thanks =) I’ll use your code and give you credit for helping me in the tutorial.

Cheers!
Kirupa :sigh:

You don’t have to give me credit Kirupa.

bump =)

Well I did some more to the code…

onClipEvent (load) {
	movieHeight = 200;
	movieWidth = 300;
	i = 1+Math.random()*2;
	k = -Math.PI+Math.random()*Math.PI;
	this._xscale = this._yscale=50+Math.random()*100;
	this._alpha = 75+Math.random()*100;
	this._x = -10+Math.random()*movieWidth;
	this._y = -10+Math.random()*movieHeight;
}
onClipEvent (enterFrame) {
	rad += (k/180)*Math.PI;
	this._x -= Math.cos(rad);
	this._y += i;
	if (this._y>=movieHeight) {
		this._y = -5;
	}
	if ((this._x>=movieWidth) || (this._x<=0)) {
		this._x = -10+Math.random()*movieWidth;
	}
}

What once took up 25 lines of code according to the Actions Panel now takes up 22 lines of code. Not much, but a start I guess.

lost and K-man: Can you make the snow acumulate in to piles?

phil: I would love to read one of you columns
[SIZE=1]ps: if kirupa won´t let you do it, start a thread on random section called: phil´s unsphonsored phun column[/SIZE]:bad:

=)

Hey Phil,
There is no reason why you can’t ask ray nicely to allow you to post along with you. It’s up to his discretion though :slight_smile:

Cheers!
Kirupa :bad:

Accumulate into piles eh? Ummmm… I don’t have that kind of knowledge man…lol.

me thinks you´re holding it back from us:bad:

:stuck_out_tongue:

Well I do know you can’t do it with the above script.

THe above script creates 50 snowflakes, and when they get out of the borders of your movie they go back to _y=-5, so if they were to accumulate all 50 snowflakes will just hit the ground and stay there and it will stop snowing.

So something like that requires a different script.

I´ve noticed that.

I´ve tried some hit test thing, but with no sucess. :frowning:

Well you can probably just be like…

if(this._y>= movieHeight){
this._y = movieHeight;
}

But this only allows for it to build up on one _y coordinate so it won’t actually pile up.

Ok, here is what I came up with with the code.

Probably not finished yet, I want to add a tree, or a snowman or something…lol.

WINTER IN BETA

:q:

No, that is just what the script looks like with the code I used.

I already said I don’t know how to pile it up :frowning:

If you wanted to make it pile, why don’t you just, manually, make a small pile of snow in a movieClip, and then as time goes on, increase the demensions of it. That way it would look like it was accumulating.

Smart hack… but not as cool as actual piling snow :)…lol.

*Originally posted by lostinbeta *
**Smart hack… but not as cool as actual piling snow :)…lol. **

LOL:P

Enjoy

pom :cowboy:

Wow… nice :slight_smile: