Health Bar for a boss (using the GS Cookbook) HELP
Hey guys, I have followed the GS cookbook on youtube and I am having problems getting a health bar made for a boss. I can make the health bar work fine if he only took 10 hits, but then its over in like 2 seconds. I was looking for the boss to take somewhere between 200 and 300 hits(its a very fast gun). I tried making the bullet hit for less, and I tried increasing the health. When I made the bullets hit for less than -1 heath... like -0.5 or -0.2 it did not register. And when I increase the health and the other perimeters so that the bar doesn't get huge the boss will drop to about 25% and then the rest of the health will not drop.
I guess my main question is how do I make Tshirtbooths health bar tutorial use more health than 10 health? Any help would be amazing. thanks guys.
I guess my main question is how do I make Tshirtbooths health bar tutorial use more health than 10 health? Any help would be amazing. thanks guys.
Comments
The bar's odd changes when you increase health sound like a error in how you've written the rules. Please post the rules you've used.
How its set up:
Game Attribute is
Health 30 type: real
On the health bar actor
Constrain attribute: self.size.width to game.health
Constrain attribute: self.position.X to 180+(self.size.width /2)
Actor being hit:
Change attribute: game.health to game.health -1
Any help would be greatly appreciated I'm so close to having my first game finished and this is hampering my efforts :P
Thanks guys