Health in HUD for the player

How do I make a text that says player health?
(Also I would appreciate if you put how to heal/damage it).

I strongly recommend checking out the examples built into the engine, all of which are also available here:

There’s quite a few dealing with health, including a health bar and numbers.

1 Like

Hi you can do something like this
This is for set up the player hp and max hp so later you can display something like 100/100 or 30/100 if the player was damaged

When you need to damage the player
Something like this or any method you like to decrease the scene variable gs_player_hp

To display always the HP of the player on screen
Add a text object to display the HP/MAXHP, this text object must be added to your HUD or UI layer