Get Sprite Pivot X Y

pivotX = GenGetSpritePivotX(sprite)

pivotY = GenGetSpritePivotY(sprite)

These functions return the screen coordinates of a sprite's pivot point. By default the pivot point is set to the center of the sprite. The pivot point is mainly used as a point to rotate the sprite around, but is also used for various other functions of the Game Engine.

Game Engine Overview

Become a Patron