Forum Topic: Change AS@ to get snow to go up?

(109 views • 1 reply)

This topic is 1 page long.

<< < > >>
Questioning

djbdr248

Reply To Post Reply & Quote

Posted at: 5/14/09 10:54 PM

djbdr248 EVIL LEVEL 11

Sign-Up: 08/07/07

Posts: 879

Any one know what I have to do to this code to get the snow to fall up?

Here is the FLA
FLA


None

Denvish

Reply To Post Reply & Quote

Posted at: 5/15/09 03:45 AM

Denvish DARK LEVEL 46

Sign-Up: 04/25/03

Posts: 16,229

var counter:Number = 0;
raindrop.onEnterFrame = function() {
	if (this._y>0) {
		this._y -= 30;
	} else {
		clone();
	}
};
function clone() {
	if (counter<150) {
		var dx:Number = random(500);
		var dy:Number = random(200);
		var myObject = new Object();
		myObject._x = dx;
		myObject._y = dy+Stage.height;
		myObject._alpha = random(100);
		myObject._xscale = 50+myObject._alpha;
		myObject._yscale = myObject._xscale;
		myObject.onEnterFrame = function() {
			if (this._y>0) {
				this._y -= this._alpha/10;
			} else {
				this._y += 348+Math.floor(Math.random()*348);
				this._x = Math.floor(Math.random()*444);
			}
		};
		raindrop.duplicateMovieClip("nr"+counter, this.getNextHighestDepth(), myObject);
		counter += 1;
	}
}

- - Flash - Music - Images - -

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 07:50 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!