Manager

class Animation.Manager()

Top-level interface for the animation system.


Methods

clear

Manager.clear()

Removes all players from control of the manager.

Return type

void

createPlayer

Manager.createPlayer(animation)
Arguments

Creates a new animation player for the supplied animation.

Return type

Player

removePlayer

Manager.removePlayer(player)
Arguments

Removes the provided player from control of the manager. Returns true is a player was removed

Return type

boolean

removePlayerByIndex

Manager.removePlayerByIndex(index)
Arguments
  • index (number()) – None

Removes the player at the provided index from control of the manager. Returns true if a player was removed

Return type

boolean

setTickInterval

Manager.setTickInterval(milliseconds)
Arguments
  • milliseconds (number()) – number of milliseconds between update intervals

Sets the interval at which animations are updated.

Return type

void