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.

C/C++ > Checking background color

#5640 - twillinx - Sun May 04, 2003 4:26 pm

I'm thinking of checking the background color one pixel infront of my sprite to check if there's a wall that the character can't go trough for example.

Would be most thankfull for any ideas of how this is made.

#5645 - tepples - Sun May 04, 2003 6:53 pm

You can't read the output of the GBA's video compositor. To do collision detection on the GBA, games usually divide the sprite coordinates by 8 and then read the background layers to look for tiles that aren't air.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.