Hello there,
I'm just trying to get a background scroll slightly downwards - and it doesn't work. Maybe some of you can help me...
I've got a background with 900x900 px. The world is set to
super(900, 600, 1);
The clipping I want to see in the beginning is on the bottom. So just for testing, I insert in the constructor the following line:
this.getBackground().drawImage(this.getBackground(),0,-300);
This works fine, now I see the bottom of the Image like I want to. But in the other direction it doesn't work, because after inserting the line:
this.getBackground().drawImage(this.getBackground(),0,+1);
it does not have the right effect, but it pulls the image anywhere and I only see a black screen. Shouldn't this be supposed to move the image one px down???
Thanks for all the help!
ringline