Hello kinetic_creationz,
Wednesday, January 02, 2002, 8:48:56 PM, you wrote:
> I'm trying to load 2 different 16 colour palettes for 2 different
> sprites in mode 0. I'm using 16 colour mode for the sprites but when
> I DMA the sprites and the palettes into VRAM one of the sprites isn't
> right. I load one palette like this:
> DmaArrayCopy(3, duckt_pal, (0 * 32) + OBJ_PLTT, 32);
> and the other simply like this:
> DmaArrayCopy(3, square_pal, (1 * 32) + OBJ_PLTT, 32);
> But the sprites both seem to use the first palette. How do you assign
> palette 1 to a sprite? Thanks in advance.
You do activate your palettes, but do you also set their indices in OAM
entries? The highest 4 bits of "attribute 2" [bytes 5/6] should
contain the index (0-15) of your palette (please also make sure that
your sprites use 16x16 mode -- this is bit 10 of "attribute 0", it
should be cleared). So, what you have to do is set palette index for
your second sprite to 1 and it should work ok.
--
cheers,
-Maciej