but can i get it to stop playing the same way


private int leafCount = 0;
Actor leaf = getOneIntersectingObject(Leaf.class);
if (leaf != null) { }
getWorld().removeObject(this); leafCount++;
if (leafCount == 8) { }
getWorld().removeObject(this);
getWorld().removeObject(leaf);
getWorld().removeObject(this);
getWorld().removeObject(leaf);