• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

health bar

  1. Arlan64

    SOLVED Draw multiple progress bars / health bars in a single object

    Hello everyone! I want to create a game progress table with a lot of stats (very detailed lol), and I want to set up for each cell a progress bar according to the number of elements that we would have collected. If on a level I have collected 25 coins out of 50, then the bar will be at 50% and...
  2. JustEnix

    SOLVED HELP, PLEASE! - Increase Max Health With Sprite

    I'm new to game programming, I don't have enough knowledge to do everything I want to do on my own, that's why I need your help, guys. I created a sprite for the player's health, but then I ran into a problem: how am I going to show that player health is growing as he level up and increases his...
  3. Binsk

    Asset - Scripts UBG Simple Health Bars

    Would you like to be able to throw together some health bars as easily as possible? Do you also want flexibility so they can look just like you want as well as documentation to show you how to get there? Well perfect, you found what you needed. Yoyo Marketplace Upset Baby Games Itch.io Store...
  4. R

    GameMaker Health Bar Resets (SOLVED!)

    So if I were to take damage in one room and move to another, I think the create even happens again and the health bar is set back to max. I'm at a loss on how to make sure the game remembers the health bar amount when changing rooms. Can anyone help? Create event on player: //Health hp = 20...
  5. R

    Legacy GM [Solved] Health bar that works with different instances of the same obj?

    So I made a health bar object for the enemies of my project, when the enemy gets hit it creates a health bar in the room and it shows how their health points decrease while receiving damage, checking that info from the create event of the enemy. The problem is that, when I have multiple enemies...
  6. R

    Legacy GM [Solved] Problem with custom Health Bar

    Hello, so I been trying to set a custom health bar that is divided in a border, a green bar (for the life) and a red bar (to be under the green bar when it starts shrinking). I been trying multiple methods but nothing seems to work, right now this is the code I'm using: /// Draw // Draw...
  7. P

    GameMaker 2 Sided Healthbar

    How would I do 2 sided healthbars, like when both of the sides decrease instead of one side.
  8. S

    Legacy GM Zelda-Styled Hearts (Split into quarters)

    GM Version: GMS 1.4 Target Platform: Windows Download: http://www.mediafire.com/file/oaffc8oeo42xahn/Zelda_Style_Hearts_Example.zip/file Links: N/A Summary: This example/tutorial demonstrates how to make a Zelda-themed hearts system. Unlike most examples I've seen online, this one splits the...
  9. T

    GameMaker Need help with a scaling health bar

    Hello guys, im having problems with a scaling/expandable healthbar for my character. Right now, i basically have a working healthbar that starts at 50 for max_hp and hp. hp = 50 max_hp = 50; Here is the code for drawing the healthbar. for (i=0;i<max_hp div 1.2;i++) {...
  10. A

    Health Bar Issues

    Hi guys, first time posting so please excuse me if I'm in the wrong place. Basically, I have a visual enemy hp bar. As the player levels up the enemies scale, and increase their health. Currently this is increasing the width of my hp bar, and for the life of me I cannot figure out how to stop...
  11. D

    GameMaker 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...
  12. D

    How i make enemy health bars

    How i do enemy health bar in top of the enemy in gamemaker studio 2
  13. T

    Design Different Health and Stamina Bars

    There are many different ways to express the player's health and stamina. What I currently have is a simple health and staminabar at the left top corner of the screen. It's boring, but it works. I recently messed up the GUI layers for my game, and instead of fixing them I was thinking of just...
  14. W

    GML Visual Boss Health Bar [Solved]

    I was trying to make a boss health bar but when i add a health bar then the boss disappears and when i add health bar with letters (example : Boss Health : 200) and then it shows just a text and the boss disappears again but when there is no health bar then the boss appears i think i need to do...
  15. Pfap

    [SOLVED] Animated meter

    What's your approach to animating health bars, meters, etc... Without, drawing individual sprites for each position? For instance you have a health bar with 100 points, but the player takes 11 damage. Is there a way to draw it without having a sprite with 100 different states, assuming an...
  16. T

    Leveling System & Custom Health Bars

    First time posting so I'm not 100% sure if this is the right place for it, but I've hit a slight wall on a project I'm working on. I've got a custom Health Bar that was working great with what I had until I added a leveling system. Now it seems like no matter what I try to do, the Health Bar...
  17. S

    GameMaker [SOLVED] Health Bar not showing correct HP

    I set up a health bar to go along with my player's hp (which is 4), but for some reason the health bar image itself is acting as if my player only has 3 hp. I attached an image to showcase the issue. Here is my objGUI's Create Event: // Set Global Variable global.playerhp = 4; And the Draw...
  18. 2

    Health Issues

    Hello! I recently added a health system too my game. But I dont want all enemies too have the same health. But when I add like 50 hp the healthbar looks bad. When I add 1000 health the healthbar dont register when the enemy is damaged. Is there anyone here who knows how too fix it? Best regards...
  19. R

    GameMaker Health bar follow player

    Hi team, I want to have the health bar to follow the player when he moves but I can't get it to work. My camera objecta (oCamera) has: Create event: /// @description update camera // You can write your code in this editor //Camera by default cam = view_camera[0]; follow = oPlayer; view_w_half...
  20. T

    Legacy GM [SOLVED] Drawing custom health bar to screen size problem

    Hey everyone, having a wee bit of a problem drawing my health bar to screen_height. here is the related code: ///obj_health_bar step event gph = global.player_hp; //set to 100 rh = room_height; //currently 144, will resize later, needs to allow for that hpp = //??? ///obj_health_bar draw event...
Top