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.

DS development > exporting sprite sheets using grit

#150904 - krozen - Thu Feb 14, 2008 5:43 pm

Hi guys,
I'm using grit (which is so much handier than using gfx2gba!). I have one issue. I have a sprite sheet, which has 2 animations in it, lets call them A and B. Each animation has 8 frames. Each sprite is 32x32. The sprite sheet is arranged as follows (where A(n) and B(n) a each frame of animation):

A1 B1
A2 B2
A3 B3
A4 B4
A5 B5
A6 B6
A7 B7
A8 B8

I want to export these to be used on the DS. However, I've run into an issue with grit.
Using grit, I am able to export all the A frames seperately, as it allows you to specify the area of the image to export. I do by exporting the rectangle made up by 0,0 to 32,256. This works fine, and the sprites appear fine on the DS.
However, if I try to export 0,32 to 64,256 (i.e. animation frames B), it doesn't seem to work! The sprite data appearing on the DS is garbled. Anyone have any idea if there is any issue with this part of the program?


EDIT: Whoops, should have read the manual more closely. The fields in wingrit are for the width and height of the area, not for absolute values.
Cheers guys!

Thanks for your help.

#150938 - PypeBros - Fri Feb 15, 2008 3:41 pm

krozen wrote:
Hi guys,
However, if I try to export 0,32 to 64,256 (i.e. animation frames B), it doesn't seem to work! The sprite data appearing on the DS is garbled. Anyone have any idea if there is any issue with this part of the program?


I guess you mean 32,0 to 64,256 (?)
_________________
SEDS: Sprite Edition on DS :: modplayer

#150939 - krozen - Fri Feb 15, 2008 3:58 pm

Yip, that's what I did mean! I managed to get it working anyway. I just misunderstood the fields in wingrit, so was exporting the incorrect data.
Cheers anyway