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"

How to add a Health Bar that follows a 3D object

Hey Guys I'm trying to add a health bar to 3d object moving in 3d space, like the health bar is attached to them at the moment I'm just emitting debug text is that possible? if so, how?

Product Version: Not Selected
more ▼

asked Apr 16 '14 at 08:10 PM in Blueprint Scripting

avatar image

252 19 22 35

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

2 answers: sort voted first

There's an Attach Actor to Actor BluePrint, perhaps you could use it.

Target node would be a reference to Health Bar, and In Parent Actor node would be your 3D object.

more ▼

answered Apr 22 '14 at 03:17 PM

avatar image

1.1k 53 33 90

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

Try this:

  1. Create a simple box/plane representing health bar and attach it to the object as Static Mesh component (make it a child of object's 3d mesh)

  2. Make it always facing to your camera (set rotation based on camera's rotation)

  3. Scale it horizontally by percentage of object's health.

You can try something similar with Billboard components - they're always facing a camera, but i don't know how to scale them yet.

more ▼

answered Apr 22 '14 at 03:27 PM

avatar image

2k 157 153 210

avatar image varomix Apr 22 '14 at 05:38 PM

yeah, facing the camera that might be a solution, I did tried parenting an object but it was rotating and at the time did not think about that, i'll try it, thanks

(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