SPRITE PRIORITY This command will return the sprite priority of a specified sprite.
Syntax
    Return Integer=SPRITE PRIORITY(Sprite Number)
Parameters
    Sprite Number
Integer The sprite number
Returns
The value of the priority
Example Code
    ink rgb(255,0,0),0

    box 0,0,32,32

    get image 1,0,0,32,32,0

    sprite 1,116,116,1

    SET SPRITE PRIORITY 1,1

    ink rgb(0,255,0),0

    box 0,0,32,32

    get image 2,0,0,32,32,0

    sprite 2,100,100,2

    SET SPRITE PRIORITY 2,0

    do

    print "Sprites 1 Priority ",SPRITE PRIORITY(1)

    print "Sprites 2 Priority ",SPRITE PRIORITY(2)

    loop

    end
See also
SPRITE Commands Menu Index