Shake effect for a FlxSprite
Constructor
Methods
tween(Sprite:FlxSprite, Intensity:Float = 0.05, Duration:Float = 1, Axes:FlxAxes = XY):ShakeTween
A simple shake effect for FlxSprite.
Parameters:
Sprite | Sprite to shake. |
---|---|
Intensity | Percentage representing the maximum distance that the sprite can move while shaking. |
Duration | The length in seconds that the shaking effect should last. |
Axes | On what axes to shake. Default value is |