Health Bar That Gets Smaller From 1 Side Only?
FallingBoxStudios
Freelance Graphic DesignerMember Posts: 822
Hi, I'm create a health bar, but when I try to make it smaller, it shrinks from both sides, I want it to shrink from 1 side only. Also how do I make it so that if your health grows (if you get a power) it grows from the 1 side it shrinks from. how do I do this? Thanks
- Hunter
- Hunter
Comments
https://www.mediafire.com/?35d3nxgrcuhwnco
(Sorry about the link I don't know how to post files with my comment)
if his health gets less change width to width-20 and when he gets more health change width to width+20.
havent tried but should work. I will make a little template
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
@Timolapre Thanks, it seems a bit complex, a template would be great
download link: https://www.dropbox.com/s/5pb7p7w4z3darnn/health bar template.zip
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Had the actor for the health bar.
Had a Rule:
when touch is pressed (just for example)
Do:
Change Attribute: self.size.width -----> self.size.width-20
Change Attribute: self.position.x -----> self.positon.x-10
Hope this helps
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@SlickZero Thanks but for some reason it wont work Heres my code:
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Btw: this is about 8% got too do with my other post the other post is kinda a template request (as in I'm looking to hire someone too create a small template in which I can get started on) let me get the file ready, then I will just PM the download link to you (its a mac file)
- Hunter
Hope this helps!
https://www.dropbox.com/s/5fdozcypmmf7dui/Health Bar.zip