Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Simple Game Character Display
Author: The Lizzard
| Website: http://www.blackmaze.com/ |
Now go back onto the main stage. You should have you guy in the center. Select him and hit F9 to open the actions pannel of your character MC. Now put the following code into the pannel:
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
if (_currentframe != 6) {
gotoAndStop(6);
}
} else if (Key.isDown(Key.RIGHT)) {
if (_currentframe != 8) {
gotoAndStop(8);
}
} else {
if (_currentframe == 6) {
gotoAndStop(5);
}
if (_currentframe == 8) {
gotoAndStop(7);
}
}
if (Key.isDown(Key.UP)) {
if (_currentframe != 2) {
gotoAndStop(2);
}
} else if (Key.isDown(Key.DOWN)) {
if (_currentframe != 4) {
gotoAndStop(4);
}
} else {
if (_currentframe == 2) {
gotoAndStop(1);
}
if (_currentframe == 4) {
gotoAndStop(3);
}
}
}
| » Level Intermediate |
|
|
Added: : 2004-08-17
Rating: 7.08 Votes: 11
Hits: 715
|
| » Author |
|
Blah...
|
| » 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.
|
|
|