Health Bar Tutorial Coming Soon!

Discussion in 'Gameplay' started by VectologyGames, Jun 18, 2016.

  1. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    I know but if you are old enough you can remember reprogramming EGA/VGA characters to look fancy or just use box drawing or other extended ASCII characters to do cool stuff on the text display. Good ol' days and your trick helped me to remember those times
     
  2. yenomeerf

    yenomeerf Boxer

    Joined:
    Oct 8, 2015
    Messages:
    90
    Likes Received:
    32
    how do you get to a green / red health bar from a font of -1 /+1 value?
     
  3. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    The font has "bars" instead of "digits" in it. So when health is 1 the character that would normally a "1" looking character is just a smaller "bar" but number 9 is much longer one (instead of the "9" looking character). So you display coins, 9 coin will look like full bar while 1 coin very small. Does it make sense?
     
    Last edited: Jul 9, 2016
  4. yenomeerf

    yenomeerf Boxer

    Joined:
    Oct 8, 2015
    Messages:
    90
    Likes Received:
    32
    Yes. :)
     
  5. GeekGamer94

    GeekGamer94 Boxer

    Joined:
    Apr 20, 2016
    Messages:
    86
    Likes Received:
    38
  6. GeekGamer94

    GeekGamer94 Boxer

    Joined:
    Apr 20, 2016
    Messages:
    86
    Likes Received:
    38
    @VectologyGames any idea on how to make character die , if you got that health bar of coins :D zero ? -_-
     
  7. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    the enemies give you coins, the health packs are -1 coins, and the health bar in my video reached nine, then an event observer saw nine coins and triggered game over... so backwards than what you are thinking...
     
    hendrixsan likes this.
  8. GeekGamer94

    GeekGamer94 Boxer

    Joined:
    Apr 20, 2016
    Messages:
    86
    Likes Received:
    38
    @heathclose thanks mate ! and btw i just have to create a ttf with my health bar designs right ? like i want a same health bar as shown above by vectology in video , i need to give at value 1 the empty health bar and at value 10 the image of full health bar in my ttf right ?
     
  9. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    as far as I understand, yes, @VectologyGames may have more to add, but I think he made 0 full, and 9 almost dead, there wouldn't be a 10
     
    GeekGamer94 likes this.
  10. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    The great thing is, since it is a font you even can change the color of the health bar within Buildbox, put a shadow, a gradient... Very cool.
     
    GeekGamer94 likes this.
  11. VectologyGames

    VectologyGames Serious Boxer

    Joined:
    Oct 5, 2015
    Messages:
    529
    Likes Received:
    473
    Yes, correct! Also @heathclose I did not forget!
     
    heathclose likes this.
  12. GeekGamer94

    GeekGamer94 Boxer

    Joined:
    Apr 20, 2016
    Messages:
    86
    Likes Received:
    38
    @heathclose finally made it with a ttf <3 basically design your whole idea of health bar in a TTF file ;) amazing !
     
  13. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    I appreciate that but the credit really goes to @VectologyGames for the brilliant idea, I was just able to reproduce it and post a bbdoc for it...
     
    activeone and Christoph like this.
  14. carlosabreu1981

    carlosabreu1981 Boxer

    Joined:
    Jan 13, 2016
    Messages:
    92
    Likes Received:
    38
    here's the font,
    the uploaded in the demo was not working for me.
     

    Attached Files:

    epimazzo likes this.
  15. quedanimations

    quedanimations Boxer

    Joined:
    Oct 10, 2015
    Messages:
    2
    Likes Received:
    0
    Here is the issue that I have with this method. I placed an action behind all enemies and yes, it will affect the health, but the problem is that now I can not use advance moves because when I do the enemy is killed but because the power-up is still behind the enemy, I still take damage.
     
  16. Pixelateddaddy

    Pixelateddaddy Boxer

    Joined:
    Jun 15, 2016
    Messages:
    42
    Likes Received:
    6
    I'll pay someone to post a tutorial showing how to have a health bar in the top left corner
     
  17. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    Just move the label in the world ui... Use my bbdoc above...
     
  18. Pixelateddaddy

    Pixelateddaddy Boxer

    Joined:
    Jun 15, 2016
    Messages:
    42
    Likes Received:
    6
    This is a new guy question but...I've never done anything with another person's bdoc so what do I just download it and then open it to see how you did it?
     
  19. JoeWilson

    JoeWilson Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    171
    Likes Received:
    65
    This is great stuff thanks @VectologyGames ... has anyone gotten something similar for enemy health bars. I've seen one way that involves connecting transparent objects that are then connected to health bar pieces... but there really seems like there is a better way.
     
  20. khalid

    khalid Avid Boxer

    Joined:
    Feb 17, 2016
    Messages:
    343
    Likes Received:
    67
    I've tried the font files in this post all of them are showing numbers
    I've tried the font files in this post all of them are showing numbers not a bar!!

    Also How to make colored?
     

Share This Page