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

Report as inappropriate.

polle
polle presents ...

2008/8/4

Side scroll demo

Some scenarios require the background to move.
Here is a demo that shows gow to side-scroll the
background image.
If you need this for your own scenario, download the source and have a look.

13300 views / 21 in the last 7 days

5 votes | 0 in the last 7 days

Tags: demo with-source sidescroll

This scenario is a member of: Scrolling games


open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Mon Aug 04 09:07:26 UTC 2008
lirkilirki

2009/10/26

I look at the code and i somewhat understand it. Yet i change something like the dimension (I change it all the way through) it compiles, i look at the scenario and get a gray Run, Act, Pause set and the game is like a 1mm square box. Do you know whats wrong? And the only way to get it back to normal is to delete the class and re-copy original.
lirkilirki

2009/10/27

Nevermind. I was didnt change the image extension from .gif to .jpg. Spent 1 and a half weeks on it then the dude next to me was like you need to change the extension....
GameCodeGameCode

2011/7/1

@lirki At one of my scenarios I got the same mistake with this squarebox. For some reason everything works in Greenfoot. But as soon as I export it to .jar there is this stupid square instead of my game. Maybe it's a bug in Greenfoot
davmacdavmac

2011/7/2

@GameCode, best thing to do is create a new discussion (Discuss tab at the top of the gallery page) and talk about the problem, and give a link to your scenario. Probably it is actually something that you are doing wrong...
SydbergSydberg

2013/11/23

Hi. I found this scenario very useful, but I can't figure out, what should I change in code to make background scroll vertically. Can anyone help, please?
SoldierBobSoldierBob

2015/2/8

easiest scrolling demo I've seen yet
MultiscienteMultisciente

2019/3/15

I want this code: https://i.ibb.co/WKNrNsq/1.png Where do I find him?

Want to leave a comment? You must first log in.

Who likes this?

fejfo SoldierBob Sydberg ardeearam davemib123