Search tutorials
First make a start button. Then, put a stop action in the first frame. On the button put the action:
on(release){
_root.gotoAndStop(2);
}
Then make another frame that shows the game beginning and make a MC called hero then put the action:
onClipEvent (load) {
moveSpeed = 11;
}
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;
}
}
| » Level Advanced |
|
Added: 2004-08-30 Rating: 5.24 Votes: 21 |
| » Author |
| Part 1 of how to make an rpg game. |
| » 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!