How Can I Add A Object To Increase Health By 1 Every Time I Hit?

Discussion in 'How Can I...?' started by johnvs, Oct 28, 2017.

  1. johnvs

    johnvs Boxer

    Joined:
    Aug 25, 2017
    Messages:
    19
    Likes Received:
    1
    I tried to add a damage as -1 but it didn't work.
     
  2. giancir

    giancir Boxer

    Joined:
    Oct 26, 2017
    Messages:
    9
    Likes Received:
    1
    Hello dear, I'm working on it right now. If you are using the system of healthbar the one which you don't need to care about HEALTH but about POINTS, so you can create an object that give you "-1 POINT" and it works fine for me. To do it, search on youtube "BUILDBOX HEALTHBAR" and follow the OFFICIAL tutorial made by Zak. You will be able to work well with Health as it happeaned to me.
     
    johnvs likes this.
  3. johnvs

    johnvs Boxer

    Joined:
    Aug 25, 2017
    Messages:
    19
    Likes Received:
    1
    Then how can i create a action that always gives -1 point whenever i land on it? The action should not vanish after i take it.
     
    Last edited: Oct 29, 2017
  4. giancir

    giancir Boxer

    Joined:
    Oct 26, 2017
    Messages:
    9
    Likes Received:
    1
    Create an action, choose type of action "NONE" or "COIN", then set as following:
    REWARD COIN: 0
    UNFLAG SHOIN COIN REWARD
    REWARD POINTS: -1
    SHOW POINTS REWARD: UNFLAG(or keep, up to you)
    DURATION: 0

    Then edit the collision shape.
    Hope it help.
     
  5. johnvs

    johnvs Boxer

    Joined:
    Aug 25, 2017
    Messages:
    19
    Likes Received:
    1
    What you gave works for one -1 point, but every time i hit the same enemy it should reduce -1 point. I mean the action should not vanish once i take it.
     
  6. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    You’ll have to have an Object spawner that spawns an Action ever X seconds.

    Then position it in the most optimal position so your character can collect it.

    If you search the forum, this topic has been covered before. One even had a BBDoc template to show you.
     

Share This Page