package haxepunk
class Tween
extended by Alarm, AngleTween, ColorTween, MultiVarTween, NumTween, VarTween, Motion, Fader, SfxFader
Base class for tweening helpers. A Tween is any object that interpolates something between two values. It does not have to be a linear path, for instance a circular motion.
Do not use this directly, instead use the classes in haxepunk.tweens.*
Constructor
new (duration : Float, type : TweenType, complete : Void ->Void, , ease : EaseFunction) : Void
Constructor. Specify basic information about the Tween.
Parameters:
duration | Duration of the tween (in seconds). | |
type | Tween type, one of Tween.PERSIST (default), Tween.LOOPING, or Tween.ONESHOT. | |
complete | Optional function which will bind to the onComplete signal. | |
ease | Optional easer function to apply to the Tweened value. |
Variables
read only scale : Float
Functions
cancel () : Void
Immediately stops the Tween and removes it from its Tweener without calling the complete callback.