This site requires JavaScript, please enable it in your browser!
Greenfoot back
lpiggott
lpiggott wrote ...

2015/11/10

Vertical Scrolling World

lpiggott lpiggott

2015/11/10

#
I am currently trying to program a game similar to doodle jump in that the world is vertical scrolling moving from the bottom up. With what I have now, the world always starts at 0,0 coordinates of the image. How do I change it so that the world starts at the bottom of the image. I have tried saving the world while the image was at its bottom, it doesn't work.
danpost danpost

2015/11/10

#
A game like doodle jump would require that the image wrap (or repeat) as the world scrolls. Where you start on the image should, then, not matter. If it is the case that you do need to specifically start with the lower part of the image set first, then post your scrolling code.
davemib123 davemib123

2015/11/10

#
Don't have greenfoot open right now. But the value you have used for the world class height will do the trick.
You need to login to post a reply.