GenSetSpriteCenterOn sprite, parentSprite {, On|Off }


Sprite to center on


The parent sprite to follow and center on.


When this switch is on the child sprite will rotate with the parent sprite.

This command makes once sprite stay centered on a parent sprite. Optionally the sprite can be made to rotate with the parent sprite. One good use for this command would be a space ship's shields.

GenSetSpriteCenterOn sprite, Off

Turn off sprite centering.

Game Engine Overview

Become a Patron