I am trying to figure out a way to get my button to restart a game. The code is there but its like greenfoot doesn't know its there. Can you guys help me out?
public void gameOver() { isOver = true; removeObjects(getObjects(Actor.class)); setBackground("Game Ending Image.png"); addObject(stbutton, 417,370); // if (state==Gamestate.OVER) { checkbutton(); // removeObjects(getObjects(Actor.class)); } }