Hello! I'm trying to make a custom healthbar for my rpg character but when the energy or health drops down, it stretches outside the border.
I use this script for both:
So, I'm making a RPG and I have a problem with the health bar. The more health you have, the longer the bar. But I have a background for the health, but when it increases the background gets slightly longer than the health bar, all the way up to the point where the health is as long as half of...
im try to have a custom healthbar in the centre top of my games gui but for some strange reason it stretches out of the game view when it shouldnt. HERES MY CODE any help would be awesome.
/ all/ in obj hbar
global.hp =100//max of healthbar
// for gui layer view