Gamalto

Fork me on GitHub

Object PathAnimator Overview

Gamalto. PathAnimator

new Gamalto.PathAnimator(path, duration)

Creates a new path animator.

Parameters
Name Type Description
path Gamalto.Path

Path to be used for the animation.

duration number

Duration of the animation.

Extends
Example
var anim = new Gamalto.PathAnimator(path, 1000);

Members

playing :boolean

inherited readonly

Whether the animation is playing.

Inherited From

progress :number

inherited readonly

Position in the duration array.

Inherited From

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

clone() Gamalto.Animator

inherited

Creates a clone of the current object.

Inherited From
Returns
  • Deep copy of the object.

reset()

inherited

Resets the animation.

Inherited From

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

update(timer) Gamalto.Vector2

Updates path animation state.

Parameters
Name Type Description
timer Gamalto.ITiming

Timer object from which the elpased time will be read.

Returns
  • New position on the path.

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)