I would like to stop the scenario once my Actor eats a specific number of other classes. I've been looking through documentation and I cannot figure this out. Please help.
if (actorsEaten >= 10) Greenfoot.stop();
boolean limitReached = actorsEaten >= 10; if (limitReached) Greenfoot.stop();
boolean limitOneReached = typeOneEaten >= 10; boolean limitTwoReached = typeTwoEaten >= 8; if (limitOneReached && limitTwoReached) Greenfoot.stop();