Get Sprite Pivot Point


pivotPointX = GenGetSpritePivotPointX(sprite)

pivotPointY = GenGetSpritePivotPointY(sprite)

These functions return the X and Y pivot point coordinates. Coordinates are relative to the upper left corner of the sprite. 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