When I hit my enemy it set a dead image, how can I make it so that when the dead image is set the player class can't die when it touches it.
enemy kills = (enemy) getOneIntersectingObject(enemy.class); if (kills.enemyKills == true) // the code that kills me
public static boolean enemyKills = true;
if // I have code so when the enemy is dead
enemyKills = false;
else
enemyKills = true;
public static boolean getenemyKills()
{
return enemyKills;
}