Hey guys, I'm making a top view shooter kind of thing, so all you pretty much see are circles, but you can see the main circle's hands, to punch things.
So I made an attacking animation, the left hand punching, then the right hand punching.
I already have it set up so that when you click, the left hand punches, but I want to set it up like, once he punches, a timer will go off, and during that timer, if you click again, he would punch with the right hand, and then you'd have to wait till the hands are at their starting positions to punch again, except I can't think of anything that would help me out here.
I've tried this so far, but no luck
ActionScript Code:
if (punchLeft == false) {
onMouseDown = function () {
player_mc.gotoAndPlay(2);
punchLeft = true;
};
}
if (punchLeft == true) {
onMouseDown = function () {
player_mc.gotoAndPlay(11);
punchLeft = false;
Any other method would work too, I just don't it to do what it currently does, which is if I click 3 times, you will see the left punch repeat itself three times.
That's what I'm trying to avoid...
Any help would be greatly appreciated.