shrinking healthbar to the right
digitalzero
Member, BASIC Posts: 639
basically what im trying to do is shrink my healthbar to the right... i have looked at tshirtbooths tutorial of creating a healthbad but thats only having it shrink to the left... is there anyone out there that knows how to shrink the healthbar to the right?
Comments
from:
PlayerX+self.size.Width/2
to:
PlayerX-self.size.Width/2
constrain attribute
self.position.x to 10-(self.size.width/2)
Constrain Attribute: self.Position.X to (where ever you want it to land on screen, I did 500) +self.Size.Width /2- self.Size.Width
then Constrain width to your HP integer
hope that helps!