I am currently working on a 2D space game and I would like to have an option to click on an NPC or other player to select them as my target (only 1 target at the time, of course). These targets, when selected by mouse click, will also show me their HP bar.
So the question is: how to make it work this way? I think that texture button without any texture is going to be OK for the target to be clickable/selected, but how to then get their own HP bar from their own HUD?
Thank you in advance! :-)