Kiwi.Animations.Tweens.TweenManager Class
The TweenManager is automatically created on every game. This class is responsible for the creation and management of tweens for the game.
Based on tween.js by sole. Converted to TypeScript and integrated into Kiwi. https://github.com/sole/tween.js
Constructor
Kiwi.Animations.Tweens.TweenManager
(
Kiwi.Animations.TweenManager
-
game
Parameters:
-
game
Kiwi.Game
Returns:
Kiwi.Animations.TweenManager:
Methods
add
(
Kiwi.Animations.Tween
public
-
tween
Adds a tween to the manager.
Parameters:
-
tween
Kiwi.Animations.TweenThe tween that you want to add to the manager.
Returns:
create
(
Kiwi.Animations.Tween
public
-
object
Creates a new Tween.
Parameters:
-
object
AnyThe object that this tween is to apply.
Returns:
Kiwi.Animations.Tween:
The tween that was created.
getAll
()
public
Returns all of tweens that are on the manager.
Returns:
Kiwi.Animations.Tween[]
objType
()
String
public
The type of object that this is.
Returns:
String:
remove
(
Kiwi.Animations.Tween
public
-
tween
Removes a tween from this manager.
Parameters:
-
tween
Kiwi.Animations.TweenThe tween that you would like to remove.
Returns:
removeAll
()
public
Removes all of the tweens on the manager.
update
()
public
The update loop.