kick.animation.Animation Class
Constructor
kick.animation.Animation
(
-
config
Parameters:
-
config
Configdefines one or more properties
Item Index
Methods
Methods
addCurve
(
-
curve
-
target
Parameters:
-
curve
kick.animation.Curve -
target
Stringcomponentname.property
removeCurve
(
Boolean
-
object
Parameters:
-
object
kick.animation.Curve | Stringremoves curve by Object or name
Returns:
Boolean:
setTime
(
-
newTime
-
forceUpdate
Set animationTime
Parameters:
-
newTime
Number -
forceUpdate
Booleanwill instantly update animation
toJSON
()
Object
Returns:
Object:
data object
Properties
playing
Boolean
Used for starting and pausing the animation
Default: false
speed
Number
Animation speed
Default: 1
time
Number
Animation time
wrapMode
Number
Must be Animation.LOOP, Animation.PINGPONG or Animation.ONCE
Default: Animation.LOOP
Events
animationLoop
Fired when animation is looped or changed direction (in ping pong)
Event Payload:
-
animation
kick.animation.Animation