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.

Beginners > Sprites in mode 4

#172681 - Kensai - Thu Feb 25, 2010 12:45 am

Hello,

I try to familiarize myself with sprites in mode 4 (!). I've included GBA Junkies example "ch4a" into my project. But since it is based on mode 1, the sprite is not displayed correctly. Is there a simple way to adjust the code?

#172684 - elwing - Thu Feb 25, 2010 7:24 am

Kensai wrote:
Hello,

I try to familiarize myself with sprites in mode 4 (!). I've included GBA Junkies example "ch4a" into my project. But since it is based on mode 1, the sprite is not displayed correctly. Is there a simple way to adjust the code?


as far as i know there should be no major difference between sprite in tile or bitmap mode, except that you lose your first block of sprite when using bitmap modes (you can only use sprite 512-1024)
I've only used tiled mode so i'm not sure, but that's the only info I found reading tonc => tonc:8. Regular sprites

by the way if you're programming for the GBA, read tonc... it's maybe not as beginner friendly but it's surely much better (and up to date) when it comes to programming for the GBA => tonc

#172687 - mog123 - Thu Feb 25, 2010 1:59 pm

Yeah, you cant use tiles 512-1024 in bitmap modes. And furthermore, go with tonc it really is sweet. I used to dislike it because it was going too much into detail for a first timer, but now it really does seem the only obvious solution. Is there a ds tonc equivalent?
_________________
Check out my GBA game in development : 忍物語

#172689 - elwing - Thu Feb 25, 2010 2:22 pm

mog123 wrote:
Yeah, you cant use tiles 512-1024 in bitmap modes.

I think it's the contrary, indexing still start at the lower tileblock, but you can only use the higher tile block,resulting in having only tiles 512-1024 useable (through some "bitmap mode" macro might offset the tiles by 512...).
feel free to correct me if i've read tonc wrong :)

#172691 - mog123 - Thu Feb 25, 2010 3:23 pm

yeah, just a mistype:) Wrote one thing, was thinking of the other. sorry :)
_________________
Check out my GBA game in development : 忍物語