News: 11 March 2016 - Forum Rules

Author Topic: Bruh, help me  (Read 1556 times)

JonGandee

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Bruh, help me
« on: March 20, 2021, 06:01:13 pm »
I'm working on an Adventure Island hack. How do I change which palette Master Higgins' head uses. I want the whole sprite to use the 3rd palette to save up the palette sets.

This is how the sprite I made looks.

This is how I want it to look.
« Last Edit: March 21, 2021, 09:41:59 am by JonGandee »

RadioTails

  • Sr. Member
  • ****
  • Posts: 391
  • Holding the Mega Drive controller
    • View Profile
Re: Bruh, help me
« Reply #1 on: March 21, 2021, 07:33:48 pm »
You would need to locate data that is sent to the OAM (Object Attribute Memory). https://wiki.nesdev.com/w/index.php/PPU_OAM

In this case, you need to find the attribute data for the head. Byte 1 tells the game which tile to use, and byte 2 controls stuff like which palette to use and flipping.
Avatar by LazyNinjartist

JonGandee

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Bruh, help me
« Reply #2 on: March 25, 2021, 02:39:04 pm »
Thanks.