#Health bar design

1 messages · Page 1 of 1 (latest)

crystal void
#

thats what i have noew

#

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

valid wren
#

hmm, you really don't have to have the whole character there if its always visible

#

u sure you want it this way?

crystal void
#

i mean what else would i make it

valid wren
#

maybe... something abstract like a head

valid wren
#

should't be hard

#

does your character use rigging ?

crystal void
#

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

crystal void
valid wren
#

why not just show the character twice, a smaller version in that circle?

#

i mean it's not the best performant idea but 😄

crystal void
#

i may also just make that circle show the players health percent

valid wren
#

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

crystal void
#

now to show that i just make a text ui element right there isnt any specific for numbers

valid wren
#

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

crystal void
#

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

valid wren
#

yeah its float current/max*100

crystal void
#

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?

valid wren
#

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