API Docs for: 1.0.1

Grape.Animation Class

A utility class which increases a the subimage of a SpriteVisualizer in each frame by a given amount.

Constructor

Grape.Animation

(
  • [opts]
)

Parameters:

  • [opts] Object optional

    The initial properties

Item Index

Events

Properties

imageSpeed

Number

The number the subimage is shifted with each second.

Default: 1

subimage

Number

The image index of the sprite to show

Default: 0

Events

animationEnd

Occurs when the animation falls through the last image (or the first if imageSpeed is negative)