public int healthPoint;
public void lifePoints(){
Actor player = getOneIntersectingObject(Enemy.class);
if(player != null)
{
healthPoint++;
}
if(damagePoint>=3)
{
GameOverScreen();
}
}
I do not think you are being consistent with the name of your field. I see 'healthPoint' as the name of the field; but I also see 'damagePoint' being used in the code. I think 'hitCount' might be a more appropriate name since hits are what it is counting.