GetSpriteHotspotX

Category: Images and Rendering

Back to System Functions


Signature

GetSpriteHotspotX(spriteReference As Integer)

Returns

Integer

Description

Returns the current X hotspot of a loaded sprite in pixels.

If the sprite reference is invalid, the result is 0.

Example

hotspotX = GetSpriteHotspotX(hero)