I followed the tutorial to make the life bar for the hero but i got a problem.
I set my hero life and maxlife variable to 100
<img src="http://i1300.photobucket.com/albums/ag85/znobita/1a.png" border="0" />
But when i set the hero's life to 10 it become like this, i dont know why
<img src="http://i1300.photobucket.com/albums/ag85/znobita/1b.png" border="0" />
Can anyone help me solve it and explain why, please?
Develop games in your browser. Powerful, performant & highly capable.
Looks like you centered the origin point of the health bar sprite. Place the origin to the left edge for this to work correctly.
thanks, i will try it out.