Palette()

Last Modified: 10/16/2021

Changes the Palette of a sprite or tile.

Arguments

NameTypeRequiredDescription
PalIndex Integer Yes Valid values are 0,1,2, and 3

Example

Syntax: Palette(<PalIndex>)
    Palettes DemoPal,2,0,2
    DrawTile 1+Palette(2),1,1
 
DemoPal:
    DataInt $0000, $000E

Remarks

To apply this to a sprite, you would use the same method in the above example when using PropSprite on the memory location argument.

See Also

HFlipTile(), PropSprite, VFlipTile()