Search Unity

How to make an adrenaline meter to execute special moves in unity?

Discussion in 'Scripting' started by dev_harsh25, Sep 21, 2017.

  1. dev_harsh25

    dev_harsh25

    Joined:
    Sep 20, 2017
    Posts:
    8
    Hi! I want to make a secondary meter that will let me add special moves to my game. It will fill up as i defeat more and more enemies. Is it possible to do that? Can anyone help me?
     
  2. dev_harsh25

    dev_harsh25

    Joined:
    Sep 20, 2017
    Posts:
    8
    Or I could make it fill up with collectibles.
     
  3. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
  4. Lethn

    Lethn

    Joined:
    May 18, 2015
    Posts:
    1,583
    It would work the exact same way as a health bar but in reverse whereby you increase the bar rather than decrease it, as for the special abilities themselves, you activate them with an if statement that detects a keypress and so on if your 'adrenaline' integer is high enough. Anything to do with progress bars and so on is purely cosmetic most of the time.