danpost wrote...
Okay. Change your Replay codes (what is shown above) to this:
public class Replay extends Actor
{
public void act()
{
if (Greenfoot.mouseClicked(this)) {
Gameover goWorld = (Gameover) getWorld();
counter counter = goWorld .getCounter();
Greenfoot.setWorld(new CalamityBeginning(counter.returnCount()));
}
}
}public class BacktoCal extends Actor
{
private counter theCounter;
public void act()
{
if (Greenfoot.mouseClicked(this)) {
CreditsScreen goWorld = (CreditsScreen) getWorld();
counter counter = goWorld .getCounter();
Greenfoot.setWorld(new CalamityBeginning(counter.returnCount()));
}
}
//v
}