Search tutorials
1]First you create a simple ball on the stage.
2]Then open the actions menu (F9 or option+F9 for macs)
3]Enter this code
//up
onClipEvent(enterFrame) {
if (Key.isDown(Key.UP)) {
this._y -= 5;
}
}
//down
onClipEvent(enterFrame) {
if (Key.isDown(Key.DOWN)) {
this._y += 7;
}
}
//left
onClipEvent(enterFrame) {
if (Key.isDown(Key.LEFT)) {
this._x -= 7;
}
}
//right
onClipEvent(enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += 7;
}
}
i added notes to vaugely explain what each action is doing
ENJOY!
| » Level Intermediate |
|
Added: 2006-12-01 Rating: 2.83 Votes: 12 |
| » Author |
| This tutorial is easy to use and remember |
| » 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!