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.
1 2 3 4 | public GameOver() { setImage( new GreenfootImage( "Game Over" , 48 , Color.WHITE, Color.BLACK)); } |
1 2 3 4 | if (getObjects(CrabMovement. class ).isEmpty()) { addObject (GameOver); } |