#8326 - RaBBi - Tue Jul 08, 2003 1:33 pm
Hello everybody ^^
Firstable I'd like to say sorry for my poor English.
I'm a french newbie on GBA dev, but I'll try to explain my problems by the clearest way ^^
So, that's the number one lol
My aim is to animate sprite.
So I found a tuto on it in the samples directory of vham (yes I use this IDE with Ham, I forget to precise ;-)).
But the bmp used is buggy...but it's a 16x192 (16x16x12) tiles bmp I suppose.
So I do my own bmp with 32x384 (32x32x12), with the same disposition as the bmp use in tuto, aka 3 Up, 3 Right, 3 Down, 3 Left.
Then I used gfx2gba (both version to try -_-) to generate my .c files.
Then, in the code, I load the palette, then create object sprite with ham command.
Something like that :
The 32*32 is to target the up-center position of the sprite.
But finally, after building....my sprite looks very weird...
One line blank, one line with some pixel, one line blank...
I don't know if this came from a bad switches in gfx2gba...
Can you help me ?
Perhaps I don't understand the array structure or the concept of number of bits for a image...
I'm desappointed, but no hopeless ! ^^
(I'm in mode 1, but I think the mode is not a problem with sprite?)
_________________
Sorry for my poor english, but it would be worst for you to understand me if I speak in my native language, French ^^
Firstable I'd like to say sorry for my poor English.
I'm a french newbie on GBA dev, but I'll try to explain my problems by the clearest way ^^
So, that's the number one lol
My aim is to animate sprite.
So I found a tuto on it in the samples directory of vham (yes I use this IDE with Ham, I forget to precise ;-)).
But the bmp used is buggy...but it's a 16x192 (16x16x12) tiles bmp I suppose.
So I do my own bmp with 32x384 (32x32x12), with the same disposition as the bmp use in tuto, aka 3 Up, 3 Right, 3 Down, 3 Left.
Then I used gfx2gba (both version to try -_-) to generate my .c files.
Then, in the code, I load the palette, then create object sprite with ham command.
Something like that :
Code: |
ham_CreateObj((void*) &eikishi[32*32],0,2,etc....) |
The 32*32 is to target the up-center position of the sprite.
But finally, after building....my sprite looks very weird...
One line blank, one line with some pixel, one line blank...
I don't know if this came from a bad switches in gfx2gba...
Can you help me ?
Perhaps I don't understand the array structure or the concept of number of bits for a image...
I'm desappointed, but no hopeless ! ^^
(I'm in mode 1, but I think the mode is not a problem with sprite?)
_________________
Sorry for my poor english, but it would be worst for you to understand me if I speak in my native language, French ^^