Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,431,733
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-18-24 04:06 AM
Guest: Register | Login

0 users currently in ROM Hacking | 1 guest | 3 bots

Main - ROM Hacking - How do you change the color of a PPU tile? New thread | New reply


RetroRain
Posted on 10-02-12 02:02 AM (rev. 2 of 10-02-12 02:03 AM) Link | Quote | ID: 152568


Fuzz Ball
Level: 66

Posts: 610/994
EXP: 2436520
Next: 25331

Since: 09-30-07

Last post: 1926 days
Last view: 949 days
I know how to read/write from/to the PPU, sprites and background tiles, and read/write palettes to $3F00-$3F1F.

But how do you find the color that is assigned to a single 8x8 tile?

For example, Zelda has the bomb displayed on the HUD as the color blue, but I want to change it to green. And green is a part of the palette set.

What's the best way to go about doing that, without actually changing the color blue. I want to select the green that is in the palette set.

____________________
My YouTube Channel

NovaYoshi
Posted on 10-02-12 02:08 AM (rev. 2 of 10-02-12 02:09 AM) Link | Quote | ID: 152569


Red Goomba
Level: 15

Posts: 30/35
EXP: 14348
Next: 2036

Since: 02-24-11

Last post: 4190 days
Last view: 1279 days

The NES is kind of funky as far as palettes go. Instead of every 8x8 tile having a palette selected, palettes are selected for squares of 16x16, probably to save RAM.

This has the details.

____________________


RetroRain
Posted on 10-02-12 02:19 AM Link | Quote | ID: 152570


Fuzz Ball
Level: 66

Posts: 611/994
EXP: 2436520
Next: 25331

Since: 09-30-07

Last post: 1926 days
Last view: 949 days
The Attribute Table, I should've known.

Thanks dude, I was able to change the color!

____________________
My YouTube Channel

infidelity
Posted on 10-02-12 04:22 AM (rev. 2 of 10-02-12 04:41 PM) Link | Quote | ID: 152571


Fuzz Ball
Level: 66

Posts: 275/968
EXP: 2366466
Next: 95385

Since: 05-24-07

Last post: 950 days
Last view: 806 days
The attribute table did the trick, because that blue bomb is actualy a bg tile, not a sprite tile. The sprite 0 bomb appears behind that blue BG tile when you initiate a scroll. Watch $200-$203 when you first initiate a scroll. Its palette is at $202.

Main - ROM Hacking - How do you change the color of a PPU tile? New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.019 seconds. (339KB of memory used)
MySQL - queries: 52, rows: 76/76, time: 0.016 seconds.