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 > weird

#8275 - whodoo - Sun Jul 06, 2003 7:59 pm

Right now Im doing like this.. I enable and load background0..then I wait for about 2 seconds..then I change background0 and enable and load bacground1.. this works fine..
but if I do enable background1 efter enableing backgrund0(before the 2 seconds sleep, when I dont use it), I wont see background1 when I wanna do it.. and when I choose the mapviwer in Visual Boy Advance, background 0 and 1 look what they should look like, but I dont see background1 on the screen..

#8276 - whodoo - Sun Jul 06, 2003 8:02 pm

cause background1 is under background0 so I shouldnt matter whether it?s enabled or not even though it?s empty

#8279 - Cyberman - Sun Jul 06, 2003 8:32 pm

Be sure you have your background layer priorities set correctly and they are set semitransparent :) That should make both visable.

Cyb

#8280 - whodoo - Sun Jul 06, 2003 8:42 pm

humm I think so but the weird thing is..it works in this order
set/enabled background0
load background0 tile/mapdata
wait..
set/enabled background 1
change background0 tile/mapdata / set background1 data..

but if I move that "set/enabled background1" and place it under (set enaled background0)..it wont work..