Search tutorials
C. the script
Okay, to add script, click on the bottom panel called Actions and click on the dot called man, then add these actions to him :
onClipEvent (load) {
moveSpeed = 3;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y -= moveSpeed;
} else if (Key.isDown(Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x -= moveSpeed;
}
}
The code explanation is on the next page | » Level Intermediate |
|
Added: 2005-02-14 Rating: 7 Votes: 40 |
| » Author |
| I have done a wad of tutorials, am 11, but this one is the greatest yet. |
| » 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!