PDA

View Full Version : bubbles



orangefish
December 30th, 2002, 09:18 PM
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:

kaotic
December 30th, 2002, 09:37 PM
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

senocular
December 30th, 2002, 09:55 PM
put it all in a single movieclip. Put that movieclip on the bottom of the screen and rotate it 180 degrees

kaotic
December 30th, 2002, 09:59 PM
damn i hate it when the answer to things are as easy as that

senocular
December 30th, 2002, 10:32 PM
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 :)

kaotic
December 31st, 2002, 10:16 AM
ok, check out my footer, i did just that
i turned the mc 180 degrees, and thats what happens?

wa ha ha ha ha
December 31st, 2002, 02:17 PM
Thank you guys for help!
it works

chris#2
January 2nd, 2003, 07:32 PM
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... =)