#10822 - DiscoStew - Tue Sep 16, 2003 10:43 pm
This is one of the weirdest problems I have ever faced.
I started working with a single sprite (just to see how it works along with animation), and my program ran just fine.
Now I've added structs so that my sprites have unique data (such as x/y coordinates, flip flags, etc.). My one sprite still show like usual, but now there's an 8x8 block showing a part of my sprite at the top of the screen, above my 1 sprite. Using VBA, I found that this one block is actually the 2nd sprite. But that can't be! I hadn't made any references to any other sprites other than the first one! After some more checking, I found that when I move some of the substructures from within my main structure for my sprites, my sprite does funky stuff. So from all that I have gathered together, it seems that my defined sprite structure is affecting the sprite attribute data (that is used to copy to the OAM), almost like these structures are overlapping each other in memory. Please help!
_________________
DS - It's all about DiscoStew
I started working with a single sprite (just to see how it works along with animation), and my program ran just fine.
Now I've added structs so that my sprites have unique data (such as x/y coordinates, flip flags, etc.). My one sprite still show like usual, but now there's an 8x8 block showing a part of my sprite at the top of the screen, above my 1 sprite. Using VBA, I found that this one block is actually the 2nd sprite. But that can't be! I hadn't made any references to any other sprites other than the first one! After some more checking, I found that when I move some of the substructures from within my main structure for my sprites, my sprite does funky stuff. So from all that I have gathered together, it seems that my defined sprite structure is affecting the sprite attribute data (that is used to copy to the OAM), almost like these structures are overlapping each other in memory. Please help!
_________________
DS - It's all about DiscoStew