Pedal-kid
07-15-2008, 10:13 PM
I am going to make a stickman fighting game, and I have got to controls.
When I hold down "enter" at the same time the stickman named "dude" is touching the stickman named "bluedude", I won't bluedude to lose 10HP
bluedudes HP var is "bluehp" what did I do wrong here?:
onEnterFrame=function() {
if (dude.hitTest(bluedude)==true)&&{if (Key.isDown(Key.ENTER)) {
bluehp-=10;
}
}
}
When I hold down "enter" at the same time the stickman named "dude" is touching the stickman named "bluedude", I won't bluedude to lose 10HP
bluedudes HP var is "bluehp" what did I do wrong here?:
onEnterFrame=function() {
if (dude.hitTest(bluedude)==true)&&{if (Key.isDown(Key.ENTER)) {
bluehp-=10;
}
}
}