http://www.thesundancekid.net/code/particles/
http://www.thesundancekid.net/code/particles2/
Basically it's a class I did. It's not exactly fairy dust but the first
one ("underwater" as I call it in the code) could probably be reversed
to look like fairy dust.
In my code, for the "water" I use the following values:
velocityX = Math.random()*1 - 0.5;
velocityY = Math.random()*4 - 4.1;
forceY = -0.1;
and perhaps randomizing scale and alpha as well. and then, of course,
run this code every frame:
velocityY += forceY;
_x += velocityX
_y += velocityY
The "Fountain" code is this:
velocityX = Math.random()*2 - 1;
velocityY = Math.random()*4 - 3;
forceY = 0.3;
But just create a nice particle class and start playing around with it
yourself. I think the choice of particle (ie the movie clip) makes a big
difference.
Andreas
I have a quick question, im doing a script that is going to produce fairy
dust, but i cant seem to get the right touch. Does anyone else have
any good
scripts och tips that they want to share.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders