healthbar

  1. OblivionSkull21

    Help with healthbar depletion (Kingdom Hearts 2 style)

    This question may seem a little confusing so I'm going to try to explain as best as I can. I've started making healthbars for my battle system by using draw_healthbar(). I've got it working fairly well. When the enemy is hit, their health gradually drops like so: However, for stylistic...
  2. Divinik

    GML Make status bar stay the same size?

    I'm a bit of a math dummy, I was wondering if it was possible to make a, for example, health meter stay the same size, even if the character's max health went up?
  3. K

    GMS 2 How do I draw a sprite dependent on a variable?

    I have a variable "energy" and a two sprites, "sprEnergyHalf" and "sprEnergyFull". How do I draw a sort of bar with these sprites? i.e. If "energy" is at 2, draw one sprEnergyFull. If "energy" is at 3, draw one sprEnergyFull and one sprEnergyHalf. If "energy is at 1, draw one sprEnergyHalf. You...
  4. L

    GUI(healthbar) not scaling with zoom (GameMaker 8)

    Hello, I'm using a fairly older version of Game Maker which does not have the GUI draw event included, or any GUI codes by that means. My "GUI" in this case is just a drawn healthbar. My problem is that it's scaling down when there's a zoom-out. Basically, I have two characters in a room...
  5. O

    GMS 2 need help with health bar

    I want to make it so that as hp goes down the health bar gets shorter but when I tried to make that happen it reduced the image from the left and right into the center. Is there a way to anchor the left side of this sprite so the it will reduce from right to left.
  6. Drago the Shinigami

    GMS 2 Healthbar not drawing...

    So, what I'm trying to do is create a "healthbar" that goes across the top of the screen when the player holds the esc button, and when the bar goes all the way across, the game closes. However, when I test it, there is no healthbar until the game actually closes, when it's full. Here's my...
  7. D

    GMS 2 Healthbar behind walls on screen

    So I'm building an engine very close to what VTS Studios has and it's coming along pretty solidly, however my draw_healthbar function for the player returns with some walls obstructing the health bar. So to begin, this is the few pages of code for the level generator that VTS had on his...
  8. Gasil

    (SOLVED)Healthbar with sprites, gradual change?

    Hello, I need a little clever way to do the following: I am using a custom healthbar I drew, using this code: ///The empty representation of the bar, the background. draw_sprite(spr_salud_fondo, 0, view_xport[0], view_yport[0]); ///The actual healthbar. draw_sprite_ext(spr_salud_barra...
  9. G

    Asset - Scripts Health system with hearts!

    Marketplace link. Easily add a heart based health system to your game! Includes: - Health system with hearts. - Health system with health bar. - Health system with text. Features: - Easy to use and modify. - No thousands of scripts! Only three different scripts and objects for each...
  10. C

    Windows When healthbar set in the left corner doesnt work correctly

    So I've recently joined this community and made a post and got help very fast so I have a new question. I have made some healthbar but I dont know what is wrong because the sprite is good, but I want a rectangle on the healthbar that let see losing hp when getting hit. My problem is when I set...
  11. A

    GML Increasing Health without increasing length of bar... [SOLVED]

    So basically, I've been searching around google on how to increase the health value without it increasing the length of the bar.. anyone have a solution? I haven't found anything :/ Help would be appreciated! The code for the health bar: draw_sprite_ext(spr_life2,1,view_xview[0]+54...
  12. X

    i need help with a health bar issue

    Hi all, I'm currently working on a game for my college course, everything seems to be working fine, but the issue is the health bar, when the game starts up the health bar isn't at 100% more like 70% I think it might be a sequence issue but I'm not sure :/ I'll be ever so grateful if someone...
  13. R

    Health(Bar)

    I am trying to implement a health bar into my game that changed depending on health out of 100. I want an enemy to do -25 damage when it collides with the main character but wait for a second or two before doing more damage (I used an alarm here). Obviously when Main character health = 0 restart...
  14. M

    Health Bar difficulties (Solved)

    I've been trying to make a 1945 Health Bar for some time now... With little to no success. It's been centered and I followed the the old tutorials and room size is either the problem or placement... I cannot determine exactly what is the issue, though here is what happens so far. The Object...
  15. S

    Question - Code DnD Draw Healthbar only visible on exit [SOLVED]

    First off, apologies if this should have been posted in the general Programming forum -- the rules for this forum say that questions should be posted here if they pertain to GMS2-specific functionality, and there was no DnD Draw Healthbar function that I was able to find in GM:S 1.4. On to my...
  16. J

    Legacy GM [solved]easier / more compact way for this code?

    greetings one and all. SO I have this code and I know it will work, but I am curious if I am missing an easier or more compact way to do accomplish the task. As it stands I will have to write 100 if statements to account for all the variables possible and that is just a bit excessive imo. I was...
  17. E

    Help with an upgradable Healthbar(Using sprite/objects)

    Hi guys, I'm having trouble figuring out a way to create a custom health bar using spites/objects. In my game, I want the player to start with 8 health pieces, and he can find more health pieces throughout the game to upgrade his maximum health capacity. Basically I want the health system to be...
Top