PDA

View Full Version : [AS2] Dead character!


Sk8ball6
08-31-2009, 08:01 PM
i have the following:

onClipEvent(enterframe){
enemy=40;
if this.(hitTest(_root.enemie)){
enemy --5

that was written just now, i have not yet tryed it in Flash so im not sure if it works, but thats my idea. To make it so that when one mc hits another it will decrease it's value (health). except im not sure if this one works, so if you have one that does please reply.