Flint Particle System Forum - Sweep away and return 2010-12-26T18:09:12+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Sweep away and return http://flintparticles.org/forum/comments.php?DiscussionID=234&Focus=853#Comment_853 2009-07-10T16:19:38+01:00 2010-12-26T18:09:12+00:00 ezra http://flintparticles.org/forum/account.php?u=220 I'm trying to generate a set of particles over over a BitmapDataZone. I'de like to be able to sweep them away with the mouse, and then have them move back to there original positions. I'm ...
I'de like to be able to sweep them away with the mouse, and then have them move back to there original positions.

I'm pretty new to all of this. Any suggestions?

Flint rocks! Thanks for providing an amazing resource.

-ezra]]>
Sweep away and return http://flintparticles.org/forum/comments.php?DiscussionID=234&Focus=856#Comment_856 2009-07-11T17:42:16+01:00 2010-12-26T18:09:12+00:00 Richard http://flintparticles.org/forum/account.php?u=1 First step is to remember each particle's starting position. This will need a custom initializer that stores the particle's start position in the particle's dictionary (make sure this initializer has ...
Sweeping the particle's away could be done with an effect based on the mouse position. You could try a MouseAntiGravity action, or you could make your own.

Finally, returning the particles to their original position could be done with a simple tween or with some other effect like a custom gravity well based on each particle's start position.]]>