So, after you beat the first level, you transition to the next one. But, when this had happened Greenfoot had stopped and wouldn't keep on playing! Can anyone help me?
public class Skythrust extends Actor { /** * Act - do whatever the Skythrust wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { handleMovement(); if(isTouching(Bullet.class)) { Greenfoot.stop(); setImage("G-2.png"); } if(isTouching(Ground.class)) { setImage("Skythrust_2.png"); } } public void handleMovement() { if (Greenfoot.isKeyDown("d")) { setLocation(getX()+4,getY()); } if (Greenfoot.isKeyDown("a")) { setLocation(getX()-4,getY()); } if (Greenfoot.isKeyDown("s")) { setLocation(getX(),getY()+4); } if (Greenfoot.isKeyDown("w")) { setLocation(getX(),getY()-4); } } }
public class Skythrust extends Actor { /** * Act - do whatever the Skythrust wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { handleMovement(); if(isTouching(Bullet.class)) { Greenfoot.stop(); setImage("G-2.png"); } if(isTouching(Ground.class)) { setImage("Skythrust_2.png"); } } public void handleMovement() { if (Greenfoot.isKeyDown("d")) { setLocation(getX()+4,getY()); } if (Greenfoot.isKeyDown("a")) { setLocation(getX()-4,getY()); } if (Greenfoot.isKeyDown("s")) { setLocation(getX(),getY()+4); } if (Greenfoot.isKeyDown("w")) { setLocation(getX(),getY()-4); } } }