Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
RPG PART 1 - Simple Inventory System and movement .
Author: CotteN KiveN
| Website: www.realarel.tk |
Movie Clips - Character
The last step is just create a Movie Clip work as the character
( Player controllable Movie Clip ) . After it , name the Movie Clip
"character" ( Of course , without the quotation marks . ) and assign these code to it .
onClipEvent (load) {
moveSpeed = 19;
}
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 Basic |
|
|
Added: : 2002-07-07
Rating: 6.06 Votes: 198
Hits: 4810
|
| » Author |
|
Flash , webs programmer .
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (10 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|