Hi.
I tried this code and i want the "Mauer.class" to dissapear, but when i run the code, only the "Bär.class" gets deleted
This code is in the "Bär" class
public void sterben(){
if(getOneIntersectingObject(Mauer.class) != null){
getWorld().setBackground("images/over.png");
getWorld().removeObjects(getWorld().getObjects(Bär.class));
getWorld().removeObjects(getWorld().getObjects(Mauer.class));
}
}
