LoginLogin

BG Commands not working!

Root / Programming Questions / [.]

Jacklack3Created:
So i was trying to add a background to my game in working on. But the problem is that i want the background to be different on the top screen and bottom screen. So i get display and add the BGFILL command... But the problem is that it will still be a black screen, Heres a example.
DISPLAY 1
CLS
BGFILL 0,0,0,24,14,(tile code i forgot)

I had the same issue when I was initially writing a simple space shooter. You need to specify how many sprites and bg layers are available using the XSCREEN command. XSCREEN 2, 128, 2 This will set up for display for mode 2, and assign 128 sprites, with 2 BG layers on the top screen. The remainder will be assigned to the bottom allowing layers 2 and 3 to be used. That should resolve your issue.

I had the same issue when I was initially writing a simple space shooter. You need to specify how many sprites and bg layers are available using the XSCREEN command. XSCREEN 2, 128, 2 This will set up for display for mode 2, and assign 128 sprites, with 2 BG layers on the top screen. The remainder will be assigned to the bottom allowing layers 2 and 3 to be used. That should resolve your issue.
Its still not working.

I had the same issue when I was initially writing a simple space shooter. You need to specify how many sprites and bg layers are available using the XSCREEN command. XSCREEN 2, 128, 2 This will set up for display for mode 2, and assign 128 sprites, with 2 BG layers on the top screen. The remainder will be assigned to the bottom allowing layers 2 and 3 to be used. That should resolve your issue.
Okay i got it working but the bottom screen wont allow a background!

I had the same issue when I was initially writing a simple space shooter. You need to specify how many sprites and bg layers are available using the XSCREEN command. XSCREEN 2, 128, 2 This will set up for display for mode 2, and assign 128 sprites, with 2 BG layers on the top screen. The remainder will be assigned to the bottom allowing layers 2 and 3 to be used. That should resolve your issue.
Okay i got it working but the bottom screen wont allow a background!
Hello?

I had the same issue when I was initially writing a simple space shooter. You need to specify how many sprites and bg layers are available using the XSCREEN command. XSCREEN 2, 128, 2 This will set up for display for mode 2, and assign 128 sprites, with 2 BG layers on the top screen. The remainder will be assigned to the bottom allowing layers 2 and 3 to be used. That should resolve your issue.
Okay i got it working but the bottom screen wont allow a background!
Hello?
You need to use the right BG layer, probably 2 or 3 if you used the same XSCREEN command.

I had the same issue when I was initially writing a simple space shooter. You need to specify how many sprites and bg layers are available using the XSCREEN command. XSCREEN 2, 128, 2 This will set up for display for mode 2, and assign 128 sprites, with 2 BG layers on the top screen. The remainder will be assigned to the bottom allowing layers 2 and 3 to be used. That should resolve your issue.
Okay i got it working but the bottom screen wont allow a background!
Hello?
You need to use the right BG layer, probably 2 or 3 if you used the same XSCREEN command.
But then it says out of range.

BGSCREEN maybe...? IDK what your code looks like, can you show me?

BGSCREEN maybe...? IDK what your code looks like, can you show me?
XSCREEN 2,128,2
DISPLAY 1
VISIBLE 1,0,0,0
PRINT"HI
BGFILL 2,0,0,5,5,1

XSCREEN 2,128,2
DISPLAY 1
VISIBLE 1,0,0,0
PRINT"HI
BGFILL 2,0,0,5,5,1
Change the 2 in BGFILL to a 0. The both screens' sprite & BG layer indexes start at 0 no matter what how many of them are assigned to the screen. Keep that in mind.

XSCREEN 2,128,2
DISPLAY 1
VISIBLE 1,0,0,0
PRINT"HI
BGFILL 2,0,0,5,5,1
Change the 2 in BGFILL to a 0. The both screens' sprite & BG layer indexes start at 0 no matter what how many of them are assigned to the screen. Keep that in mind.
Oh, I thought they started at 2 and 3 because they got divided up. Like 0 and 1 for top and 2 and 3 for bottom. Apparently I was wrong :P