#168578 - semihce - Thu May 07, 2009 2:48 pm
Hi everybody,
I want to display Sprite and Background images together. When I want to display only background or sprite, it is ok, I can display them seperately.
But when I want to display them together, I got an orange background and my sprite stands there. What happens to my background image?
Here are my defines:
When I want to display only background, I use this code:
And when I want to display only sprite, I use this code:
And now, What should I do in order to display both of them together? Please help me..
Here is a link to the GBA output:
http://ktuce.ktu.edu.tr/~baysemi/GameRevolution.gba
I want to display Sprite and Background images together. When I want to display only background or sprite, it is ok, I can display them seperately.
But when I want to display them together, I got an orange background and my sprite stands there. What happens to my background image?
Here are my defines:
Code: |
// Set graphics mode
#define SCREENMODE_0 0x0 ///< Enable screen mode 0 #define SCREENMODE_1 0x1 ///< Enable screen mode 1 #define BG1_ENABLE 0x200 ///< Enable background 1 #define OBJMAP_1D 0x40 ///< 1D object(sprite) mapping #define OBJ_ENABLE 0x1000 ///< Enables sprites |
When I want to display only background, I use this code:
Code: |
setMode( SCREENMODE_0 | BG1_ENABLE | OBJMAP_1D ); |
And when I want to display only sprite, I use this code:
Code: |
setMode( SCREENMODE_0 | OBJ_ENABLE | OBJMAP_1D ); |
And now, What should I do in order to display both of them together? Please help me..
Here is a link to the GBA output:
http://ktuce.ktu.edu.tr/~baysemi/GameRevolution.gba