Banner
Views: 844,843,464
Time:
23 users online: AnasMario130, Arcten, Aurel509, chickaDEE Magazine, Counterfeit, Fermín Acosta Jr., Gartore, GDHaZe, h.carrell, Hat Kid,  JamesD28, Janno27, Knight of Time, lukeshroomsen2905, Mayonnai, ModernKiwi, Mogu94, NopeContest, SF - The Dark Warrior, singlepat, slopcore, WhiteYoshiEgg, xamexer - Guests: 74 - Bots: 113 Users: 46,458 (2,749 active)
Latest: AutonomousAnonymous
Tip: Yoshi wings take you to level C8 or 1C8. Which one you get depends on the overworld level you're in.Not logged in.
Change koopa's palette
Forum Index - SMW Hacking - SMW Hacking Help - Change koopa's palette
Pages: « 1 »

How do I do that? I just want to change the shell color of the koopa, but just in 1 level, not the whole hack.

--------------------
Click here to check out my CLDC entry (video)
Layout by Koopster
See this UberASM code by JamesD28:

Code
main:
LDX #!sprite_slots-1
.loop
LDA !14C8,x
BEQ .next
LDA !9E,x
CMP #$xx
BEQ Palette1
CMP #$xx
BEQ Palette2
CMP #$xx
BEQ Palette1
CMP #$xx
BEQ Palette3
.next
DEX
BPL .loop
RTL

Palette1:
LDA !15F6,x
AND #$F1
ORA #$xx
STA !15F6,x
BRA main_next

Palette2:
LDA !15F6,x
AND #$F1
ORA #$yy
STA !15F6,x
BRA main_next

Palette3:
LDA !15F6,x
AND #$F1
ORA #$zz
STA !15F6,x
BRA main_next


For CMP #$xx, change $xx to your desired sprite numbers.

For ORA #$, change xx, yy, and zz to the desired palette value. Note that this corresponds to the YXPPCCCT format, where CCC is the palette.

If you want to change the palettes of more vanilla sprites, add more
Code
CMP #$xx
BEQ PaletteX

and
Code
PaletteX:
LDA !15F6,x
AND #$F1
ORA #$xx
STA !15F6,x
BRA main_next


entries, and remove them respectively if you don't want so many sprites.

In your case, you just wanna remap the palette of the shell, right? Then find the number of the shell, and it shall be remapped for that level.

Hope I understood you. If you wanna actually change the color of the shell without changing the vanilla colors, just use ExGFX. I trust you know how to do that?

--------------------
My Mode 0 guide.

My Discord server. It has a lot of archived ASM stuff, so check that out!
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - Change koopa's palette

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy