i want to remove brick object that intersecting with the crusher. but my code it's not working. am i doing this wrong?
i'm new on greenfoot and java.
private Actor collide;
public void act()
{
// Add your action code here.
destroy();
}
public void destroy()
{
collide = getOneIntersectingObject(bata.class);
if(collide != null){
getWorld().removeObject(this);
}
}
