Empty Healthbar within Bossfight
Empty Healthbar within Bossfight
Why is the usually red healthbar empty (black) when starting a bossfight i created like shown in the tutorial ? there is no effect to the bar when i change the health of my monster.
- Zo Kath Ra
- Posts: 940
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: Empty Healthbar within Bossfight
At the start of a boss fight in LoG2, the bar goes from black (empty) to red (full) in a second or so.Fantastic wrote:Why is the usually red healthbar empty (black) when starting a bossfight i created like shown in the tutorial ? there is no effect to the bar when i change the health of my monster.
Maybe there's a function you need to call that makes this happen.
Re: Empty Healthbar within Bossfight
No, the bar does not get red. Whats the commando to fill it ?
Re: Empty Healthbar within Bossfight
Did you use addMonster() before activating the fight?
Re: Empty Healthbar within Bossfight
Yes:
function startMedusaBossFight()
boss_fight_medusa.bossfight:addMonster(forest_ogre_1.monster)
boss_fight_medusa.bossfight:activate()
end
function startMedusaBossFight()
boss_fight_medusa.bossfight:addMonster(forest_ogre_1.monster)
boss_fight_medusa.bossfight:activate()
end
-
- Posts: 168
- Joined: Thu Oct 30, 2014 1:56 am
Re: Empty Healthbar within Bossfight
The default HP of the monster determines how large the red bar is. the ogre's default HP is 1,000 so if you set his HP much lower, it won't start with a full bar.
Re: Empty Healthbar within Bossfight
How are you triggering the fight? What connectors are you using?
Re: Empty Healthbar within Bossfight
Got it. Forgot to connect the pressure plate with boss icon AND lua icon :/ so that was the reason why the boss fight did start - but without a red healthbar. nice to know. in germany we say : aus fehlern lernt man
(make mistakes - then u will learn to do it right)
