API Docs for:
Show:

Component_ImageAnimation Class

Module: gs

Executes a image-based animation.

Item Index

Properties

Methods

changeImages

(
  • images
  • duration
  • easingType
  • [callback]
)

A simple image animation runs from left to right using the game object's image-property.

Parameters:

  • images Array

    An array of image names.

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An optional callback called if blending is finished.

toDataBundle

()

Serializes the image-animation into a data-bundle.

update

()

Updates the image-animation.

Properties

easing

gs.Easing

The easing-object used for the animation.

images

String

The images to animate through.