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

2015/12/1

Need help making Vertical Scroll camera with danpost's scrollworld

Vishis Vishis

2015/12/1

#
I cannot make the camera follow the wombat vertically and i have to scroll the world myself. I did make the world a subclass of sworld and im not sure how to set scroll type to 2 for vertical scrolling, please help!
danpost danpost

2015/12/1

#
Vishis wrote...
I cannot make the camera follow the wombat vertically and i have to scroll the world myself. I did make the world a subclass of sworld and im not sure how to set scroll type to 2 for vertical scrolling, please help!
You would have to use the width of the world as the scrolling width and use the universal constructor of the SWorld class. As an alternative, if the scrolling is limited to the size of your image, you could use the ImgScroll class instead. It can be downloaded with my Bee Quick (ImgScroll Demo) scenario. It is much less involved, making it much easier to use.
You need to login to post a reply.