all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

health bar


health bar wd40smellsgood
2/1/2004 7:26:21 PM
flash actionscript:
hello, im trying to find out how to make different elements of a video game. I'm making one now, with a guy, with a health bar, and each time you clikk on him, that bar goes down. How could i do that?

Re: health bar kglad
2/1/2004 9:46:54 PM
attached to you movieclip "guy" button you could use:
on(press){
healthbar._xscale --;
if(healthbar._xscale<1){
//do something your guy is dead
}
}

AddThis Social Bookmark Button