I am trying to make it where when a "Spider" eats a "Bee" the bee is deleted and then respawned at a precise location on the map. what I have right now only made it where the "Spider" spawns in the location. also, I am trying to make it where once the Bee has no more lives the game ends.
here is the code
if(isTouching(Bee.class))
{
Bee.setLocation(20,20);
lives--;
Greenfoot.playSound("uDie.wav");
if(lives==0)
{
Greenfoot.stop();
}
}


