speed = Speed,
vSpeed = vertical Speed
gSpeed = acceleration of the Copter while flying up or falling down ^^
jSpeed = "Jump" Speed, its just like vSpeed, but it takes you up
Keep going with it! :) I'm sure you'll make a good - even better - job of it, than I did with my hastily shoved together scenario. As I've just finished a big batch of homework I have a few minutes so I'll start coding the new speed system now
so I made this code (yInc and boost are double's, and initialized to 0)
yInc += 0.3; //Gravity
if(Greenfoot.isKeyDown("space"))
{
yInc -= boost;
boost *= 0.97;
}
else
boost = 1.0; //Initial boost.
setLocation(getX(), getY() + (int)Math.round(yInc));
Its playing a bit too sluggishly at the moment... I'll keep experimenting :P
2012/3/3
2012/3/3
2012/3/4
2012/3/6
2012/3/6
2012/3/6
2012/3/6
2012/3/6
2012/3/7
2012/3/7
2012/3/7
2012/3/7
2012/3/9