I have an actor "GameOver" with the code to display the text:
I don't know how to add it after a character dies.
It says "cannot find symbol - variable GameOver". What do I have to do? I'm really new to Greenfoot.
Thanks in advance.
public GameOver() { setImage(new GreenfootImage("Game Over", 48, Color.WHITE, Color.BLACK)); }
if (getObjects(CrabMovement.class).isEmpty()) { addObject (GameOver); }