Spritepal: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
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). | |||
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 | |||
[[Category:Duke3D 1.3/1.5 commands]] | [[Category:Duke3D 1.3/1.5 commands]] | ||
[[Category:Sprite manipulation]] | [[Category:Sprite manipulation]] |
Revision as of 21:59, 17 May 2006
spritepal <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).
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