API Documentation for: 2.3.1
Show:

PixiAnimator.AnimTimeline Class

Namespace: cloudkid

[Pixi Only] Internal PixiAnimator class for keeping track of animations

Constructor

PixiAnimator.AnimTimeline

(
  • clip
  • callback
  • speed
)

Parameters:

  • clip PIXI.MovieClip | Pixi.Spine

    The AnimTimeline's clip

  • callback Function

    The function to call when the clip is finished playing

  • speed Int

    The speed at which the clip should be played

Methods

init

(
  • clip
  • callback
  • speed
)
PixiAnimator.AnimTimeline

Defined in init:517

Initialize the AnimTimeline

Parameters:

  • clip PIXI.MovieClip | Pixi.Spine

    The AnimTimeline's clip

  • callback Function

    The function to call when the clip is finished playing

  • speed Number

    The speed at which the clip should be played

Properties

_paused

Bool private

Defined in _paused:619

If this animation is paused.

callback

Function public

Defined in callback:542

The function to call when the clip is finished playing

clip

PIXI.MovieClip | PIXI.Spine public

Defined in clip:528

The clip for this AnimTimeLine

isSpine

Bool public

Defined in isSpine:535

Whether the clip is a PIXI.Spine

loop

Bool public

Defined in loop:562

Not used by PixiAnimator, but potentially useful for other code to keep track of what type of animation is being played

paused

Bool public

Defined in paused:629

Sets and gets the animation's paused status.

playSound

Bool public

Defined in playSound:590

If the timeline will, but has yet to, play a sound

soundAlias

String public

Defined in soundAlias:576

Sound alias to sync to during the animation.

soundEnd

Number public

Defined in soundEnd:604

The time (seconds) into the animation that the sound ends

soundInst

Object public

Defined in soundInst:583

A sound instance object from cloudkid.Sound or cloudkid.Audio, used for tracking sound position.

soundStart

Number public

Defined in soundStart:597

The time (seconds) into the animation that the sound starts.

speed

Number public

Defined in speed:549

The speed at which the clip should be played

spineStates

Array public

Defined in spineStates:556

time

Number public

Defined in time:569

The position of the animation in seconds

useCaptions

Bool

Defined in useCaptions:611

If this timeline plays captions