Quantcast
Channel: Answers for "Healthbar Not Changing Size"
Browsing all 6 articles
Browse latest View live

Answer by e.bonneville

I see one thing that could be the problem. You're declaring the integer variable adj before passing it into the function. Due to JS's automatic inference, it's declared as 0 (or possibly null, don't...

View Article



Answer by Parthon

Firstly, remove adjust from Start() and change var healthBarLength; to var healthBarLength : int = maxBarLength;Now are you sure that the gears are getting picked up? Add in a Debug.Log() to Adjust...

View Article

Answer by e.bonneville

I see one thing that could be the problem. You're declaring the integer variable adj before passing it into the function. Due to JS's automatic inference, it's declared as 0 (or possibly null, don't...

View Article

Answer by Parthon

Firstly, remove adjust from Start() and change var healthBarLength; to var healthBarLength : int = maxBarLength;Now are you sure that the gears are getting picked up? Add in a Debug.Log() to Adjust...

View Article

Answer by e.bonneville

I see one thing that could be the problem. You're declaring the integer variable adj before passing it into the function. Due to JS's automatic inference, it's declared as 0 (or possibly null, don't...

View Article


Answer by Parthon

Firstly, remove adjust from Start() and change var healthBarLength; to var healthBarLength : int = maxBarLength;Now are you sure that the gears are getting picked up? Add in a Debug.Log() to Adjust...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images