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

2018/1/28

danpost Scrolling tutorial

Paul12345 Paul12345

2018/1/28

#
So i went from using the old scrolling world demo to the newer tutorial and even though i'm using the limited scrolling constructor the background image is stretching when the background is scrolling . On the old one the background was set to cover the whole world which i'm trying to get to do on this one.
danpost danpost

2018/1/28

#
Make sure you scale the image properly before you pass it to the Scroller constructor. If you continue to have issues, please show the class codes of the scrolling world so that it can be examined. Or better yet, upload what you have (with source included) so that it can be properly tested and diagnosed. One thing it might be is that you have transpencies in your image. Make sure you use a jpeg image or, if it is a png, try drawing the image on a completely painted image (probably of color white) of the size required and using it.
You need to login to post a reply.