Search tutorials
This tutorial is for newbies and should only take a coulple of minutes to do.
We first have to make a MC of the character you want to move. then we add these actions to it:
onClipEvent (load) {
vx = 10;
vy = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
this._x -= vx;
this._y += vy;
}
if (Key.isDown(Key.DOWN)) {
this._x += vx;
this._y += vy;
}
if (Key.isDown(Key.UP)) {
this._x -= vx;
this._y -= vy;
}
if (Key.isDown(Key.RIGHT)) {
this._x += vx;
this._y -= vy;
}
}
/pre>
Thats it, very simple to do and useful for isometric games.
| » Level Basic |
|
Added: 2002-08-27 Rating: 6 Votes: 38 |
| » Author |
| game flash programmer |
| » Download |
| Download the files used in this tutorial. |
| Download (4 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!