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.

DS development > Can you change control registers on the fly?

#88896 - spencer723 - Thu Jun 22, 2006 2:38 am

I was just wondering if I'm able to change control registers for the BG's while running through regular code?

#88909 - tepples - Thu Jun 22, 2006 4:39 am

Yes, you can change the background control registers while the program is running, such as between the title screen, the menus, and the gameplay. In some cases, you can also change the background control registers halfway down the screen.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#88933 - silent_code - Thu Jun 22, 2006 11:17 am

in fact even scolling is changing the registers :)

just make sure there's no visible artifacts when the change occurs. to help that you can put a black only palette into palette mem or disable the bgs.

happy coding!

#88956 - spencer723 - Thu Jun 22, 2006 2:05 pm

Thanks for the help :)