GenChangeSpriteLayerToEnd


GenChangeSpriteLayerToEnd sprite, layer

sprite

Sprite to change layer.

layer

The sprite's new layer.

This command moves a sprite from it's current layer to the specified new layer. The sprite is appended to the end of the drawing list so that it is drawn last on that layer. This can be used to move a sprite behind or in front of other sprites.


Game Engine Overview







Become a Patron