Construct 3 icon

Construct 3

Documentation

Sprite script interface

Ashley's avatar
Medal
Construct Team Founder
Published 3 Jun, 2019
77 words
<1 min

The ISpriteInstance interface derives from IWorldInstance to add APIs specific to the Sprite plugin.

Sprite APIs

getImagePointX(nameOrIndex)

getImagePointY(nameOrIndex)

Return the location of an image point on the current animation frame in layout co-ordinates. Image points are identified either by a case-insensitive string of their name, or their index. Note image point 0 is the origin, so index 1 is the first image point. If the image point is not found, this returns the origin instead.