Class Fz2D.Animation

Defined in: src/scene/animation.coffee

Overview

Public: Animation

Instance Method Summary

Constructor Details

::constructor(tag, texture, count, delay) Source

Public: Constructor. tag - name of the animation texture - Fz2D.Texture count - number of frames (default: 1) delay - delay in miliseconds between each frame (default: 1000.0 / count)

Parameters:

  • tagname of the animation
  • (Fz2D.Texture) textureFz2D.Texture
  • countnumber of frames (default: 1)
  • delaydelay in miliseconds between each frame (default: 1000.0 / count)

Instance Method Details

::onend(animation) Source

Public: On end(ed) callback. animation - Fz2D.Animation

Parameters:

::play(looped) Source

Public: Plays the animation. looped - loop state (default: false)

Parameters:

  • loopedloop state (default: false)

::stop() Source

Public: Stops the animation.

::update(timer, input) Source

Public: Updates animation on every frame. timer - Fz2D.Timer input - Fz2D.Input

Parameters: