This creates a trail copying the bitmapData many times.
Constructor
new(Target:FlxEffectSprite, Length:Int = 10, Alpha:Float = 0.5, FramesDelay:Int = 2, CachePixels:Bool = true)
Creates a trail effect.
Parameters:
Target | The FlxEffectSprite the trail is attached to. |
---|---|
Length | The amount of trail images to create. |
Alpha | The alpha value for the first trailsprite. |
FramesDelay | How many frames wait until next trail updated. |
CachePixels | Whether to cache current pixels bitmapData of the target for every trail position. Disable if target never update graphics. |