so like you told me i included the following into my code to remove an object.
public void act() {
if (Greenfoot.isKeyDown("space")) {
getWorld().removeObjects(getIntersectingObjects(Object.class));
i have just written the code to make a new, same object spawn into the world. but for that i need the boolean instruction that checks whether the object is removed or not.
can someone write the boolean instruction that checks if the object has been removed or give me some tips?