I am working on a game (that i haven't yet put out) that i need to make the background scroll. help would be appreciated.


1 2 3 4 5 6 | private void scrollBackground() { GreenfootImage bg = new GreenfootImage(getBackground()); getBackground().drawImage(bg, - 1 , 0 ); getBackground().drawImage(bg, getWidth()- 11 , 0 ); } |