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.
Now this one for the second button:
Now this one for the third button:
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: Okay! we are now DONE!!!
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);
}
}
| » Level Advanced |
|
Added: 2005-04-11 Rating: 6 Votes: 29 |
| » Author |
| Just a kid not wanting to fit in.... |
| » Download |
| Download the files used in this tutorial. |
| Download (2 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
Character Select
Posted by Chris on 09/30/2012 06:21pmI noticed that this code is in AS2 format. I am using AS3, and need help coding a CS screen for it... I have tried many different things to do this(I am taking a class for this and need it for an assignment), and have had no luck. Also, I would need it to go to the gameplay screen afterwards.
Reply