hey,

i need help... I'm making a fighting game where you can move only left and right. With the script that i am using, it tells "legs" to gotoandplay "walkf" when the right key is pressed. In there is a movieclip that shows the legs moving. Heres my script:

onClipEvent (enterFrame) {
if (Key.isDown(key.RIGHT)) {
this._x = this._x+3;
_root.Inuyasha.legs.gotoAndPlay(walkf);
_root.Inuyasha.legs.f.gotoAndPlay(NextFrame);
} else if (Key.isDown(key.LEFT)) {
_root.Inuyasha.legs.gotoAndPlay(walkf);
this._x = this._x-3;
_root.Inuyasha.legs.b.gotoAndPlay(NextFrame);
} else {
_root.Inuyasha.legs.gotoAndPlay("normal");
}
}


Sometimes when you press the right key, it goes foward but the legs (Movieclip in the frame "walkf") dont move. Can I somehow stop that from happening?


Thx!
Merry Christmas!