Hello fellows in need to make a timer to switch worlds because I'm not sure how to do it
public (insert world name here)
{
super(int, int, int);
timer.mark();
if (timer.millisElapsed = (insert time in milliseconds here))
{
setWorld(insert other world name here);
}
}private int timer = 0;
public void act()
{
timer++;
if (timer == 1650) Greenfoot.setWorld(new NewWorldClassName());
}