Hi,
is there a destructor in Greenfoot?
If not, I'd like to write a method which is called only then, when my actor dies. How is that possible?


if (getWorld() == null)
if (getWorld() == null) { life--; reanimation(); } //In reanimation it says: Greenfoot.setWorld(new Level1(this, level));