How can I display the current health of a Player in Hearts, This is what I have, but it's not changing
My Heart class is just an Image.
for(int y = 0; y < health; y++) getWorld().addObject(new Heart(), 10+(y*10),390);