This is the code that I have but there is an red squear on game over
if the time is op I need to be game over because than I go to the hiscore but what need I to change plz help
import greenfoot.*; public class TimeChecker extends Actor { long initialTime; public TimeChecker() { initialTime = System.currentTimeMillis(); } public void act() { if(System.currentTimeMillis() > initialTime + 60000) gameOver(); Greenfoot.stop(); } }