E
edbtzy
Guest
In Flash, I made my character move with the input of arrow keys with the help of this code:
"onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x += 5;
this.gotoAndStop("right");
}
if(Key.isDown(Key.LEFT)){
this._x -= 5;
this.gotoAndStop("left");
}
if(Key.isDown(Key.UP)){
this._y -= 5;
this.gotoAndStop("up");
}
if(Key.isDown(Key.DOWN)){
this._y += 5;
this.gotoAndStop("down");
}
}"
Everything works fine but now i am trying to find out how i could make it look like his legs and arms are moving in the direction he is facing so it actually LOOKS like he is moving instead of just gliding...i understand that i have to make a motion tween of his legs moving back and forth but whenever i play it, it still has him gliding...please any help would be greatly appreciated PLEASE!
"onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x += 5;
this.gotoAndStop("right");
}
if(Key.isDown(Key.LEFT)){
this._x -= 5;
this.gotoAndStop("left");
}
if(Key.isDown(Key.UP)){
this._y -= 5;
this.gotoAndStop("up");
}
if(Key.isDown(Key.DOWN)){
this._y += 5;
this.gotoAndStop("down");
}
}"
Everything works fine but now i am trying to find out how i could make it look like his legs and arms are moving in the direction he is facing so it actually LOOKS like he is moving instead of just gliding...i understand that i have to make a motion tween of his legs moving back and forth but whenever i play it, it still has him gliding...please any help would be greatly appreciated PLEASE!