RekkSai
|
  |
| Joined: 16 Dec 2014 |
| Total Posts: 111 |
|
|
| 30 Apr 2017 04:00 PM |
Anyone know how to make a circle health GUI, such as in https://www.roblox.com/games/65438352/Dungeon-Delver-Pets
or like in Guild Wars 2?
I can't think of a way to do it. Would appreciate help. I can script btw, I just can't think of logic.. |
|
|
| Report Abuse |
|
|
| |
|
RekkSai
|
  |
| Joined: 16 Dec 2014 |
| Total Posts: 111 |
|
| |
|
RekkSai
|
  |
| Joined: 16 Dec 2014 |
| Total Posts: 111 |
|
| |
|
Alexware
|
  |
| Joined: 07 May 2010 |
| Total Posts: 661 |
|
|
| 30 Apr 2017 04:59 PM |
well i can tell you it involves math.pi.....
|
|
|
| Report Abuse |
|
|
|
| 30 Apr 2017 06:02 PM |
| Easiest way is just to have a rectangle, but have the side of the health bar thick enough that it covers the rectangle the full way. |
|
|
| Report Abuse |
|
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
|
| 30 Apr 2017 07:46 PM |
I just made a round health gui, don't know if it will be of any help to u, but learn from this if u like ;) roblox.com/catalog/760736824/redirect
|
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 30 Apr 2017 08:23 PM |
I may be reiterating what @arshiaslaya said, but I didn't really understand what they were saying.
In that game, what it looks like is it goes in steps basically. Maybe the circle has 30 rectangles in it, each one has a different size.X than the last (so it fits withing the circle)
Let's say the health is at 100%, you make all rectangles visible.
If the health is at 50%, you only show the bottom 15 rectangles.
That's my guess. |
|
|
| Report Abuse |
|
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
|
| 30 Apr 2017 08:30 PM |
Ah I think I know what u mean
| ||| ||||| ||||||| ||||| ||| |
Something like this? And then 50% health
| ||| ||||| ||| |
|
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 30 Apr 2017 08:31 PM |
the first part is right, but for 50%:
||||| ||| | |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 30 Apr 2017 08:32 PM |
Didn't add spaces:
||||| ||| | |
|
|
| Report Abuse |
|
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
|
| 30 Apr 2017 08:33 PM |
Ah, I get ya. Welp, I might look into making something like that after I get a bit of sleep.
|
|
|
| Report Abuse |
|
|
RekkSai
|
  |
| Joined: 16 Dec 2014 |
| Total Posts: 111 |
|
|
| 01 May 2017 11:08 AM |
| KapKing, that GUI isn't exactly what I was looking for, if you followed my links you could see i'm talking more about something that resembles a spherical flash which replenishes with your health not a simple circle. Althought that is interesting because that was my first design but i deemed it too hard.. |
|
|
| Report Abuse |
|
|
KapKing47
|
  |
| Joined: 09 Sep 2012 |
| Total Posts: 5522 |
|
|
| 01 May 2017 01:45 PM |
| If u meant that circle gui at the bottom right then that should be accomplish-able using this method: 1. Create frame and set Frame.ClipDescendants (I think that's the name of the property) to true. ## ### ### ###### image label inside and use OFFSET for size, NOT scale. 3. Change the size of the frame as u please, it SHOULD hide/show parts of the circle. OR 1. Make the image label. 2. When health changes just choose the pixels where to "cut off" from and where to (I can't remember the property name) and just change the size of the image label. Although it can also be done manually, but it wont look that smooth. |
|
|
| Report Abuse |
|
|