#5040 - johnny_north - Fri Apr 18, 2003 2:55 am
I'm trying to change sprite priorities by changing attribute 2 of my sprites. When ever I write to attribute2 bit 11 the graphics get messed up.
Started like this:
sprites[num].attribute2 |= (prio<<10);
but this doesn't even work:
sprites[num].attribute2 |= BIT11;
Any sugestions?
#5233 - Arek the Absolute - Wed Apr 23, 2003 5:14 pm
I have a feeling people might be able to help you more if you were a bit more descriptive in what's going wrong. You say "the graphics get messed up." What does that mean? Are you entirely sure that the sprite isn't just appearing where it should, for example, under a map or something? Have you tried running it in an emulator and checking out that specific sprite to make sure that it's loaded and looking correct on its own?
-Arek the Absolute
_________________
-Arek the Absolute
#5264 - johnny_north - Thu Apr 24, 2003 2:58 am
Thanks for the reply Arek. Tonight I realized that I was not properly masking attribute2 when refering to the character number for the sprite.