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

Report as inappropriate.

Supertux
Supertux presents ...

2008/12/16

Jumping demo

Arrows to move.
Space to jump.
Make your own
game with this
and tell me if
you do.

4313 views / 9 in the last 7 days

Tags: demo

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Tue Dec 16 20:40:18 UTC 2008
qnanqingqnanqing

2008/12/17

its flying instead of jumping :D i think better use getKey() method from the greenfoot class
mjrb4mjrb4

2008/12/17

The jumping action is fairly smooth (not the same speed up then sudden change to same speed down that's often seen!) but as said already - it's a flying penguin, and they shouldn't exist! Or should they? You can also get stuck half way in the bricks if you enter them from the side.
mjrb4mjrb4

2008/12/17

And it seems you can jump through the bottom of floors as well ;)
mikmik

2008/12/17

The flying effect is something that I did as well when I recorded the 'jumping' demo video. You need to add a check so that you only jump when space is pressed *and you are on ground*. (Essentially: you cannot jump more while you're already in the air...)

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

Who likes this?

No votes yet.