I am trying to run the code breaker with my students and I am finding Greenfoot very difficult.
I have this piece of code:
public void act()
{
// Add your action code here.
if (Greenfoot.isKeyDown("up"));
{
move(5);
}
if (Greenfoot.isKeyDown("down"));
{
move(-5);
}
}
in the Ship class but it does not work. It compiles. Just does nothing. I am finding it difficult to promote greenfoot in my school when so many things don't work. It has taken about three sessions just to get the latest version to compile. This is basic code and I can't find any help for it at all.
Sophie Baker