Spritepal: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
removed layer bullshit, ASCII table, and added link to preview page
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
spritepal <number>
'''spritepal''' <number>


Changes the current [[actor]]'s palette reference number to <number>.
Changes the current [[actor]]'s palette reference number to <number>.


The following is a listing of all the legal values for the spritepal primitive. Palettes can effect 3 different 'layers' of a tile. The easiest way to understand these 3 different 'layers' is by using the stripper sprite. The 3 'layers' are: Background (her skin), Foreground (her clothes), and Minor Foreground (money, accessories, etc).
See [[pal]] for more information about palette swaps.
 
    0 = Normal
    1 = All colors become blue
    2 = All colors become red
    3 = Normal, exactly 0. Is used to actor some effects that needs a pallete that is not 0 (like parallex, that shots doesn't dissapers on it if using a pallete)
    4 = All colors become a single black (#000)
    5 = Red become brown.
    6 = All colors become green with inverted brightness (Night Vision green)
    7 = All colors become yellow
    8 = All colors become green
    10 = All blue become dark red
    11 = All blue become green (same as 22, 22 is used by Assault Trooper)
    12 = All blue become gray (same as 18)
    13 = All blue become dark gray
    14 = All blue become dark green (used by Nuke Button)
    15 = All blue become brown
    16 = All blue become dark blue
    17 = All brown become blue and all blue becomes green
    18 = All blue become gray (same as 12)
    19 = All brown become red and all blue becomes gray
    20 = All brown become blue and all blue becomes gray
    21 = All Blue become red (used by Assault Captain and mini Battlelord)
    22 = All blue become green (this is used by Assault Trooper, same as 11)
    23 = All blue become yellow
    24 = All gray become red and all red become gray
    25 = All green become red


See the [[Palette (environment)#Palette Swaps|palette listing]] for previews.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]

Latest revision as of 18:00, 26 September 2009

spritepal <number>

Changes the current actor's palette reference number to <number>.

See pal for more information about palette swaps.

See the palette listing for previews.