Class: Frame

graphics.tmx. Frame


new Frame( [init])

A basic terrain definition.

A tile animation frame entity.

Parameters:
Name Type Argument Description
init Object <optional>

A generic object containing properties with which to populate the newly instance. If this argument is null, it is ignored.

Extends

Members


duration :number

How long (in milliseconds) this frame should be displayed before advancing to the next frame.

Type:
  • number
Default Value:
  • 0

tileid

The local ID of a tile within the parent tileset.

Methods


clone()

Returns a shallow copy of the object.

Inherited From:
Returns:

a shallow copy of the object.


setTo(init)

Sets the members of the object to the specified values.

Parameters:
Name Type Description
init Object

The generic object to initialize the object.

Inherited From:
Returns:

The current object reference.


toObject()

Returns the Object representation of this object.

Overrides:
Returns:

the Object representation of this object.


toString()

Returns the string representation of this object.

Inherited From:
Returns:

the string representation of this object.