Is there any code to make the world scroll contantly in the downward direction? we are in need of this to make a Fall Down game.
private GreenfootImage backgroundWorld = new GreenfootImage("backgroundTest1.jpg"); private GreenfootImage currentBackground = new GreenfootImage(1000,600);
super(1100, 600, 1, false); currentBackground.drawImage(backgroundWorld, 0, 0); setBackground(currentBackground);
xPosition -= 1; currentBackground.drawImage(backgroundWorld, xPosition, 0); setBackground(currentBackground);
super(1100, 600, 1, false);