Hi
Im using the borland turbo C/C++ compiler and i did some animation of a simple drawing that is 20*20 in size.
Im using the getimage and putimage to put it up and redraw it in order to move it. I entered 2 objects to the buffers (with allocation) and it works ok when they are working seperately.
But when im running them both onscreen they seem to...BLINK. when i disable one it moves smoothly...Now cant be that the bgi is too slow to run 2 objects smoothly?!
I use a third empty buffer inorder to "delete" the former object position.
it looks like this:
while (ch!=27) {
putimage(x,y,buff[1],COPY_PUT); //the object
delay(7);
putimage(x,y,buff[2],COPY_PUT); // Overrides the former with blank.
y+=1;
}
thats basicly how it looks like (for 1 object).
Like i said when i use a second one (in like different position of the screen to run arround it just blinks....HELP).
Any idea?
Thanks