You are not logged in.
Pages: 1
Hello all.
I know, that palettes for objects like menu icons are stored at wram 0xD040. The problem is that all pokemons have the same palette. I want to make 7 palettes for menu icons:
green
red
blue
brown
purple
pink
yellow
I've an idea of asm code which simply assign correct palette for specified pkmn:
ld a, $DCD8 ( current pkmn nr )
dec a
ld hl, table
ld e,a
ld d,0
add hl, de
ld a, hl
ret
table: 251 bytes, each is palette assign:
01 green
02 red
03 blue
04 brown
05 purple
06 pink
07 yellow
I tried to do that, but the result was, that all pokemons in menu had palette assigned to the first pokemon in party.
I was looking for answer in mini sprites loading routine, which is stored around 0x8e8df ( crystal ), but I've found nothing interesting.
Can someone help me?
Thanks ;)
Offline
Pages: 1