com.haxepunk.tweens.motion.QuadMotion

type
class
extends
Motion
Determines motion along a quadratic curve.

Constructor

parameters
complete Optional completion callback.
type Tween type.
Constructor.

Instance Variables hide inherited show inherited

active : Bool

inherited from com.haxepunk.Tween

distance(getDistance,null) : Float

The distance of the entire curve.

percent(getPercent,setPercent) : Float

inherited from com.haxepunk.Tween

scale(getScale,null) : Float

inherited from com.haxepunk.Tween
Current x position of the Tween.
Current y position of the Tween.

Instance Methods hide inherited show inherited

DispatchCompleteEvent() : Void

DispatchIOErrorEvent() : Void

addEventListener(type : String, listener : Function, ?useCapture : Bool, ?priority : Int, ?useWeakReference : Bool) : Void

cancel() : Void

inherited from com.haxepunk.Tween
Immediately stops the Tween and removes it from its Tweener without calling the complete callback.

dispatchEvent(event : Event) : Bool

hasEventListener(type : String) : Bool

removeEventListener(type : String, listener : Function, ?capture : Bool) : Void

setMotion(fromX : Float, fromY : Float, controlX : Float, controlY : Float, toX : Float, toY : Float, duration : Float, ?ease : com.haxepunk.utils.EaseFunction) : Void

parameters
fromX X start.
fromY Y start.
controlX X control, used to determine the curve.
controlY Y control, used to determine the curve.
toX X finish.
toY Y finish.
duration Duration of the movement.
ease Optional easer function.
Starts moving along the curve.

setMotionSpeed(fromX : Float, fromY : Float, controlX : Float, controlY : Float, toX : Float, toY : Float, speed : Float, ?ease : com.haxepunk.utils.EaseFunction) : Void

parameters
fromX X start.
fromY Y start.
controlX X control, used to determine the curve.
controlY Y control, used to determine the curve.
toX X finish.
toY Y finish.
speed Speed of the movement.
ease Optional easer function.
Starts moving along the curve at the speed.

start() : Void

inherited from com.haxepunk.Tween
Starts the Tween, or restarts it if it's currently running.

toString() : String

willTrigger(type : String) : Bool