- vx: The starting velocity the particles will have on the X axis, measured in pixels.
- vy: The starting velocity the particles will have on the Y axis, measured in pixels.
- speed: This is a numerical value greater than 0 that controls how quickly particles can move when pulled by gravity.
- friction: Friction controls the rate of slowdown on particles once they’re being pulled by gravity. It is a value between 0 and 1, and is multiplied against the particle’s speed. As such, if the friction is set to 0, then a particle won’t move. If friction is set to 1, the particle will move quite fluidly, as though it were moving on a slippery surface.
The help file that comes with your download provides more information on how to implement the GravityEffect in your projects. And the FLA of the above demo is also included with full comments on how it works.
With only a 1kb footprint in your published SWF , it’s an easy and efficient way to add realistic particle effects to your work. This effect is written in AS3 and works for Flash Player 9+. Enjoy!
Enjoy These Other Effects!

