ok i need some help, i like the falling snow effect, how its random sizes and alapha channels, but how do you alter the cod so its going up like bubbles and not falling down, I.E. in a fish tank there are bubbles going up constantly, please help
Search the forums, this has already been asked.
the actionscrip forums? or flash mx/other?
onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 300;
movieHeight = 200;
//variables that will modify the falling snow
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
//giving each snowflake unique characteristics
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;//changed this line
}
onClipEvent (enterFrame) {
//putting it all together
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y -= i;//changed this line
if (this._y<=0) {//changed this line
this._y = movieHeight+5;//changed this line
}
if ((this._x>=movieWidth) || (this._x<=0)) {
this._x = -10+Math.random()*movieWidth;
this._y = -5;
}
}
IT WORKED, (of course) haha but thank so much…
No problem
And welcome to the forums!