Hi all,
I hope this question hasn’t been asked before becasue i did a search and couldn’t find anything on it and i see how you all 'don’t like people asking the same thing over and over.
I’m using the reversed snow code to create bubbles and its working fine but i want my bubbles to stop but not be deleted. I don’t know that much about lingo yet so i don’t know if theres an easy solution that i don’t know about but any help would be great.
At a guess would it be something like looping through every instance of the movie and pausing them?
This is the code being used.
onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 550;
movieHeight = 400;
//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;
}
onClipEvent (enterFrame) {
//putting it all together
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y -= i;
if (this._y<=-40) {
this._y = movieHeight+40;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
this._x = -10+Math.random()*movieWidth;
this._y = -5;
}
}
Thanks for helping
SmoothT