I guess its better to keep posting in this thread instead of making a new one..but seriously Ive tried to find a solution to this problem...
Look at this script:
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x=_x-1;
this.gotoAndPlay(8);
}
if (Key.isDown(38)) {
_y=_y-1;
this.gotoAndPlay(1);
}
if (Key.isDown(39)) {
_x=_x+1;
this.gotoAndPlay(12);
}
if (Key.isDown(40)) {
_y=_y+1;
this.gotoAndPlay(4);
}
}
Ive got four different walking animations.. up,down,right, and left.
The problem is if I press two buttons at once...like down and right..the walking animation freezes...so basicly I am wondering if there is a nice way to enhance this script so that I can have two buttons pressed at once and still have the person walk sideways without the freezing part...if you didnt understand just ask and I will try to make it clearer...any help at all appreciated cause I just couldnt find this part in the tutorials.