GenSetSpriteCenterOn


GenSetSpriteCenterOn sprite, parentSprite {, On|Off }

sprite

Sprite to center on

parentSprite

The parent sprite to follow and center on.

On|Off

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