API Docs for: 0.5.5
Show:

kick.animation.Animation Class

Constructor

kick.animation.Animation

(
  • config
)

Parameters:

  • config Config

    defines one or more properties

Methods

_update

(
  • timeSeconds
  • gameObject
)

Parameters:

addCurve

(
  • curve
  • target
)

Parameters:

removeCurve

(
  • object
)
Boolean

Parameters:

Returns:

Boolean:

setTime

(
  • newTime
  • forceUpdate
)

Set animationTime

Parameters:

  • newTime Number
  • forceUpdate Boolean

    will 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:

started

Fired when a animation is started

Event Payload:

stopped

Fired when a animation is stopped

Event Payload:

updateRequested

Fired when

Event Payload: