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.

Graphics > sprite format

#11249 - SimplyJamie - Tue Sep 30, 2003 2:27 am

Hi,

I've been having a problem that I'm not sure how to fix. I've made 4 sprites 16x16. The first sprite displays perfectly but none of the ones afterwards do. What I was wondering is what is the best graphics file size:

ie 64x64, 16x128, etc

Thanks for any help

#11258 - niltsair - Tue Sep 30, 2003 2:44 pm

Your question is a little vague. The best size to do what? What happen with the others sprites?
_________________
-Inside every large program is a small program struggling to get out. (Hoare's Law of Large Programs)
-The man who can smile when things go wrong has thought of someone he can blame it on. (Nixon's Theorem)

#11266 - yaustar - Tue Sep 30, 2003 3:27 pm

Have you checked that the OAM Entry for sprites is pointing to the right tiles of the sprites?
_________________
[Blog] [Portfolio]

#11274 - SimplyJamie - Tue Sep 30, 2003 10:27 pm

What I'm getting at is right now I have to have my sprites as 16x16 bytes before it is converted to GBA. What I want to know is if there is a way to combine the sprites in one bmp and then process all of the sprites, turning them to GBA. I hope this helps.

Thank you.

#11278 - tepples - Wed Oct 01, 2003 12:59 am

If you're using 2D mapping mode, place all your sprite cels on a 128-byte-wide bitmap and convert them all at once. (For 16-color sprite cels, this is 256 pixels wide; for 256-color sprite cels, this is 128 pixels wide.)

If you're using 1D mapping mode, place all your sprite cels top-to-bottom in a single bitmap and convert them all at once. Thus, if you have 20 cels of 16x16 pixels, make a 16x320 pixel bitmap.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#11282 - SimplyJamie - Wed Oct 01, 2003 3:18 am

That is exactly what I was looking for. I'd tried so many different file type I was pulling out my hair! :) I tried them in a column but when I looked at my graphic size i was 1column short on my sprites. I've been able to fix things ip. Thankyou.
+