SecondBASIC Documentation v3

Home / Function Reference / Priority()

Priority()

Description: Changes the priority of the tile or sprite being drawn.

Syntax:

Priority(<level>)

Part Description
<level> Required. Valid values are 0 for low priority and 1 for high priority.

Example:

        a = AddSprite(1,1)
        DrawTile 1,0,0
        PropSprite a,1+Priority(1), 0
        MoveSprite a, 200, 200
        ShadowMode @On