> I have started to display around 70 sprites on screen at once, most of
> them are size 16x16. If I display more than 70 odd, sprites start to
> disappear randomly. Any idea why this may happen? I thought maybe I
> am filling up the OAM memory or something? Please help and its
> stopping me from progressing with my game!! :-(
>
> I am in mode 3 by the way.
There is only enough sprite graphics memory to display 64 16x16 256-color
sprites in mode 3 if you have seperate graphics for each sprite. If you are
using 16 color then you can fit exatcly 128. In tile modes you can have 128
16x16 sprites with different graphics.
Also there is a limit to the number of sprites that can appear on any given
horizontal line in the display in any given frame....although I am fairly
certain this number is quite high it could concievably give problems if you
have lots of sprites located in one area. Since the number you mention (
70 ) is close to 64 I figure the most likely cause is that you have exhasted
your memory for sprite graphics.
-jason
aka Dovoto
www.thepernproject.com
"Programming tools and tutorials for the GBA"