Health Bars, changing max hp

raze_struckraze_struck Member, PRO Posts: 141

Hello all,

I've seen the video tutorials on designing health bars (thanks t-shirt booth), however the life attribute in the videos do not change. For example, i have current hp and max hp, and when my character levels up, his max hp will change.

So i want to display my current hp in the form of a health bar, and want it to shrink as a percentage when my actor takes damage. I can't constrain the width to game.life*20, because game.life will change eventually and the bar will just keep increasing in size.

I want the health bar to remain the same size throughout the game, but account for the changes in max hp.

suggestions?

Comments

Sign In or Register to comment.