View Full Version : Hp/Sp bar help
koolkrasher
October 4th, 2006, 02:34 AM
Wonderin if nayone knows how to make a sp/hp bar gow down a certin amount when attacked the number part is no problem i can do that its the shrinking of the actual bar im a little lost on. any ideas?
evildrummer
October 4th, 2006, 08:42 AM
Well if you have a animation which is the bar in 100 states (0% to 100%) then have it so when it gets hit it works out the remaining percent of health and which is stored in the variable `hpercent` then when hit execute the code:
_root.stats_mc.hbar_mc.gotoAndStop(hpercent);
Dhryn
October 4th, 2006, 08:43 AM
A while ago I had the same problem, I found this file, hope it helps.
--------------------
39259
--------------------
koolkrasher
October 4th, 2006, 01:58 PM
OO thanks for the help guys much apreciated
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.