quick and easy solution to get the healthbar in the foreground, make a new object.
the draw event is tied to an object's depth, and so if one object draws a healthbar, its depth can't be changed.
here's the code from the new object, and it's depth is at like -1000000000 so it's way up front.
not in front of the rain though.
nothing's in front of the rain.
i think i can fix that by doing something similar to what i just did.
also, the healthbar is dynamic and changes depending on if the game is paused.
here it is in the character ui.
and it totally works.
tomorrow i'll be sketching up some enemies, maybe some fight animations, and after that i'll be working on level 1.
like an actual level 1.
i'm picking up momentum again.
...
actually before combat stuff i'll just be polishing up the healthbar.
no biggy.
and i'm still learning about the importance of ui placement and such.
No comments:
Post a Comment