When the cage eats 15 Blaster Bullets, it will remove itself. That works fine. When two cages are removed, I want it to create a new object, but nothing happens. Here is my code
public void tryToEat() { Actor bb1 = getOneIntersectingObject(BlasterBullet.class); if (bb1 !=null) { getWorld().removeObject(bb1); eat(BlasterBullet.class); bb1Eaten++; if (bb1Eaten == 15) { removeObject(); cagesDestroyed++; } if (cagesDestroyed == 2) { createNewTurtleBlaster(); } } }