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

2019/3/14

Code

Multisciente Multisciente

2019/3/14

#
Hi, Where do I find the code of: https://www.greenfoot.org/scenarios/236o ?
danpost danpost

2019/3/14

#
Multisciente wrote...
Where do I find the code of: << Link Omitted >> ?
There is an error in your link.
Multisciente Multisciente

2019/3/14

#
https://www.greenfoot.org/scenarios/236o
danpost danpost

2019/3/14

#
Multisciente wrote...
https://www.greenfoot.org/scenarios/236o
I guess I was mistaken. I does take you to a scenario (even with the final "o" character. Just go to the linked page and click on the big green "Open in greenfoot" link (above and to the right of the scenario frame).
Multisciente Multisciente

2019/3/15

#
I want this code: https://i.ibb.co/WKNrNsq/1.png
danpost danpost

2019/3/15

#
Multisciente wrote...
I want this code: https://i.ibb.co/WKNrNsq/1.png
Apparently, you have that code. Although, are you sure that is the code you need. That code will only scroll the background image of the world without scrolling (moving) any actors with the background. Also, it will only work when the initially set background image (cropped to world window size) is to wrap during scrolling.
Multisciente Multisciente

2019/3/15

#
I want the code that makes the scenery move.
danpost danpost

2019/3/15

#
Multisciente wrote...
I want the code that makes the scenery move.
Then you want to look at the paint method of the ScrollWorld class.
Multisciente Multisciente

2019/3/15

#
Ok. =)
You need to login to post a reply.