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

Comments for Platforming

Return to Platforming

SPowerSPower

2012/2/19

Great!! Work super well: you did a great job!
SPowerSPower

2012/2/19

workS: sorry, I typed something wrong :-)
DutaDuta

2012/2/19

Very nice engine - Only issue being that there is a bug which is when you hit a block sometimes you die. Overall though, very nice work (I liked the transition after you die especially)
stevenGrohestevenGrohe

2012/2/19

thank you guys ! :)
A new version of this scenario was uploaded on Mon Mar 19 20:06:29 UTC 2012 bugs with collision
A new version of this scenario was uploaded on Mon Mar 19 20:07:25 UTC 2012 start at level 1
darkmist255darkmist255

2012/3/19

The level with the one way walls that you have to wall-jump is insane :D! Love it!
I really like the transitions between levels, I am trying to do something similar, would you mind posting the code so see how you did it?
stevenGrohestevenGrohe

2012/6/26

I donĀ“t really know whether you mean this, but I think so: import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) public class NextLevel extends HUD { public int alpha; private int fadeKind; private int fadeSpeed = 4; public boolean active = true; public int xAdd; public int yAdd; private Level lv; public NextLevel() { fadeKind = 0; //0 = fade out, 1 = fade in alpha = 0; getImage().setTransparency(alpha); xAdd = 320; yAdd = 240; lv = (Level)getWorld(); } public void act() { getImage().setTransparency(alpha); if (fadeKind == 0) { if ((alpha + fadeSpeed) <= 255) { alpha += fadeSpeed; } else { fadeKind = 1; alpha = 255; lv.finished = false; CONSTS.nextLevel(); lv.mustRestart = true; } } else { if ((alpha - fadeSpeed) >= 0) { alpha -= fadeSpeed; } else { alpha = 0; if (CONSTS.current_level != CONSTS.level_amount) lv.running = true; getWorld().removeObject(this); } } setLocation((int)View.get_x()+xAdd,(int)View.get_x()+yAdd); } public int getAlpha() { return alpha; } public int getx() { return xAdd; } public int gety() { return yAdd; } public void setState(int st) { fadeKind = st; } }
Yeah, thanks :D
DonaldDuckDonaldDuck

2012/6/30

Your collision detection is much better than mine... Care to share the source-code?
stevenGrohestevenGrohe

2012/7/1

how can I share the source code?
erdelferdelf

2012/7/1

When you publish the scenario, under the own Webpage field there is a checkbox.
A new version of this scenario was uploaded on Mon Jul 02 15:04:48 UTC 2012 source code available
hookedup_13hookedup_13

2013/4/26

Would you mind sharing the code for the double jump? Thanks in advance!!! :)