Author: zeldaking
Posted: 18 Nov 2012 07:27:02 pm (GMT -5)
Okay I figured that last one out, go figure I was misusing my size boundaries. They were off. But now I have another question tho.
Say I wanted to make a Sprite Table and label an offset to chose what sprite to display, would I do it like this?:
Code:
I think that should work becuase I don't want to do this:
Code:
If anyone can help that would be great.
Posted: 18 Nov 2012 07:27:02 pm (GMT -5)
Okay I figured that last one out, go figure I was misusing my size boundaries. They were off. But now I have another question tho.
Say I wanted to make a Sprite Table and label an offset to chose what sprite to display, would I do it like this?:
Code:
Sprite 1 data
Sprite 2 data
Sprite 3 data
offset=1; //signifying sprite one
XORSprite( Main_Char_Sprite[offset*byte], int x, int y, int width, int height);
//byte is sprite data in bytes where all sprites are same byte count
I think that should work becuase I don't want to do this:
Code:
If sprite==1 XORSprite( sprite 1...
If sprite==2 XORSprite( sprite 2...
etc
If anyone can help that would be great.