NipponUnderworld : Boss energy bar.
Today I’ve implemented the energy bar for the bosses or subboses of the game.
Of course, all graphics are placeholders.
Subboss and boss bars are shown at the end of a cinematic/dialog sequence. At the end of the script we say we want to play the animation ShowBossHUD, and if the animation is present it is executed.
Energy is setup using messages. Every time the boss entity receives and impact, it sends a message saying: “Hey my energy is X”.
The GameFlow receives such message, and sets the HUD accordingly. That easy.
In the other hand, I’ve made the Horse subboss really big. Using the scale of the visual component. It had some bugs, but finally everything seems it’s working perfectly.