Hi,
I am trying to make a game, where the crab has to eat the worms, I succeeded in making the crab eat the worms, but i want that the worms respawn random in the map after they have been eaten. Anyone who can help me?
Thanks


//at the end of your eat crab method; getWorld().addObject(new Worm(), Greenfoot.getRandomNumber(getWorld().getWidth()), Greenfoot.getRandomNumber(getWorld().getHeight()));