Healthbar with fixed vertical anchor?
toastytee
Member Posts: 53
I'm trying to create a health bar with a "fixed" vertical anchor but everytime the health increases the image moves up a bit. As soon as I change the vertical anchor from "fixed" to "stretch" it works fine. I just don't want the image to stretch, i want it to be fixed. Heres a link to the file. I'm using Windows version:
https://www.dropbox.com/s/m4hm1giguvmghvt/Healthbar.zip
https://www.dropbox.com/s/m4hm1giguvmghvt/Healthbar.zip
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
The problem seems to be that the height isn't changing. If you turn off the y position constraint, you'll see that the height is constant even though game.Health is changing.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User