Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2014-06-05 20:52:21

daw
New member
Registered: 2013-01-31
Post 1/4

pokemon menu palettes

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

Board footer

Powered by FluxBB