Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
How to make chracters move in flash using the keys
Author: Linked
| Website: ww.freewebs.com/linkedeternity |
First, make a movie clip, whatever you want to make the character look like. In that movie clip, put in this action script:
onClipEvent (enterFrame) {
if (key.isdown(Key.UP)) {
_y+= -5;
}
if (key.isdown(Key.DOWN)) {
_y+= 5;
}
if (key.isdown(Key.RIGHT)) {
_x+= 5;
}
if (key.isdown(Key.LEFT)) {
_x+= -5;
}
}
Then, test the movie and use the up, down, left, and right keys to move your character.
| » Level Basic |
|
|
Added: : 2004-10-19
Rating: 2.52 Votes: 23
Hits: 1244
|
| » Author |
|
An eccentric young flash artist who loves everything about it! Just joking. but I do like making flash movies and games.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (0 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.
|
|
|