#20156 - CodeMasterMike - Mon May 03, 2004 10:12 am
I'm trying to use several diffrents sprites in my GBA project.
Meaning that I use diffrent headers, not the same.
Here, for every new sprite I use, I add 1 to 'usingSprite'.
And down here are when I initialize the two objects
(the last variable in the inparameter, is the 'usingSprite' value)
The problem is, that it draws out the same "picture" on the diffrent places,
I have no idea why it does this.
[/code]
_________________
Eating meat is not a choise, it's a instinct
Meaning that I use diffrent headers, not the same.
Here, for every new sprite I use, I add 1 to 'usingSprite'.
Code: |
pSpriteVar[usingSprite].attribute0 = COLOR_256 | MODE_TRANSPARENT | yOnScreen; pSpriteVar[usingSprite].attribute1 = SIZE_64 | xOnScreen; pSpriteVar[usingSprite].attribute2 = varOnScreen; |
And down here are when I initialize the two objects
Code: |
Spiders = new CSpider(1, 1, (8*8), alien3Data, alien3Palette, 1); Barney = new CMainCharacter(80, 85, numbOnScreen, tank3Data, tank3Palette, 0); |
(the last variable in the inparameter, is the 'usingSprite' value)
The problem is, that it draws out the same "picture" on the diffrent places,
I have no idea why it does this.
[/code]
_________________
Eating meat is not a choise, it's a instinct