This problem is really baffling me and the last problem until I release my first game all other functions work. I have 2 instance variables for health which are HP and MAXHP on my actual game. I have some enemies which take 10% HP away and some medikits which add 25% to HP. I am not using a DT system like 60*dt I am using percentage damage.
The HP bar over extends like so If I don't have a clamp code or lerp...
I have looked else where on the forum and can't understand the answers or where to put it. But I have tried LERP and CLAMP functions and it is still not working.
To show you the problem I am getting I created a demo C3P with CLAMP function and the HP bar just flickers and does not act like it is supposed too. I have put it on both (Start of Layout) and (Every Tick) still don't operate like it should.
https://www.dropbox.com/s/p9pwdlfg5nhz3e1/healthbar%20problem.c3p?dl=0
He is a C3P example, could any point me in the direction to fix this problem? I feel like I have tried everything lol