1) Put it in it's own separate dialog (looks like it's part of your entire UI dialog to me).
2) Anchor your health globe to "center". You may need to toy with the dialog's position to get it to align properly with the rest of your UI.
That's it. It'll now just shrink, instead of shrink+move.
So I have this health globe... (size 240,240 - offset 300,5, bottom left) - that gets smaller and smaller as the player's health decreases.
But whenever the size changes, the image moves. I wan't it to stay centered in a specific location. Any ideas?
Note: I did my math and tried this trigger.
It didn't quite work.
Screeeeniessss:
(Bottom left red circle is the image i'm resizing.)
bumpiddybump. I haven't gotten closer to a solution yet :\. Still looking though
if your doing a diablo style hp bar, don't shrink the width just height, and aline it to the bottom
@SoulTaker916: Go
I don't follow. ): - See the menu (The green stuff plus the circle frames) are one image.
Edit: Actually I didn't want it to decrease the way Diablo does it, because the health globe rotates... That would look pretty awkward.
1) Put it in it's own separate dialog (looks like it's part of your entire UI dialog to me). 2) Anchor your health globe to "center". You may need to toy with the dialog's position to get it to align properly with the rest of your UI.
That's it. It'll now just shrink, instead of shrink+move.
@TyaStarcraft: Go
Ah, thx. :D
I just wanted to add that the anchor point of dialog items doesnt seem to be their center but their corners.
Not as efficient but also a solution: Duplicate the image and resize it; then show or hide the appropriate images depending on the health.
@OutsiderXE: Go
That would take forever wouldn't it? Changing the size specifically each time? But its fine, I used Tya's solution.