ickshonpe / bevy_simple_stat_bars

library for drawing health bars etc above sprites
MIT License
6 stars 7 forks source link

Migrate to latest bevy version #3

Open mirsella opened 6 days ago

mirsella commented 6 days ago

i made it compile https://github.com/mirsella/bevy_simple_stat_bars but there a bug, in the example only one the 3 entity is visible. i can comment the two status bar to see the player entity, or if all of them are commented only the last bar spawned is shown

the problem is in the render system i think

mirsella commented 6 days ago

i made it works except for borders which are bugged. if there are multiples borders, only the first one wil work, and the other bar will be shown as if empty

mirsella commented 6 days ago

ok i just had to manually set Z index of the layers of the bar manually (-2 for the empty color, -1 for the borders, and 0 for the progress

mirsella commented 6 days ago

tell me if you want a PR, ill use my fork for now in my project