B
Better Nature
Guest
TLDR: I'm looking for a method of creating a "ring" or "circle" health-bar that doesn't use any of the draw_[shape] commands (which are apparently somewhat broken according to the below linked thread)
A lot of the UI in my current game project is designed around a "ring" or "circle" health-bar. I found what I thought was a really good method of achieving the effect I was looking for in this tutorial by r2d2upgrade. The problem is, it uses the draw_triangle_color command, and I recently found out in this thread that the draw_line and draw_[shape] commands are not recommended due to inconsistencies in how they are rendered by different hardware (At first it seemed like it's just the draw_line function, but the ultimate consensus of the thread seems to be that all of them won't function consistently. Let me know if I'm misunderstanding though).
My usual method of creating hp bars using image_xscale won't work here. The only alternative I've come up with is creating a sprite with enough frames to cover every level of HP. As you can imagine, this is far from ideal. if your HP is over 100, that's 100+ frames taking up resources for one hp bar(not to mention the time involved in creating all those frames). I'm really hoping to find another solution.
So that's my question to you, does anyone have any ideas for a better method of creating a health-ring? Or, are there any suggestions of where I might look for ideas?
If it makes any difference, I'm currently working in Studio 1.4, but plan on porting over to Studio 2 soon.
Thanks for taking the time to read my question (even the tldr), and double thanks if you share any suggestions!
A lot of the UI in my current game project is designed around a "ring" or "circle" health-bar. I found what I thought was a really good method of achieving the effect I was looking for in this tutorial by r2d2upgrade. The problem is, it uses the draw_triangle_color command, and I recently found out in this thread that the draw_line and draw_[shape] commands are not recommended due to inconsistencies in how they are rendered by different hardware (At first it seemed like it's just the draw_line function, but the ultimate consensus of the thread seems to be that all of them won't function consistently. Let me know if I'm misunderstanding though).
My usual method of creating hp bars using image_xscale won't work here. The only alternative I've come up with is creating a sprite with enough frames to cover every level of HP. As you can imagine, this is far from ideal. if your HP is over 100, that's 100+ frames taking up resources for one hp bar(not to mention the time involved in creating all those frames). I'm really hoping to find another solution.
So that's my question to you, does anyone have any ideas for a better method of creating a health-ring? Or, are there any suggestions of where I might look for ideas?
If it makes any difference, I'm currently working in Studio 1.4, but plan on porting over to Studio 2 soon.
Thanks for taking the time to read my question (even the tldr), and double thanks if you share any suggestions!