Hi!
I am having a little problem with this code:
public void loseLife()
{
if (????????????())
{
setLocation (300,200);
lives = lives -1;
// need line here to remove one of the blue dots that represent lives
removeObject(Heart.class);
if (lives == 0)
{
Greenfoot.stop();
}
}
}
Where the following question mark is, is where I need help.. There are 4 various other actors trying to eat my actor (Mouse2) those following are: Cactus, Rock, Catspawner, and Bullet. Can any of you help me find a code to remove a life once my actor gets eaten by one of these objects? Maybe this is the wrong code?
Thanks!

