gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > 11x11 sprites

#51921 - blacksun - Wed Aug 24, 2005 6:02 pm

Is there anyway to have different size sprites other than multiples of 8? I will be working on a puzzle game and 16x16 is too big and 8x8 is too small.

I didn't think there is a way to do this but could using 16x16 and then masking them or using transparency work?

#51928 - paladine - Wed Aug 24, 2005 7:51 pm

You can use transparency to achieve this. There is no rule where you have to use all the pixels in a 16x16 sprite or any size sprite for that matter. Just set the pixel value to 0 when you don't care about the pixel.

#51942 - blacksun - Wed Aug 24, 2005 9:34 pm

Ok cool that's what I was thinking. Now I could also just use the transparency color with the palette and set the bit to use transparency right?

#51945 - tepples - Wed Aug 24, 2005 9:40 pm

Color index 0 in a sprite is always transparent. Color indices 1 through 15 or 1 through 255 (depending on the sprite cel's bit depth) are always opaque.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.