Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Problem with "Low HP"

Hi,
I have Mr.Mo ABS v.4.5. When I have low HP there is a "skull" icon. But i want to do the skull is appearing when I have for example 10-15 % of HP . I don't want regular numbers. I started my game from only 100 HP and skull is visible a whole time..I'v found this code (in Mr.Mo HUD) but i don't know what can I change it. Anybody help?
Code:
#--------------------------------------------------------------------------

LOW_HP = 150          # What HP should the low HP icon be shown?

Sry, for my english;p
 

Atoa

Member

If i'm not wrong, the value is a %, not an fixed value.

So if you put an value like 150 (wich is higher than the max HP) the icon will always be shown.
So if you want 15%, the value must be 15.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top