Bubbles

Hi all,
I was trying to modify the kirupa “falling snow” tutorial
http://www.kirupa.com/developer/mx/snow.asp
into a water bubbles effect which is just making it up side down. However, I was having trouble to make the bubble start from a certain point in a movie. For example, I was trying to make the bubble start from the bottom of the screen, but it didn’t seem to work for me. Therefore, I was hoping if there is someone who can help me to solve the problem.
Thanks a lot.
Happy New Year everyone!:crazy:

prolly has something to do with this section of code


if (this._y>=movieHeight) {
	this._y = -5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
	this._x = -10+Math.random()*movieWidth;
	this._y = -5;
}

but your prolly gonna have to rescript the whole thing

put it all in a single movieclip. Put that movieclip on the bottom of the screen and rotate it 180 degrees

■■■■ i hate it when the answer to things are as easy as that

sometimes when you get so involved with the complexity of things you almost become ‘too smart’ for your own good and start to overlook simple solutions such as those :slight_smile:

ok, check out my footer, i did just that
i turned the mc 180 degrees, and thats what happens?

Thank you guys for help!
it works

try this:


if (this._y>=(movieHeight*-1)) {
	this._y = 5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
	this._x = -10+Math.random()*movieWidth;
	this._y = 5;
}

i’ve not tried it myself yet, but that’s what I’d try doing first… =)