Hi, I've recently been making a game and im creating a health bar for the enemy boss, that is composed of 20 hearts. However, I have no idea on how to remove these hearts 1 by 1, as one attack only does 1 heart of damage. I've made the hearts in my world class with a for loop. If anyone could help that'd be great
How I've made the hearts:
for(int i = 1; i<11; i++)
{
BossHealth heart = new BossHealth();
addObject(heart, 455 + (i * 50), 55);
}
for(int i = 1; i<11; i++)
{
BossHealth heart2 = new BossHealth();
addObject(heart2, 455 + (i * 50), 100);
}

