hello.
i want to use timer to end the games.
anyone know?
private int timer=0;
public void act(){
addTimer();
if (timer == (insert end time here)){
Greenfoot.Stop();
}
}
private void addTimer(){
timer++;
}