using tables to create health bars

digitalzerodigitalzero Member, BASIC Posts: 639

So i am using @jamie_c awesome tutorial on using replicate behavior to have a health bar... Only thing is that i want to be able to take away from the table when the boss gets hit with a gun for instance... I know how to do this using attributes but I'm a novice with tables... With attributes it looks like this

If actor overlaps or collides with shot change attribute game.boss health to game.boss health -1...

I hope i amexplaining this correctly... I just don't want to have to save every attribute doing it my old method

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Use the Change Table Behavior. You plug in the row and column and then subtracts from that value.

  • colandercolander Member Posts: 1,610
    edited March 2015

    Another member posted (I can't remember where) if you spawn the health bar either in front of or behind the actor (I can't remember which) you can use the same game level attribute to constrain x and y positions of the health bars for all actors and they work independently.

    No one knows why you can do this in Creator and I don't know if it can still be done. Try it and see if it still works. It is much better than tables because there is no lag.

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

    @Braydon_SFX i can't figure out how to do it... It gives me the value but if i put -1 then i don't want it to go towards tthat.. If the health was 20 i want It to be 19

  • mc99093mc99093 Member, PRO Posts: 133

    here you go

  • digitalzerodigitalzero Member, BASIC Posts: 639

    Thanks so much!!!!!!!!!!!!!!

  • mc99093mc99093 Member, PRO Posts: 133

    Glad to help ;)

Sign In or Register to comment.