PDA

View Full Version : creating a life bar for a game


joekd
08-09-2002, 10:10 PM
hello
i,m trying to create a fighting game where i use the hitest action a lot anyways while working on it i've decided to create the life bar by using the code for a bar peloader and it doen't work at all
do any one know how I can make the bar go down by 5% every time a character hits another:confused:

Billy T
08-10-2002, 01:17 AM
draw your bar mc and make sure its registration point is set to center left

//hit test code
_root.bar._xscale-=5;


cheers