class flixel.effects.particles.FlxParticle extends FlxSprite implements IFlxParticle
Available on all platforms
This is a simple particle class that extends the default behavior * of FlxSprite to have slightly more specialized behavior * common to many game scenarios. You can override and extend this class * just like you would FlxSprite. While FlxEmitter * used to work with just any old sprite, it now requires a * FlxParticle based class.
Instance Fields
Determines how quickly the particles come to rest on the ground. * Only used if the particle has gravity-like acceleration applied.
How long this particle lives before it disappears. * NOTE: this is a maximum, not a minimum; the object * could get recycled before its lifespan is up.
var useColoring:Bool
If this is set to true, particles will change their color * based on their lifespan and start and range color components values.
If this is set to true, particles will slowly fade away by * decreasing their alpha value based on their lifespan.
var useScaling:Bool
If this is set to true, particles will slowly decrease in scale * based on their lifespan. * WARNING: This severely impacts performance on flash target.
Instantiate a new particle. Like FlxSprite, all meaningful creation * happens during loadGraphic() or makeGraphic() or whatever.