SecondBASIC Documentation v3

Home / Command Reference / PropSprite

PropSprite

Description: Sets the <VramLocation> and <Palette> for a <Sprite>.

Syntax:

PropSprite <Sprite>, <VramLocation>, <Palette>>

Part Description
<Sprite> Required. <Sprite> is the variable you prepared with AddSprite().
<VramLocation> Required. The location in VRAM that the sprite tiles are loaded.
<Palette> Required. The palette number for the sprite. Valid numbers are 0 to 3.

Example:

    a = AddSprite(1, 1)
    PropSprite a, 1, 0
    MoveSprite a, 128, 128