ok, done, now mover cant find lives for fragment collision for the spirit class
updated health code
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Lives here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Health extends Actor
{
public int lives=1;
/**
* Act - do whatever the Lives wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
if (lives==1)
{
setImage("Lives1.png");
}
if(lives==2)
{
setImage("Lives2.png");
}
if(lives==3)
{
setImage("Lives3.png");
}
}
public int getlives()
{
return lives;
}//gets the score
}
