|
|
Search Tutorials
Okay, first, you sould know variables, if actions, instance names, buttons, and goto actions. First, on frame 1, draw at least 3 characters. Make each characters a button. Add this action to the first button.
on (release) {
gotoAndStop(2);
character = 1;
}
Now this one for the second button:
on (release) {
gotoAndStop(2);
character = 2;
}
Now this one for the third button:
on (release) {
gotoAndStop(2);
character = 3;
}
Now, put a stop(); action on frame 1 and add a keyframe on frame 2. Now draw your characters again on 1 movieclip (1st character on 1st frame, etc.) now put a stop(); action on all frames of this movie clip and on the main timeline. Put this code on the Movie Clip on Frame 2: onClipEvent (enterFrame) {
if (_root.character == 1) {
this.gotoAndStop(1);
} else if (_root.character == 2) {
this.gotoAndStop(2);
} else if (_root.character == 3) {
this.gotoAndStop(3);
}
}
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|