PDA

View Full Version : Rain effect!


hotkarl!
09-05-2002, 02:40 PM
Hey there..

Can anyone help me with this rain effect i got from this forum..
It works properly, but now it's raining all over my stage and i need it to be raining in a specific part of it.. I added a zip..
In there is the fla.. I only want it to rain on the blue part..
But i can't figure it out!
Thanks for all the help guys and girls!!
Mark.

GustavoGF
09-05-2002, 03:06 PM
It's really tricky... I tried to make a mask of it, but it didn't work, at least in Flash 5.

Then I tried to make a layer with a black square in it with a hole exactely like the blue part, with the rain drops movie clip under that layer. It didn't work either.

I think that when you duplicate a movie clip it goes to the top of all objects in the scene... I couldn't figure out how to lower the level of the duplicated movie clips...

Perhaps someone still can help us both now!

Regards,

hotkarl!
09-05-2002, 03:12 PM
I think it's more a matter of setting coordinates..
That the MC get's duplicated after X, 200 and not lower then Y, 500 or something.. But how to implement this kinda stuff is too difficult for me yet.. So if someone can help, PLEASE!
I would learn a lot from it!

And sorry GustavoGF, I tried that too already..
Mark.

THOR
09-05-2002, 06:21 PM
the reason why a mask wont work is because you are duplicating movieclips and placing them on different _levels. the mask is on level 0 and the rest are being placed on level 1-100. so they are all over the mask.

what you can do, in the 3rd frame, where you set the _x and _Y values, you can put this,

eval("new_" add i)._x= random(300); //300 instead of 750,

which makes the duplicate range smaller, so they are closer together,

and then if you want to center the rain, you can add pixels, to move each one over like this

eval("new_" add i)._x= random(300)+100;

which places them closer to the center.

test (http://www.sosketch.com/test.zip) here is your file that i edited a bit, and i added a splash, just for S@*$s and giggles :p

hotkarl!
09-09-2002, 07:30 AM
Right on!!
Thanx Thor.. Haven't looked at it yet.. But I know it's the right answer..
Great!
Greet,
Mark.

hotkarl!
09-09-2002, 08:13 AM
Yeah exactly what I mean!!
Thanx Thor..
Maybe ur not only the god of thunder, but from rain aswell?
Heheheh.