This will shake the bitmapData.
Constructor
new(Intensity:Float = 5, Duration:Float = 0.5, ?OnComplete:() ‑> Void, ?Axes:FlxAxes)
A shake effect.
Parameters:
Intensity | Value in pixels representing the maximum distance that the bitmapData can move while shaking. |
---|---|
Duration | The length in seconds that the shaking effect should last. |
OnComplete | Optional completion callback function. |
Axes | On what axes to shake. Default value is XY / both. |
Variables
Methods
reset(Intensity:Float = 5, Duration:Float = 0.5, ?OnComplete:() ‑> Void, ?Axes:FlxAxes):Void
Reset the effect, need to set the parameters again. To use the same parameters call method start().
Parameters:
Intensity | Value in pixels representing the maximum distance that the bitmapData can move while shaking. |
---|---|
Duration | The length in seconds that the shaking effect should last. |
OnComplete | Optional completion callback function. |
Axes | On what axes to shake. Default value is XY / both. |