すんません、解決しました

g.drawImage(backimage, 0, 0, 800, 600, (int)lp, 0, 800+(int)lp, 600, frame);
lpch = System.currentTimeMillis() - stagetimer;
if (lpch % 2 == 0) {
     lp = lp + 1;
}
if (lp >= 800) {
     lp = 0;
}