This thread needs to be on the Windows board or the Game board...
...and yes, you could use an array of bitmaps. One way is to loop forward through the array until the end is reached, at which point the direction is reversed.
Code:
char direction = 1;
int MAX = num_frames;
int MIN = -1;
int index = MIN+1;
int end = MAX;
while(running) {
Show(image[index]);
index += direction;
if(index == end) {
direction = -direction;
if(end == MAX) {
end = MIN, index = MAX-1;
} else {
end = MAX, index = min+1;
}
}
}
...ok, well something like that...