Fork me on GitHub
View source

package haxepunk.tweens.misc

class VarTween


extends Tween

Tweens a numeric public property of an Object.

Constructor

View source

new (type : TweenType) : Void

Constructor.


Parameters:
complete   

Optional completion callback.

type   

Tween type.

Functions

View source

tween (object : Dynamic, property : String, to : Float, duration : Float, ease : EaseFunction) : Void

Tweens a numeric public property.


Parameters:
object   

The object containing the property.

property   

The name of the property (eg. "x").

to   

Value to tween to.

duration   

Duration of the tween.

ease   

Optional easer function.