Class: SkeletonXFadeNode

SkeletonXFadeNode


new SkeletonXFadeNode()

SkeletonXFadeNode is a SkeletonBlendNode for simple cross-fading between child animation clips.

Author:
  • derschmale <http://www.derschmale.com>

Extends

Methods


addClip()

This adds a clip that can be triggered by name in fadeTo.


fadeTo(clipName, time [, sync] [, looping])

Parameters:
Name Type Argument Description
clipName

A string with the name of a clip, as added to addClip.

time

The time the fade takes in milliseconds.

sync <optional>

An optional flag to make clips sync to eachother. All clips with sync = true will be synced, others will run independently. This only works if node is a (name of a) clip.

looping <optional>

An optional flag to override the clip's looping behavior.


getClip()

Retrieve the clip by name.