#6029 - marky - Thu May 15, 2003 6:10 pm
I am new to GBA programming and I don't know anything about the architecture other than what I read in the Pern Project (which is excellent and bootstrapped me a long way). But I just encountered a limitation of the sprite architecture that surprises me.
I (naively?) thought that if I had 2 separate sprite objects (different sets of registers in OAM) pointing to the same tile sequences in character memory (not duplicated), the sprites could animate independently. But I'm finding (at least with 2 different emulators) that sprites that point to the same tile sequences cannot animate indepently. They can have independent screen positions but they cannot display different frames, different zooms, etc. Is this right or should I hunt harder for bugs in my code?
If sprites are limited in this way, is there any way to clone sprites without duplicating images in character memory.
Regards,
Mark
p.s. Here's my work-in-progress http://www.vizmo.com/bin/dragonVsPawn.gba (103kb). No gameplay or battle yet - just dragon flying with the D-pad, fireballs with A-button and enemy who comes out when you fly over one of the skull towers.
I (naively?) thought that if I had 2 separate sprite objects (different sets of registers in OAM) pointing to the same tile sequences in character memory (not duplicated), the sprites could animate independently. But I'm finding (at least with 2 different emulators) that sprites that point to the same tile sequences cannot animate indepently. They can have independent screen positions but they cannot display different frames, different zooms, etc. Is this right or should I hunt harder for bugs in my code?
If sprites are limited in this way, is there any way to clone sprites without duplicating images in character memory.
Regards,
Mark
p.s. Here's my work-in-progress http://www.vizmo.com/bin/dragonVsPawn.gba (103kb). No gameplay or battle yet - just dragon flying with the D-pad, fireballs with A-button and enemy who comes out when you fly over one of the skull towers.