I have made a game where there is a blue car and a bus the blue car needs to escape the bus but i need a timer so that when it runs out if the blue car is still alive the game ends and blue wins
That what i have for the timer but its not working
private int timer = 60;
if (timer>0)
{
timer--;
if(timer == 0) Greenfoot.stop();
}
