Plugin for GTween. Automatically applies a motion blur effect when x and y are tweened. This plugin will create a new blur filter on the target, and remove it based on a saved index when the tween ends. This can potentially cause problems with other filters that create or remove filters.

Note: Because it works on the common x,y properties, and has a reasonably high CPU cost, this plugin is disabled for all tweens by default (ie. its enabled property is set to false). Set pluginData.MotionBlurEnabled to true on the tweens you want to enable it for, or set MotionBlurPlugin.enabled to true to enable it by default for all tweens.

Supports the following pluginData properties:

  • MotionBlurEnabled: overrides the enabled property for the plugin on a per tween basis.
  • MotionBlurData: Used internally.

Static variables

@:value(false)staticenabled:Bool = false

Specifies whether this plugin is enabled for all tweens by default.

@:value(0.6)staticstrength:Float = 0.6

Specifies the strength to use when calculating the blur. A higher value will result in more blurring.

Static methods

staticinstall():Void

Installs this plugin for use with all GTween instances.