I'm a newbie to allegro so this may be a simple question.
I'm wondering if there is a way to move allegro shapes by x,y without filling the circle i made with a black circle and making a new circle.
Currently i have a while loop that moves the circle by moving filling the current one with a black circle and making a new one with x and y that are a little different i'd like to know if there is a way to move allegro shapes by x,y because it seems to make my game slow.
Here is a current while with this way:
int x=100;
int y = 100;
int tempX,tempY;
while(1)
{
tempX=x;
tempY=y;
circlefill ( screen, tempX, tempY, 20, makecol( 0,0, 0));
circlefill ( screen, x, y, 20, makecol( 0, 0, 255))
x+=10;
y+=10;
}
Thanks