#167993 - Conutmonky - Mon Apr 06, 2009 7:31 am
Hello,
I am rather new to DS development. So far I have something where I can show a background on the top and bottom screens, have some sprites on the bottom screen and some movement, which is fine. However a lot of this came through tutorials and me trying different things, and I have missed some of the basic stuff that i'm not sure how to do.
So my question now is, how can I select is my sprites are displayed on the main screen vs the sub screen? If I enable sprites to be displayed on both, it seems that the sprites are displayed on my main screen by default. Also similarly with text: how can I choose where to display my text?
An example:
videoSetModeSub(MODE_5_2D | DISPLAY_BG1_ACTIVE);
PrintConsole topScreen;
consoleInit(&topScreen, 1, BgType_Text4bpp, BgSize_T_256x256, 31, 0, flase, true);
iprintf("Hello World");
The consoleInit is telling the topScreen object to use BG layer 1, which should be enabled on the sub screen. What is telling iprintf to use that console? Right now it is coming through as garbage on the sub screen, which is almost right.
And what would tell my sprites to use the main screen and not the Sub console if both had sprites enabled?
Any help would be great,
Thanks,
Mike
I am rather new to DS development. So far I have something where I can show a background on the top and bottom screens, have some sprites on the bottom screen and some movement, which is fine. However a lot of this came through tutorials and me trying different things, and I have missed some of the basic stuff that i'm not sure how to do.
So my question now is, how can I select is my sprites are displayed on the main screen vs the sub screen? If I enable sprites to be displayed on both, it seems that the sprites are displayed on my main screen by default. Also similarly with text: how can I choose where to display my text?
An example:
videoSetModeSub(MODE_5_2D | DISPLAY_BG1_ACTIVE);
PrintConsole topScreen;
consoleInit(&topScreen, 1, BgType_Text4bpp, BgSize_T_256x256, 31, 0, flase, true);
iprintf("Hello World");
The consoleInit is telling the topScreen object to use BG layer 1, which should be enabled on the sub screen. What is telling iprintf to use that console? Right now it is coming through as garbage on the sub screen, which is almost right.
And what would tell my sprites to use the main screen and not the Sub console if both had sprites enabled?
Any help would be great,
Thanks,
Mike