Its quite simple actually.
In Alice, add 3D text (at the end of the object gallery).
Position it very close to the camera and resize it to fit.
In its properties you can modify extrusion so it looks nice.
You may want to set its shading style to "none", so it is not affected by lighting levels. This will cause issues with colour, but you can use coloured texture images.
Then for its code, when HP is a global variable, you can add a "When a variable changes" event.
Have this event change the 3D text's text.
For the text, under world functions you will find "[what] as a string" and "int [a] as a string", you would want the event to look like this:
Code:
When (world.HP) changes, do ( [hp display text] set text to ( ( int (world.HP) as a string ) as a string) )
Notice that you need to insert the "int a as a string" into the "what as a string"
To codify this:
Code:
world.HP.onChange = {
world.hpDisplay.setText(
string( int( world.HP ) ) );
}
If that helps explain it better.
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬