#172318 - radiodee1 - Sat Jan 30, 2010 2:18 pm
I have this code, which I think should rotate a single sprite on the screen. The problem is that somehow it makes all the sprites on the screen rotate. What am I doing wrong? ( 'x' and 'y' are the x and y position of the sprite on the screen, and 'sprites[0].gfxPtr' is the pointer to the sprite's memory.)
Code: |
oamSet(&oamMain, 0, x, y, 0, 0, SpriteSize_16x16,
SpriteColorFormat_16Color, sprites[0].gfxPtr, 0, false, false, false, false, false); for(i = 0; i < 32768; i = i + 1000) { oamRotateScale(&oamMain, 0, i, (1 << 8), (1<<8)); swiWaitForVBlank(); oamUpdate(&oamMain); } |