Fork me on GitHub
View source

package haxepunk

class Tweener


extended by Entity, Scene

Abstract class used to add the ability to add tweens.

Variables

active : Bool

autoClear : Bool

read only hasTween : Bool

If there is at least a tween.

Functions

View source

addTween (t : Tween, start : Bool = false) : Tween

Add the tween to the tween list.


Parameters:
t   

The tween to add.

start   

If the tween should start immediately.


Returns:

The added tween.

View source

clearTweens () : Void

Remove all tweens from the tween list.

View source

removeTween (t : Tween) : Tween

Remove the tween from the tween list.


Parameters:
t   

The tween to remove.


Returns:

The removed tween.

View source

updateTweens (elapsed : Float) : Void

Update all contained tweens.