I have a problem with a VisibilityState code, and I'm sure it may just be a minor thing I've overlooked or haven't understood that makes this not working correctly.
Here's what I'm trying to do: the actor have three lives, and it shows as hearts in the top corner, divided in three images: one showing one heart, second showing two, third showing three. When the actor, who begins with three hearts and three lives lose one life, the image with three hearts is disabled with a Visibilitystate action, the same goes for the other images. This works fine. But when I try to give the actor extra lives (by picking up a life item for example), the actor does get an extra life, but I can, for some reason, not make it work so the heart images are turned visible again. Like, if actor has only 2 lives now, picks up a life, he have three lives, which should enable the image with three hearts on it.
In short: I can use the VisibilityState to make the images turn invisible, but not making them appear again.
Here's the code I use for each of the three images:
if (health < 3)VisibilityState("Event Actor", DISABLE);
if (health < 2)VisibilityState("Event Actor", DISABLE);
if (health < 1)VisibilityState("Event Actor", DISABLE);
Which works fine, when the actor lose the first life the image with three hearts disappears leaving to hearts left, when the actor lose the second the image with the two hearts disappears leaving one heart left, etc.
But how to make them appear again? Say, if actor's health is 2, and gets one life, how to make the image with three lives visible again? I've tried several codes but each have failed.
Big thanks in advance for any help you can offer me