Original Post
I am currently working on a gba application and am attempting to my sprite color palette and data into OAM. However, when I compile I get the error:
invalid types ''int[int]'' for array subscript
The trouble areas of my code are:
for(int i = 0; i < 128; i++)
OAMdata[i] = mySpriteData[i]; //line 77
for(int i = 0; i < 256; i++)
{
paletteMem[i] = FFPalette[i]; //line 81
OBJPaletteMem[i] = mySpritePalette[i]; //line 82
}
What is odd is that I get that error twice, in lines 77 and 82, but not in line 81 as well. As similar as these three lines are, I would think that it would show up in all three. The only difference is that FFPallette is the palette for my background image and not a sprite as the other two are, but both types are defined the same way. Anyone have an idea of what''s going on here?
Thanks
When you find yourself in the company of a halfling and an ill-tempered Dragon, remember, you do not have to outrun the Dragon...