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 > one weird tile on the screen

#112024 - Vengyr - Tue Dec 12, 2006 3:53 pm

Today I started to work on getting text on my GBA but for some reason I get one messed up tile. I checked all my loops but am 100% sure they all start at 0. is there any other reason that can cause this.

Here is an image of the screen
picture

#112026 - Dwedit - Tue Dec 12, 2006 4:21 pm

I think that "tile" is every sprite being drawn at the same time in the top left corner, which is what having a zero-filled OAM will get you. Set the Y coordinate of each sprite to be offscreen.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#112027 - Vengyr - Tue Dec 12, 2006 4:41 pm

Thanks, that helped allot. apperently I forgot to set the attributes ^^;. thanks again

#112031 - poslundc - Tue Dec 12, 2006 5:47 pm

Dwedit wrote:
Set the Y coordinate of each sprite to be offscreen.


Alternately, set the sprite's double-size flag without turning on rot/scale (ie. set attribute 0 to 0x20) to explicitly turn it off.

This will keep any exceptionally large sprites from overflowing to the top of the screen.

Dan.