EntityAnimation
Classes
AnimationSpec
Kind: global class
See: {Tween} for more information on transition function
new AnimationSpec(type, parameter, duration, transitionFunction)
Param | Type | Description |
---|---|---|
type | AnimationSpec.Type | |
parameter | number | |
duration | number | in seconds |
transitionFunction | function |
EntityAnimation
Kind: global class
Properties
Name | Type |
---|---|
animationSpecs | Array.<AnimationSpec> |
- EntityAnimation
- new EntityAnimation(entity)
- .promiseEnd() ⇒
Promise.<any>
- .onEnded(callback) ⇒
EntityAnimation
new EntityAnimation(entity)
Param | Type |
---|---|
entity | number |
entityAnimation.promiseEnd() ⇒ Promise.<any>
Kind: instance method of EntityAnimation
entityAnimation.onEnded(callback) ⇒ EntityAnimation
Kind: instance method of EntityAnimation
Param | Type |
---|---|
callback | function |