Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Draw HUD for health for 2 players on screen

Thank you for taking the time to help me! I'm a total beginner and I'm having a ton of trouble with creating the HUD for my game. I can spawn two players, but I cannot get them to each have their own health bar on screen. Ideally I would like to have something like this image: ![alt text][2]

I've created my HUD, HUD interface, character, controller and gamemode. I'm trying to base my blueprints off of the content example, and the local multiplayer live training stream.I'm not quite sure where I'm going wrong, but I think its that when I spawn a player, the HUD isn't hooked up to it. Here is my HUD blueprint:alt text

and here is my game mode:alt text

Product Version: UE 4.15
helpme.png (509.6 kB)
hud.png (143.2 kB)
gamemode.png (332.9 kB)
more ▼

asked Mar 27 '17 at 04:42 AM in Blueprint Scripting

avatar image

1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The HUD is only visible for the controller it is attached to (unless I missed something somewhere)

So ONE way of doing this is to add a Billboard Component to your character, then add a color block sprite (or however you wish it to look) - but it will be a sprite. Scale the initial Billboard/image to your liking, and then just update the scale (X-axis, unless you want to use the Y-axis) based on the remaining health of the character.

more ▼

answered May 27 '18 at 07:42 PM

avatar image

10 1 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question