Fork me on GitHub
View source

package com.haxepunk.tweens.motion

class Motion


extends Tween
extended by CircularMotion, CubicMotion, LinearMotion, LinearPath, QuadMotion, QuadPath

Base class for motion Tweens.

Constructor

View source

new (duration : Float, complete : Dynamic ->Void, , type : TweenType, ?ease : Float ->Float, ) : Void

Constructor.


Parameters:
duration   

Duration of the Tween.

complete   

Optional completion callback.

type   

Tween type.

ease   

Optional easer function.

Variables

x : Float

Current x position of the Tween.

y : Float

Current y position of the Tween.