how do I make it display properly? what I'm trying to do is make the health colors display with the health bar shape. #830
Replies: 1 comment
-
|
Considering that your health bar appears to be based on quadrilaterals and not rectangles, you have to go through some somewhat hacky HaxeFlixel tricks to get this health bar design to work. I'm assuming that you at least know how HaxeFlixel works, since you seem to have removed When making your new health bar, simply set it as the value of PlayState's
The main issues with this is that, as far as I'm aware, you can't set the color as you normally would with a typical health bar that strictly uses a rectangle. It's also heavily designed to use direct instructions to HaxeFlixel. It's one of the reasons why I dislike HaxeFlixel, in fact, since it's strictly prohibited to pure inheritance and not the superior ECS paradigm (at least, in my opinion) that is much more data-oriented. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions