So basically, when I move the speed bar, it affects how fast the time counts down. how can i fix this?
my timer code:
int timeleft = 60;
private int timer = 3600;
public void act()
{
if (timer>0)
{
timer--;
if (timer % 60 == 0)
{
timeleft--;;
}
}
if(timer == 0)
{
Greenfoot.stop();
}
showText (timeleft + "", 500, 344);
}
