DarkBASIC Professional Help File

DX11 SET SPRITE PRIORITY

Sets the priority of the specified sprite.
The priority is a WORD [0..65535] which determines the draw order of sprites.
Sprites are drawn back to front sorted by their priority, which means that
a lower priority sprite is drawn in front of a higher priority sprite.
Take note that the priority of the sprite itself is only relevant within its current
layer; the priority of the associated sprite layer is always more significant
than the priority of the individual sprite.

Syntax

    DX11 SET SPRITE PRIORITY sprite, priority

Parameters

    sprite

> Dword
> The sprite to set the priority of.

    priority

> Word
> The new priority of the sprite.

Returns

This function does not return a value.

See also

SPRITE Functions Menu
DX11 Function Categories