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

Comments for Scrolling platform game demo

Return to Scrolling platform game demo

JetLennitJetLennit

2014/2/3

You should add the blocks slightly before they make it into the world
jimbowebjimboweb

2014/2/3

Good point, JetLennit. The entry of the blocks into the world is something I need to work on.
danpostdanpost

2014/2/3

The feel of the keys is wrong. You want the jump to occur when the key is pressed, not released, for a better feel.
jimbowebjimboweb

2014/2/3

Hi danpost, on my computer it does jump when you press they key down. Do you have a mac? They can do weird things with the key commands. That's why I put in the mouse command instead. Are other people having this problem?
jimbowebjimboweb

2014/2/3

I'm using the standard "if(Greenfoot.isKeyDown())" way to get the keyboard input. Do you have a recommendation about a way that might work better? As I said, I'm not noticing this problem when I'm playing it, but I'm not saying it's not happening.
jimbowebjimboweb

2014/2/3

Also, I'm aware of the problem that sometimes you bounce the wrong direction horizontally. It's noted in the comments. I'll fix that pretty soon.
UpupzealotUpupzealot

2014/2/4

x-direction movement should only happen when the player press the key, not always, and the jump speed is too fast. Try to make things smooth. Any way, very good documentation for new leaners! :-D
UpupzealotUpupzealot

2014/2/4

BTW, I love the way you make the scroll endless. Try to make switch of those platforms out of the bound of the world. You can use
UpupzealotUpupzealot

2014/2/4

use"super(int width, int height, int cellsize, boolean bounded);" In your world class's constructor
jimbowebjimboweb

2014/2/4

Thanks Upupzealot! Those are very good suggestions.
danpostdanpost

2014/2/4

As far as the keys, I explained incorrectly. The problem with the feel is that you cannot jump when the 'left' or 'right' key is down. Removing the 'else' before checking if 'isKeyDown("up") should help the feel.
jimbowebjimboweb

2014/2/5

Got it. That goes with Upupzealot's suggestion. I'll put that in the next update.
A new version of this scenario was uploaded on Wed Feb 05 04:02:09 UTC 2014 Took the suggestions of Upupzealot and Danpost. Slower falling and jumping for smoother graphics, changed the keyboard commands so you only move when key is down, and fixed how platforms come on the screen. Video lesson on this begins at http://youtu.be/u0jkOdjFA28
UpupzealotUpupzealot

2014/2/5

Aha, much better. You can build up another scenrio for each step you updated. So those people(mostly new leaners maybe) who fellows your video could figure out how things became better and better.
askgriffaskgriff

2014/2/5

Will you be sharing your code? (Or is the code available in the video lessons description? I'll go check.) :)
jimbowebjimboweb

2014/2/6

Sorry! The code was supposed to be public, but I forgot to check the box. I'll fix it as soon add I get home.
ShamaSenpai_ShamaSenpai_

2014/2/6

IM a little noob how do you add scenarios to the site ?
A new version of this scenario was uploaded on Thu Feb 06 15:48:25 UTC 2014 Sorry, forgot the source code! Here it is. Took the suggestions of Upupzealot and Danpost. Slower falling and jumping for smoother graphics, changed the keyboard commands so you only move when key is down, and fixed how platforms come on the screen. Video lesson on this begins at http://youtu.be/u0jkOdjFA28
jimbowebjimboweb

2014/2/6

ShamaSenpai, you just have to click the 'Share' button on Greenfoot, then choose 'Publish.' Put in your greenfoot account and password and comments, and check the box if you want to share the source code.
A new version of this scenario was uploaded on Fri Feb 07 14:27:24 UTC 2014 Sorry, forgot the source code! Here it is. Took the suggestions of Upupzealot and Danpost. Slower falling and jumping for smoother graphics, changed the keyboard commands so you only move when key is down, and fixed how platforms come on the screen. Video lesson on this begins at http://youtu.be/u0jkOdjFA28
A new version of this scenario was uploaded on Fri Feb 07 14:28:31 UTC 2014 Very minor update to fix a problem where you go off left screen and updated documentation.