Fork me on GitHub
View source

package haxepunk.tweens.motion

class Motion


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

Base class for motion Tweens.

Constructor

View source

new (type : TweenType) : Void

Constructor.


Parameters:
complete   

Optional completion callback.

type   

Tween type.

Variables

x : Float

Current x position of the Tween.

y : Float

Current y position of the Tween.