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

Report as inappropriate.

ShoutToUs
ShoutToUs presents ...

2013/12/13

Platforming Beta

A revision on my old platforming game.

*Now allows for single, controlled jumps instead of charged ones.
*New levels on the way. (they are already in the scenario, but not yet available)
*Pause menu, game timer, and rebindable keys also incoming.

2583 views / 9 in the last 7 days

1 vote | 0 in the last 7 days

Tags: game physics demo platforming hthcv

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

vladdesvladdes

2013/12/13

use two intersecting conditions! also, you can (solution i came up with last week) that if megaman.getY()+megaman.getHeight/2 < than block.getY() && megaman.getY()+megaman.getHeight()/2 > block.getY()-10 then setLoc to getX(), getY()-block.getHeight()/2.. to lazy to write the whole sentence, basicly means if his feed or inside the upper part of the block, he's automaticly placed on the block , looks alot neater, check my platform game, the pitfall clone, the source code for that is in the barry class =)
vladdesvladdes

2013/12/13

feet*
ShoutToUsShoutToUs

2013/12/13

@vladdes Alright, thanks. I'll look into it.

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

Who likes this?

vladdes