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"

Healthbar not working

I'm trying to get a regular health bar with the colour fill indicating the player's health but it just stays grey. Not even sure if it's working. Here's some screenshots: http://imgur.com/a/nG7yw http://imgur.com/a/U2bBf http://imgur.com/a/wOWtO http://imgur.com/a/SrtDw http://imgur.com/a/Y3aZ0

Here's the tutorial I've been trying to follow: https://www.youtube.com/watch?v=vdHV6AGH3Y0

Could anyone help me as to what is wrong or what I need to add? Thanks!

Product Version: UE 4.15
more ▼

asked Apr 16 '17 at 11:56 PM in Blueprint Scripting

avatar image

28 2 5 6

avatar image vanlacke Apr 17 '17 at 01:24 AM

Is your HP variables set to 0?

avatar image IGN1T3 Apr 17 '17 at 03:55 AM

http://imgur.com/a/lxnyw No I tried 10 and 0.5

avatar image vanlacke Apr 17 '17 at 04:08 AM

Instead of setting the player reference on construct, try casting to the player and getting the HP variable inside the Get Health Percent

avatar image IGN1T3 Apr 17 '17 at 04:23 AM

I'm not really sure what you mean, sorry I'm extremely new to Unreal Engine 4 and game developing in general

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

0 answers: sort voted first
Be the first one to answer this question
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