Legacy GM [SOLVED]How to fix Hp/Mp/Xp bars from drawing backwards

Soso

Member
Wondering what most people do to keep their bar gauges from drawing backwards.
Is the solution to make separate vars for the bars to follow?

00cd5541-d668-4f90-aa53-c7c583ade60c_zpsshezbwzc.PNG


e69f1e7c-203f-4495-92be-1e4b8cffaaed_zpsydumm6pb.PNG
 
Last edited:

Simon Gust

Member
Can't see the images nor the code for some reason.
But make sure the HP, MP and XP are limited to the Max HP, Max MP and Max Xp (and 0 respectively).
You can make use of max(), min() and clamp().
 

Soso

Member
Can't see the images nor the code for some reason.
But make sure the HP, MP and XP are limited to the Max HP, Max MP and Max Xp (and 0 respectively).
You can make use of max(), min() and clamp().
just fix the images should show up now
and yea i got those. I'm also scaling the x
 

Simon Gust

Member
ok, I see it I think.
You're drawing the hp part too far to the left to start.
You're not adding the 16 (17) to the x2 argument
 
Top