User Tools

Site Tools


ixe:irpl:sprites:setspritelayer

This is an old revision of the document!


:!: Available in version 43 and later. (for new IRPL commands)

SetSpriteLayer

SetSpriteLayer(<-spriteUID <-layer)

Description

Sets the render sort layer for the sprite. Sprites are rendered based on their layer and then their order within a layer.

Possible layers are: 0: Sectors. This is the layer the sand is rendered in. 1: Lower. This is a unit layer below the default. 2: Default. The normal and default layer for sprites and units. 3: FOW. The Fog of War layer.

Examples

#REnder behind the sand
SetSpriteLayer(<-mySprite 0)
SetSpriteOrder(<-mySprite -1)
ixe/irpl/sprites/setspritelayer.1736989723.txt.gz · Last modified: 2025/02/14 14:56 (external edit)