Fun game! I tried multiple times to reach the elevator unsuccessfully. Perhaps you could add a function to "boost" speed temporarily.
for instance you could set the move() method to use a variable for speed so....
private int speed = 5;
public void act()
{
move(speed);
boost();
}
public void boost()
{
if (Greenfoot.isKeyDown("space"))
{
speed = speed +3;
}
else
{
speed = 5;
}
}
Then if you wanted to make it so the player could use it a limited amount you could set up a system of static variables. Not 100 percent sure that code works properly.
2014/10/2