Okay I have this VERY simple piece of AS..
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += 7;
if (this._currentframe<31) {
this.gotoAndPlay(31);
}
} else {
this.gotoAndPlay(1);
}
}
This is attached to a movieclip which has an idle stance animation from frames 1-30 and a walking animation frames 31-70 when I press right he plays his walking... But obviously he doesnt stop (the end of the walking sequence has "gotoAndPlay (40)" on it so he just keep walking even when still. How do I get him to stop?! As you can see above I have added an else statement to gotoAndPlay (1) temporarily but if I wanted to add the same thing for walking left he would be contantly still!!! Help would be appreciated...