Health Bar attach to my Actor

How do I attach my health bar to my character?
Because the tutorial i watche showed me how to make the health bar but not attach it to my actor, so that when it moves they move together..
I've tried control camera and that doesn't work-

Comments

  • KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291

    @tahlia.kwan@sydstu.catholic.edu.au said:
    How do I attach my health bar to my character?
    Because the tutorial i watche showed me how to make the health bar but not attach it to my actor, so that when it moves they move together..
    I've tried control camera and that doesn't work-

    Try constraining the health bar to the characters x and y

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Here is one way. Uses the Constraining method @KillerPenguinStudios mentions.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    I have a health bar demo in the Spare Code thread that does just this. If you can't find it let me know and I can provide you with the link.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    And an even simpler (albeit limited) method is to use Display Text with emoji (copied and pasted from http://getemoji.com). See attached.

  • pregespreges Member Posts: 3

    I might be giving you information that you already have, but I might also be saving you the headaches I had...

    If you use the "Constrain Attribute" method, when entering the formula of the constraint, you cannot simply type in the address (i.e. self.Position.X). You must make a selection using the dropdown arrow offered. This simple error cost me a couple of hours and much consternation. (Yes I am used to writing all my code and am suffering through a learning curve with these incredibly user-friendly visual interface programs.)

    Hope this insight helps someone...

Sign In or Register to comment.