gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > About sprites on mode4

#16894 - nghoyin - Thu Feb 26, 2004 3:45 pm

I have write a code to display a moving and rotating sprite on a background picture using mode4. when i test on mappyvm it is ok, but when i test on visualboy advance. a strange thing appear and the whole screen is displaying color pixel with no meaning.

Can any one help me with this problem?

#16895 - ampz - Thu Feb 26, 2004 4:06 pm

Tried it on hardware?

#17114 - batblaster - Mon Mar 01, 2004 5:57 pm

Don't forget the memory available for mode 3 4 and 5 are less then tile mode... Check the memory usage and the address if is correct...
_________________
Batblaster / 7 Raven Studios Co. Ltd
------------------------------------------

#17120 - Lupin - Mon Mar 01, 2004 8:31 pm

you also need to initialize all sprites positions to 240, 160 or something like that (unused sprites should go out of screen!)

I always forget the gba display resolutions hehe :)