GenAddSpriteToEnd sprite, layer


The sprite to be added.


The layer the sprite is to be added to. The layer may be 0 thru 15.

After a sprite is created and initialized it has to be added to one of the 16 graphics layers before it can become visible. Layer 0 is the farthest back layer. Layer 15 is the front/top layer.

Even on the same layer some sprites are drawn before others. This command adds the sprite to the specified layer but at the end of the drawing list. This can be used to ensure some sprites are drawn after others.

Game Engine Overview

Become a Patron