#need help with the progress bar node

7 messages · Page 1 of 1 (latest)

split heron
#

so the progressbar is too big for my player character and therre is no transform tab for me to shrink it anymore. what do i do? (except enlarging my player because then i'll have to enlarge the enemies and other properties too which is super time consuming)

hidden kernel
#

What are you trying to work on? Are you wanting to make an hp bar for your character?

cobalt harbor
# split heron so the progressbar is too big for my player character and therre is no transform...

It's very hard to help without screenshot of your scene tree and/or scripts you are using to run these things.

However, I suspect the issue you are having is that you are trying to manage the size of a control using its Transform. Look in it's Layout tab, and find the minimum size. Set this to the smallest size you want it to be, and update it whenever you need it to be larger. You can set its container sizing options to shrink (whichever way you want it to shrink), and that will force it to stay its minimum size, which lets you only have to change that to alter its size at any time. I don't know for sure if there's not more you would have to do. If your setup is very different from what I'm picturing, there may be more steps involved. I'd recommend googling a tutorial for this. I know there are some. I'm not at my pc, and hate using my phone for that or I'd do it right now for you.

wooden violet
#

change the scale by pressing the s key

split heron
#

well i have now just increased the size of my player and the enemies

#

but i have run into another problem now, when my players hp exceeds 100 the progressbar stops working until hp is below 100 again. how can i sort this out?