Class: SpriteAnimationFrame

SpriteAnimationFrame

new gdjs.SpriteAnimationFrame(imageManager, frameData)

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.

Name Type Description
imageManager gdjs.ImageManager

The game image manager

frameData SpriteFrameData

The frame data used to initialize the frame

Members

centerSpritePoint

customHitBoxesArray.<gdjs.Polygon>

hasCustomHitBoxesboolean

imagestring

originSpritePoint

pointsHashtable

inneroriginSpritePoint

innerpointSpritePoint

innerpointDataSpritePoint

innerpolygonDataArray.<SpritePoint>

Methods

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

Name Type Description
name string

The point's name

Returns:
Type Description
SpritePoint The requested point. If it doesn't exists returns the origin point.