Hi! How can I access a property of my world in one of my actors. I'm trying to make a Retry button and I want to check for each level if it's active through a boolean "active". Here's what I tried so far:
Lume is the first level and it has a method isActive which returns whether it's active or not.
public class retryButton extends Buttons
{
public void act()
{
if(Lume.isActive())Greenfoot.setWorld(new Lume());
}
}public boolean isActive()
{
return active;
}
