256 Colour Tutorial Part 1(V2.62): Difference between revisions

m
Line 99: Line 99:
Next I import the background with exact palette blah bla... (like before) as the background of another room, you may also check out the slots in the "'''Palette Editor'''" like before to see if the import was successful. (Don't forget to set these slots back to "'''room-dependent'''" after checking!)
Next I import the background with exact palette blah bla... (like before) as the background of another room, you may also check out the slots in the "'''Palette Editor'''" like before to see if the import was successful. (Don't forget to set these slots back to "'''room-dependent'''" after checking!)


Next, I think it may be a good idea to add a door to the disco room, so I want to draw a sprite for it, but I want it to blend with the background perfectly, and since that sprite will only be used in one room, it doesn't seem like a good idea to waste "'''fixed'''" sprite colour slots by copying some of the colours from the background. What should I do? I just draw [[media:8bittut_door.pcx|this]], which used the "'''room-dependent'''" colour slots directly. You may have asked, "aren't these slots '''ONLY''' for backgrounds?" The answer is, "Yes, and No. These slots can be used for backgrounds, you ''can'' actually use them in sprites too, provided that sprite is ''only'' used in ''that'' room or other room ''using similar colour settings'', otherwise it may look funny."
Next, I think it may be a good idea to add a door to the disco room, so I want to draw a sprite for it, but I want it to blend with the background perfectly, and since that sprite will only be used in one room, it doesn't seem like a good idea to waste "'''fixed'''" sprite colour slots by copying some of the colours from the background. What should I do? I just draw [http://www.2dadventure.com/ags/8bittut_door.pcx this], which used the "'''room-dependent'''" colour slots directly. You may have asked, "aren't these slots '''ONLY''' for backgrounds?" The answer is, "Yes, and No. These slots can be used for backgrounds, you ''can'' actually use them in sprites too, provided that sprite is ''only'' used in ''that'' room or other room ''using similar colour settings'', otherwise it may look funny."


To import this door sprite, go to the "'''Sprite manager'''" and open up the import dialog, make sure you have ''un''checked "'''Remap colours to game palette'''" and select "'''Colour index 0'''" as transparent, ''AND'' '''check''' the "'''Lock sprite to current room (use room colours)'''" box, you can then import the sprite like before.
To import this door sprite, go to the "'''Sprite manager'''" and open up the import dialog, make sure you have ''un''checked "'''Remap colours to game palette'''" and select "'''Colour index 0'''" as transparent, ''AND'' '''check''' the "'''Lock sprite to current room (use room colours)'''" box, you can then import the sprite like before.
Line 107: Line 107:
[[Image:8bittut_discogam.png]]
[[Image:8bittut_discogam.png]]


Note that I also placed roger in the room for comparison, and he looks ''real'' funny, like a zombie, that's because I changed the colours of slots #17 through #41 when I first set up the palette, so if you want to keep CJ's original roger and GUI, etc. sprites intact you shouldn'tchange them.
Note that I also placed roger in the room for comparison, and he looks ''real'' funny, like a zombie, that's because I changed the colours of slots #17 through #41 when I first set up the palette, so if you want to keep CJ's original roger and GUI, etc. sprites intact you shouldn't change them.


==Conclusion==
==Conclusion==