how to make timer such that every time it reaches a new level, the timer resets??
int timer
public void act()
{
timer++;
//shows the timer:
getWorld().showText(„“+timer,100,50);
}public world()
//instead of world, it‘s named
//like your world-class
{
//this alteady exists in your editor
}