SET SPRITE PRIORITY This command will set the relative priority of the specified sprite.
Syntax
    SET SPRITE PRIORITY Sprite Number, Priority
Parameters
    Sprite Number
Integer The sprite number
    Priority
Integer All sprites start with a value of zero giving them equal chance of being drawn last. By setting a single sprite a value of one will cause that sprite to be drawn last
Returns
This command does not return a value.
Description
All sprites start with a value of zero giving them equal chance of being drawn last. By setting a single sprite a value of one will cause that sprite to be drawn last. You can specify a unique priority value for each sprite creating an order of drawing for every sprite in your program.
Example Code
    load image "man.bmp",1

    cls

    sprite 1,100,100,1

    set sprite priority 1,10

    do

    loop

    end
See also
SPRITE Commands Menu Index