R
Ryan Leithall
Guest
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 level. I have displayed a healthbar but it doesn't move, however, I think this is to do with the health and collision (maybe alarm) because the main character seems dies straight away (after first collision) when it is supposed to take a few hit?
Not sure if I have given all the information needed sorry. Haha, I am confused and am not 100% where the problem lies. Feel free to ask me any questions I am active for a while. Thanks in advance.
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 level. I have displayed a healthbar but it doesn't move, however, I think this is to do with the health and collision (maybe alarm) because the main character seems dies straight away (after first collision) when it is supposed to take a few hit?
Not sure if I have given all the information needed sorry. Haha, I am confused and am not 100% where the problem lies. Feel free to ask me any questions I am active for a while. Thanks in advance.