#Health bar design
1 messages · Page 1 of 1 (latest)
main thing i have to do is make it so the image changes based on what your skin is
which i think i know how to do
only question is should i have it constantly change or only on start
hmm, you really don't have to have the whole character there if its always visible
u sure you want it this way?
i mean what else would i make it
maybe... something abstract like a head
but if you want to do that, you should write a little logic for it, like everytime the character changes, it would update something on this UI image
should't be hard
does your character use rigging ?
right now i just have it so its constantly setting that image to whatever the players spriterender is renderring lol so its basically a little you there
dont think so
why not just show the character twice, a smaller version in that circle?
i mean it's not the best performant idea but 😄
i may also just make that circle show the players health percent
yeah... or current level
or another information
that would be better in my opinion
player doesn't have to see the player twice once on screen once there
now to show that i just make a text ui element right there isnt any specific for numbers
yeah... I think if you are in early stages of your game, you'll def find something to show there later
just make a placeholder for now
I found this on internet
you can also show symbols like this
would do the trick
if you didn't find a specific thing to show there
any idea what the math would be to figure out what percent of health the player has left
nvm i think i figured it out
yeah its float current/max*100
is it a bad idea to have it update the text in the update function should i be having it only trigger when you take damage?
deff to that. You must have a call back when any character takes damage (an event fired), then you do things that change with health change on that call back
you may want to update several things when the character takes damage, put them all in a function and call it only and only when the character takes damage
maybe you had an effect that shakes the camera on character hitt, you would call it also there