well, coordinates are coordinates, so the best way to acheive your effect is to have an array of ints (so, say < int IDs[64]; >
and set all of it to a certain number, i'd go with -1; whenever you add a sprite, add its index to the end of your array, and have a separate int for how many sprites you have ( < int totalSprites = 0; > ). every time you move, run a for loop and move all of the (so, < for(int i = 0; i < totalSprites; i++) >
. the coordinates are relative to the top-left corner of your screen, so there is no moving of coordinates. if the array at index i is not -1, ( < if(IDs[i] != -1) > ) go ahead and move it.
alltogether, it would be something like
int IDs[64] = {-1, .... };
int totalSprites = 0;
void move()
{
for(int i = 0; i < totalSprites; i++)
{
if(IDs[i] != -1)
Move(i);
}
}
Move() being a void returning function with one int parameter that moves the sprite.
-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.
http://www.lionsbloodstudios.justinman.net/index.htm