If I were to make a health bar that updates the amount of health you have left, how do you do it with nifty?
Yes, for an example you could have a look at the progress bar tutorial at http://wiki.jmonkeyengine.org/doku.php/jme3:advanced:loading_screen
I may be completely off here, but:
- For static stuff in GUI, use label, you can change the text dynamically in code
- For health bar that follows an entity in a scene:
- I don’t know how to use Nifty here
- You can make a quad and a control that rotates the quad to face the camera if the camera moves