#13908 - doudou - Wed Dec 24, 2003 8:49 pm
I want to update a sprite in the OAM and move it at the same time. As soon as i update the sprite, the modifications are visible in the game...so the result is that we see the sprite change before it moves (i could do the inverse, but then the sprite would be at the good location but will display the last frame for a short time...same problem).
What i want is something to do all my OAM update and sprite move before a refresh.
#13926 - DiscoStew - Thu Dec 25, 2003 1:05 am
How are you doing your update and moving code? You may need to show us because your saying you can't get the two to work together within the same frame (from what I'm getting out of it). Usually when you call them within the same frame, both should change, but we don't know how your code is set up. Are you making changes directly to the OAM (where the attributes are held), or do you have a similar temporary structure that holds the updated data until your ready to just copy it over into OAM?
details details details
_________________
DS - It's all about DiscoStew
#13929 - sajiimori - Thu Dec 25, 2003 1:37 am
Instead of writing directly to OAM, write to a seperate array and DMA it over during vblank.