DarkBASIC Professional Help File

DX11 GET SPRITE PRIORITY

Gets the current priority value of the specified sprite.
The priority determines draw ordering of sprites and can be used to ensure that sprite A is drawn in front of sprite B and so on.
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

    Return Word = DX11 GET SPRITE PRIORITY(sprite)

Parameters

    sprite

> Dword
> The sprite to get the priority of.

Returns

The priority of the sprite as a WORD (range [0..65535]).

See also

SPRITE Functions Menu
DX11 Function Categories