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

Comments for Sidescroller demo

Return to Sidescroller demo

A new version of this scenario was uploaded on Sun Nov 27 19:05:53 UTC 2011
A new version of this scenario was uploaded on Sun Nov 27 19:57:21 UTC 2011
Royalblue64Royalblue64

2011/11/27

Whoa, this is cool. Could you upload it with the source? I'd like to know how to side-scroll.
A new version of this scenario was uploaded on Sun Nov 27 20:10:01 UTC 2011
A new version of this scenario was uploaded on Sun Nov 27 20:10:30 UTC 2011
spacebluespaceblue

2011/11/27

Source uploaded - sorry, it might be a bit messy.
A new version of this scenario was uploaded on Sun Nov 27 20:40:22 UTC 2011
A new version of this scenario was uploaded on Sun Nov 27 21:05:17 UTC 2011
A new version of this scenario was uploaded on Sun Nov 27 23:10:50 UTC 2011
AwesomeNameGuyAwesomeNameGuy

2011/11/27

How do you get the actors to move smoothly off the screen like that? Whenever I try to setX() at a point beyond the screen, they just stay at the sides. I have to remove them but then at the edge of the screen it looks choppy.
spacebluespaceblue

2011/11/28

The World constructor is: World(int worldWidth, int worldHeight, int cellSize, boolean bounded) Just set the bounded to "false", and everything should go smoothly.
spacebluespaceblue

2011/11/28

The World constructor is: World(int worldWidth, int worldHeight, int cellSize, boolean bounded) Just set the bounded to "false", and everything should go smoothly.
AwesomeNameGuyAwesomeNameGuy

2011/11/28

Well, my scenario just got a lot smoother..at first my plan was to put a 32 pixel wide border around the edge of the screen, but then I started noticing that some people's scenarios had actors that could move beyond the edge of the world and I was like "wait a second..". Thanks!
ArloJamesBarnesArloJamesBarnes

2011/11/28

Interesting, when one jumps onto the left wall of the initial box, runtime stops.
ArloJamesBarnesArloJamesBarnes

2011/11/28

Oh, also, every time one dies and respawns, the "camera" moves down. Intentional?
spacebluespaceblue

2011/11/28

Not intentional. Thanks for catching that! I'm planning to turn this into a game soon.
A new version of this scenario was uploaded on Mon Nov 28 22:48:18 UTC 2011
Builderboy2005Builderboy2005

2011/11/28

A similar problem occurred to me. Somehow I managed to move the camera to the left of the box, and even managed to get the camera so far left that the box wasn't even on the screen anymore. It seems to have to do with horizontal collisions.
DonaldDuckDonaldDuck

2011/11/28

Hm, interesting. Mind if I check out your source code and possibly implement some into my BlockCraft game?
spacebluespaceblue

2011/11/29

Sure, no problem!
A new version of this scenario was uploaded on Tue Nov 29 04:12:43 UTC 2011
A new version of this scenario was uploaded on Tue Nov 29 04:15:45 UTC 2011
A new version of this scenario was uploaded on Tue Nov 29 04:16:32 UTC 2011
spacebluespaceblue

2011/11/29

Hi guys, I ran into a bit of a problem. The greenfoot exporter doesn't seem to be working. When I try to download my source here, it shows that not all of the .java files were uploaded to the Gallery.
spacebluespaceblue

2011/11/29

Hi guys, I ran into a bit of a problem. The greenfoot exporter doesn't seem to be working. When I try to download my source here, it shows that not all of the .java files were uploaded to the Gallery.
A new version of this scenario was uploaded on Tue Nov 29 04:46:59 UTC 2011
A new version of this scenario was uploaded on Tue Nov 29 04:55:03 UTC 2011
Royalblue64Royalblue64

2011/11/29

There's a slight glitch with respawning. Whenever you respawn, the screen is a little higher than before, so that the box is below the screen if you die too many times.
DonaldDuckDonaldDuck

2011/12/4

Is it possible to upload the source code?