Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2017-06-18 14:28:41

swiftie
New member
Registered: 2017-06-18
Posts: 2

Transparent white in sprites.

Hello. I have a problem. I want to change transparent color in sprites to light green (1 in GTD). How i can do it? I use C.

Code:

OBP0_REG = 0xE1

Does not work for me. I make code for orginal GB, no color things.

Offline

 

#2 2017-06-18 15:38:37

nitro2k01
Administrator
Registered: 2008-02-22
Posts: 183

Re: Transparent white in sprites.

You can't change the transparent color in sprites. Sprites can only have 3 colors. 0xE1 is 11100001 in binary, so the three visible colors in your example are black (11), dark gray (10) and white (00). 01 at the end is ignored because that color is always transparent.


Blog: Gameboy Genius
"A journey of a thousand miles begins with one small step"
Old Chinese Proverb

Offline

 

#3 2017-06-18 15:42:24

swiftie
New member
Registered: 2017-06-18
Posts: 2

Re: Transparent white in sprites.

nitro2k01 wrote:

You can't change the transparent color in sprites. Sprites can only have 3 colors. 0xE1 is 11100001 in binary, so the three visible colors in your example are black (11), dark gray (10) and white (00). 01 at the end is ignored because that color is always transparent.

No no, i mean: I want to change white for gray.
Anyway i got it. I set D0 and remodel my sprite, is ok now. Thanks anyway.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson