Just as the title says, some emulators just repeat the first background when I scroll however I want it to go onto the second background.
I think that there is some memory address which I need to set but I am very new to NES progeramming and am not sure.
So here is how it is supposed to look, showing the second part of the background when I scroll with my bee character:
http://img404.imageshack.us/img404/954/okayen.png
It does this in JNES.
And now here is the problem that some other emulators have, the first background is just repeated and the second one never shows up:
http://img26.imageshack.us/img26/2517/problemhcf.png
Here is the code that I use to load the background:
unrle_vram(Background2Nam, 0x2400);
unrle_vram(BackgroundNam, 0x2000);
Are these addresses correct? I am using C.
And here is my scrolling code, it's just the standered function that comes with Shiru's template:
scroll(ScrollX / 64, 0);
So what else do I need to add? Or what should I change? I hope this is enough infomation! Thanks!
I think that there is some memory address which I need to set but I am very new to NES progeramming and am not sure.
So here is how it is supposed to look, showing the second part of the background when I scroll with my bee character:
http://img404.imageshack.us/img404/954/okayen.png
It does this in JNES.
And now here is the problem that some other emulators have, the first background is just repeated and the second one never shows up:
http://img26.imageshack.us/img26/2517/problemhcf.png
Here is the code that I use to load the background:
unrle_vram(Background2Nam, 0x2400);
unrle_vram(BackgroundNam, 0x2000);
Are these addresses correct? I am using C.
And here is my scrolling code, it's just the standered function that comes with Shiru's template:
scroll(ScrollX / 64, 0);
So what else do I need to add? Or what should I change? I hope this is enough infomation! Thanks!