Zophar's Message Domain

Go Back   Zophar's Message Domain > Emulation Talk > Rom Hack

Reply
 
Thread Tools Display Modes
Old 04-13-2007, 06:48 PM   #1
bigfelipe
Junior Member
 
Join Date: Apr 2007
Posts: 2
Default filling blank pixels with a new color

I'm using Tile Layer Pro, and I've figured out how to edit sprites in Mega Man 2. However, I'm trying to figure out if it's possible to fill 'empty' pixels within the tiles with colors that are NOT originally there.

For example, Mega Man's body is made of three colors and one 'empty' color and if I fill any of the sprite with that empty color it becomes see-through when the rom is loaded into an emulator. I'd like to add a fourth color to the sprite, but I don't know if it's possible or not.
<P ID="signature"></P>
bigfelipe is offline   Reply With Quote
Old 04-13-2007, 08:31 PM   #2
Gideon Zhi
Senior Member
 
Join Date: Jul 1999
Posts: 499
Default Re: filling blank pixels with a new color

It's not. That fourth "color" is a transparency, and except in very specific scenarios, it's *always* transparent - especially when it comes to sprites. A transparency is what prevents your sprites from being walking blocks.
<P ID="signature"><hr><center>http://agtp.romhack.net<img src=http://agtp.romhack.net/linkage.gif></a>
Aeon Genesis ~ Aiyah! Thank you for the always and always.</center></P>
Gideon Zhi is offline   Reply With Quote
Old 04-13-2007, 10:53 PM   #3
Disch
Senior Member
 
Join Date: Apr 2001
Posts: 4,387
Default Re: filling blank pixels with a new color

> It's not. That fourth "color" is a transparency, and except
> in very specific scenarios, it's *always* transparent -

There are no such specific scenarios. That color is always transparent (even for the background).
<P ID="signature"></P>
Disch is offline   Reply With Quote
Old 04-14-2007, 05:54 AM   #4
bigfelipe
Junior Member
 
Join Date: Apr 2007
Posts: 2
Default Re: filling blank pixels with a new color

Okay, so I guess the question is: is there a way to use four colors AND transparency within a tile or is the NES limited to only three colors plus transparency per tile?
<P ID="signature"></P>
bigfelipe is offline   Reply With Quote
Old 04-14-2007, 06:17 AM   #5
AkaneJones
Senior Member
 
AkaneJones's Avatar
 
Join Date: Aug 2001
Posts: 1,668
Default Re: filling blank pixels with a new color

Well for Megaman the answer would be yes, but that's only because his eyes are a differant tile. That's why Megaman has a black outline, two blue body colours, a peach face, and still has white eyes. In this specific case you want to edit the eye title, although it still can't go out side the bounds of that tile. Unless you could modiffy the size and make up of the second title set.
Doing that to any other game that doesn't use that trick to get more than three colours won't work, unless you know the code like the back of your hand. And even if you could you're still limited to 12 max colours, there's also that limit of how many sprites the NES can dissplay on a line.
<P ID="signature"><hr>
<center>

</center></P>
AkaneJones is offline   Reply With Quote
Old 04-14-2007, 07:39 AM   #6
Disch
Senior Member
 
Join Date: Apr 2001
Posts: 4,387
Default Re: filling blank pixels with a new color

>> Okay, so I guess the question is: is there a way to use four colors AND transparency within a
>> tile or is the NES limited to only three colors plus transparency per tile?

No -- no way around it. The NES is limited to 4 colors per tile (3 actual colors + 1 transparent "color")



But as Akane mentioned...

> Well for Megaman the answer would be yes, but that's only
> because his eyes are a differant tile.

I want to emphasise that MM's face is a seperate tile -- and thus is assigned a different palette from the rest of his body. So while MM as a whole uses more than 4 colors -- no single tile uses more than 4.

And to pre-empt your asking: adding additional tiles is quite complicated and is probably a more advanced topic than you're ready for
<P ID="signature"></P>
Disch is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:09 PM.

Contact Us - Zophar's Domain - Archive - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.