Disabling Buttons When Taking Damage?

Discussion in 'Gameplay' started by Zacksimus_Omega, Jun 10, 2019.

  1. Zacksimus_Omega

    Zacksimus_Omega Boxer

    Joined:
    Jun 9, 2019
    Messages:
    1
    Likes Received:
    0
    Hello Boxers !
    Is there anyway to disable character/action buttons when taking damage?
    The issue is that my character has a "taking damage" animation where he falls and stands up again.
    Unfortunately if I press something like the jump/shoot button this will cancel the animation or do an action I do not want (like shooting while on the ground).
    Please help I really need to know how.

    Thanks
     
  2. jiji the cat

    jiji the cat Boxer

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    i am also trying to figure this out, if you have a solution please share.
     
  3. jiji the cat

    jiji the cat Boxer

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    i have the same issue, if anyone has a solution please share
     
  4. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    184
    Likes Received:
    84
    For buildbox 2 or For buildbox 3 ?
     
  5. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    604
    Likes Received:
    360
    Hey there, can you share your nodemap so I can see what's the logic behind this?

    To be clear the idea is to disable the update / signal functions while the death animation is played and re-enable them when that gets completed. I did not see any buildbox template that does that but that does not mean it can't be achievable
     
  6. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    The easiest way would be to add event observer that points to new UI without button.
     
  7. jiji the cat

    jiji the cat Boxer

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    Attached is the node map for the character. I am using BB 3.2.3 Smart Penguins custom health nodes.
    [​IMG]
    [​IMG][/URL][/IMG] [​IMG]
     
    Last edited: Jul 14, 2020
  8. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    604
    Likes Received:
    360
    ok so, from the Health / Damaged output to your UI buttons you need to create a connection so do something like this

    Damaged -> Signal Invert -> Jump, left, right UI buttons
    Damaged -> delay node (0.5) -> jump, left right UI buttons

    this will ensure you that you won';t be able to tap the UI buttons for at least .5 seconds after you get damage. The keys will work with no issues
     
    jiji the cat likes this.
  9. jiji the cat

    jiji the cat Boxer

    Joined:
    Feb 5, 2017
    Messages:
    5
    Likes Received:
    1
    that seems to work. Thank you very much
     
    Vlad-NY likes this.

Share This Page