Make the following changes to the health icons system:
Instead of manually cropping health icons, load icons using a spritesheet. This will require that spritesheets be created for each existing character (which shouldn't be hard since the defaults are all the same size).
When switching between idle (player at in between health), winning (player at high health), and losing (player at low health), switch to that icon by playing the respective animation from the spritesheet, if they exist.
When transitioning between idle and winning or losing, additionally play the idle-winning, winning-idle, idle-losing, or losing-idle animations, if they exist.
These changes will together provide the following features:
Winning icons
Animated health icons like in Entity Origins Breakout
Animated transitions. For example, if idle depicts a character with a neutral mood, and losing depicts the character as angry, idle-losing would depict the character becoming angry and losing-idle would depict the character calming down.
Make the following changes to the health icons system:
idle
(player at in between health),winning
(player at high health), andlosing
(player at low health), switch to that icon by playing the respective animation from the spritesheet, if they exist.idle
andwinning
orlosing
, additionally play theidle-winning
,winning-idle
,idle-losing
, orlosing-idle
animations, if they exist.These changes will together provide the following features:
idle
depicts a character with a neutral mood, andlosing
depicts the character as angry,idle-losing
would depict the character becoming angry andlosing-idle
would depict the character calming down.