Problem with Allegro sprites
I have this problew that when I move my sprite (using arrowkeys) it leaves behind a nasty trail and I couldn't find a solution to this...I think the problem is in this piece of code (if you need more just ask).
if(key [KEY_LEFT]) --x;
if(key [KEY_RIGHT]) ++x;
if(key [KEY_DOWN]) ++y;
if(key [KEY_UP]) --y;
draw_sprite(buffer, character, x, y);
blit(buffer, screen, 0, 0, 0, 0, buffer->w, buffer->h);