I'm trying to create individual health bars for a family of enemies.
I've got them working all right, besides one occurring problem:
The black background element of the health bar keeps appearing to the
top left corner of the game, whenever there's no enemies on screen.
i think I've tried everything (even covering it up with UI-element
(witch caused health bars to act very buggy) , and I can't get it fixed.
Here's a link to my game: http://www.frogonfly.fi/c2/games/100skulls/
and here's what my code looks like:
I wonder is this a bug, how can I fix this?
Thanks in advance, any help is highly appreciated.