GenSetSpriteCenterXY


GenSetSpriteCenterXY sprite, x, y

sprite

Sprite to be positioned.

x

The screen x coordinate to position the sprite. The center of the sprite will be positioned on this x coordinate.

y

The screen y coordinate to position the sprite. The center of the sprite will be positioned on this y coordinate.


The center of the sprite will positioned over the specified X and Y screen coordinate.


The diagram below shows the X and Y axis and their direction of movement.


Game Engine Overview







Become a Patron