GenSetSpritePivotPoint


GenSetSpritePivotPoint sprite, pivotX, pivotY

sprite

Game Engine sprite object to set.

pivotX

The X coordinate of the pivot point relative to the upper left corner of the sprite.

pivotY

The Y coordinate of the pivot point relative to the upper left corner of the sprite.


The pivot point is the point around which a sprite rotates. By default the pivot point is the exact center of a sprite. This command lets you change the position of the pivot point. The coordinates (pivotX, pivotY) are relative to the upper left corner of the sprite.


Game Engine Overview







Become a Patron