This is a modified version of FlxGlitchSprite by Tim Hely
Constructor
new(Strength:Int = 4, Size:Int = 1, Delay:Float = 0.05, ?Direction:FlxGlitchDirection)
Creates a new FlxGlitchSprite, which applies a Glitch-distortion effect. This effect is non-destructive to the target's pixels, and can be used on animated FlxSprites.
Parameters:
Strength | How strong you want the effect. |
---|---|
Size | How 'thick' you want each piece of the glitch. |
Delay | How long (in seconds) between each glitch update. |
Direction | Which Direction you want the effect to be applied (HORIZONTAL or VERTICAL). |