Any idea why my "You Lost" screen is not working?
In MyWorld class:
YouLost Class:
public void act()
{
this.showText("Punkte: " + DonkeyKong.score, 50, 10);
this.lost();
}
public void lost()
{
YouLost youlost = new YouLost();
if (!getObjects(DonkeyKong.class).isEmpty())
{
this.addObject(youlost, this.getWidth()/2, this.getHeight()/2);
}
}public void act()
{
setImage(new GreenfootImage("You Lost!!! ", 60, Color.WHITE, Color.BLACK));
}


