SpriteAnimationFrame

SpriteAnimationFrame

A frame used by a SpriteAnimation in a gdjs.SpriteRuntimeObject.

It contains the texture displayed as well as information like the points position or the collision mask.

Constructor

new SpriteAnimationFrame(imageManager, frameData)

Parameters:
Name Type Description
imageManager

The game image manager

frameData

The frame data used to initialize the frame

Source:

Methods

getPoint(name)

Get a point of the frame.
If the point does not exist, the origin is returned.

Parameters:
Name Type Description
name

The point's name

Returns:
Type Description

The requested point. If it doesn't exists returns the origin point.

Source:

reinitialize(imageManager, frameData)

Parameters:
Name Type Description
imageManager

The game image manager

frameData

The frame data used to initialize the frame

Source: