Damn, it was going so well...
I've got the functions to move a sprite up, left and right working fine. They're very similar to the function below.
This function is supposed to move the sprite down the screen, but it doesn't:
Code:
void MoveSprDown (int x, int y, int dist, unsigned char spr[], unsigned char bg_colour)
{
int sprite_width, sprite_height;
sprite_width = spr[0] + (spr[1] << 8);
sprite_height = spr[1] + (spr[3] << 8);
Wait_VRT ();
for (; y <= dist; y++)
{
PutSprite (x, y, spr);
Wait_VRT ();
PutBar (x, y, x + sprite_width, y + sprite_height, bg_colour);
}
PutSprite (x, y, spr);
}
The sprite doesn't move at all.
The Y coord is incremented downwards (i.e. incrementing moves down the screen) BTW.
Hmm that's about it.