- Home /
Question by
ayrton_adiong · Jan 26, 2014 at 10:11 AM ·
nguilifebar
How to create lifebar NGui
I have the object 1(RING) and Object 2(SHARK). All i want is every time the RING touches the shark the lifebar decreases by 10%? Is that possible? Please help us. Thank you
Comment
Answer by Brad-Lee · Jan 28, 2014 at 07:27 PM
You just need to grab the 'length' of whichever sprite you want to represent the health of your player and increment/decrement it, just as you would a health-storing variable. Works exactly the same in NGUI.
Your answer
Follow this Question
Related Questions
Bar with segments depending on a value. 0 Answers
My Game crash on few android devices 0 Answers
NGUI autocorrect 0 Answers
Input leaking to another Scene 0 Answers