Now go back onto the main stage. You should have you guy in the center. Select him and hit F9 to open the actions pannel of your character MC. Now put the following code into the pannel:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (_currentframe != 6) {
gotoAndStop(6);
}
} else if (Key.isDown(Key.RIGHT)) {
if (_currentframe != 8) {
gotoAndStop(8);
}
} else {
if (_currentframe == 6) {
gotoAndStop(5);
}
if (_currentframe == 8) {
gotoAndStop(7);
}
}
if (Key.isDown(Key.UP)) {
if (_currentframe != 2) {
gotoAndStop(2);
}
} else if (Key.isDown(Key.DOWN)) {
if (_currentframe != 4) {
gotoAndStop(4);
}
} else {
if (_currentframe == 2) {
gotoAndStop(1);
}
if (_currentframe == 4) {
gotoAndStop(3);
}
}
}
| » Level Intermediate |
|
Added: 2004-08-17 Rating: 7 Votes: 11 |
| » Author |
| Blah... |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!