#1594 - np_soft - Mon Jan 20, 2003 4:56 pm
Hi, i'm trying to reduce the amount of mem using to store my sprite data simply by flipping them, IE an overhead view of a guy shooting stuff.. etc
or a sprite walking left and then using the same animation to walk right.
The problem is, when I set the flip horizontal flag, only some are flipped, and none are used in my sprite animation.. any suggestions?
This is what I have for my Hflip register
#define HORIZONTAL_FLIP 0x1000
This is my line of code (and yes, rotation bit is NOT on)
sprites[sp->oamEntry].attribute0 = sprites[sp->oamEntry].attribute0 | HORIZONTAL_FLIP;
Did I define the register wrong?
Any help would be great!
Thanks
Ed.
or a sprite walking left and then using the same animation to walk right.
The problem is, when I set the flip horizontal flag, only some are flipped, and none are used in my sprite animation.. any suggestions?
This is what I have for my Hflip register
#define HORIZONTAL_FLIP 0x1000
This is my line of code (and yes, rotation bit is NOT on)
sprites[sp->oamEntry].attribute0 = sprites[sp->oamEntry].attribute0 | HORIZONTAL_FLIP;
Did I define the register wrong?
Any help would be great!
Thanks
Ed.