this is my result but i get an error 'this is not an statement' at 'timeDelay == 0; '
public void act() { if (getObjects(Schip.class).isEmpty()) { if (shipsRemaining == 0) Greenfoot.stop(); else spawnRandomSchip(); } private void runTimer() { int timeDelay; if (timeDelay > 50) { timeDelay == 0; } int gameTime; timeText.setImage(new GreenfootImage("Time: "+gameTime, 16, java.awt.Color.black, null)); if (gameTime == 60) { Greenfoot.stop(); } } }