I'm doing this:
healtht:setText(hpamount.."/"..hpcap)
print("healht"..healtht:getWidth())
print("healh"..health:getWidth())
print("//"..health:getWidth()/healtht:getWidth())
healtht:setScaleX(health:getWidth()/healtht:getWidth())
healtht:setPosition(health:getX()+health:getWidth()/2-healtht:getWidth()/2,health:getY()+healtht:getHeight()*3)
print("healht"..healtht:getWidth())
and get that:
healht176.32653808594
healh180
//1.0208332900648
healht110.25
How is it possible?
Comments
And are you sure your are not scaling parent sprites somehwere else?