00:00
00:00
View Profile BrainToast
Bye Bye! -Signing Off. -BrainToast

Age 31, Male

Flash, Gaming Info

A School

United States of No Touch

Joined on 1/12/09

Level:
8
Exp Points:
610 / 710
Exp Rank:
> 100,000
Vote Power:
5.02 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
19
Saves:
20
B/P Bonus:
0%
Whistle:
Normal
Medals:
59

AS2 Tutorial Today!

Posted by BrainToast - January 21st, 2009


While it is night, I still have a tutorial to submit called "Character Customization Tutorial - AS2". It actually affects the player in game. For a very non-picturey tutorial, looky here:
1. Create a naked player.
2. Create some head wear (E.g. helmets, masks, hats, make-up) and Body Wear (E.g. Clothing, Customes, Suits)
3. Convert every head and body wear into buttons with names that you can easily remember.
4. Convert the player into a movie clip. Double-click the player, convert the head into a movie clip called charHead. Convert the body into a movie clip called charBody.
5. Create a second frame and put the naked player on their. Add this actionscript on first frame:
stop();
charHead = 0;
charBody = 0;
On second frame, put this simple actionscript:
stop();
6. Double-click charHead (on second frame, inside player) and create as many more frames (besides the current frame with just a head) after 2 as the amount of head Wear you made (E.g. You created 4 pieces of Head Wear. You create 4 frames after frame 1 with each head wear in movie clip form replacing the head at it's main location).
7. Do the same for Body Wear.
8. Go to Scene 1, frame 2.
9. Now disassemble our player movie clip (Ctrl+B).
10. Put this actionscript on the charHead movie clip:
onClipEvent(load){
if(_root.charHead==1){
this.gotoAndStop(2);
} else if(_root.charHead==2){
this.gotoAndStop(3);
} else if(_root.charHead ==3){
this.gotoAndStop(4);
}else{
this.gotoAndStop(5);
}
if(_root.charHead>=1){
this.gotoAndStop(_root.charHead);
}
}

11. Put this actionscript differently on each headWear button:
on(release){
_root.charHead = 1;//if you have four, each one is changed from 1 to 2 to 3 to 4
_root.gotoAndStop(2);
}

12. Put this actionscript on charBody movie clip, second frame:
onClipEvent(load){
if(_root.charBody==1){
this.gotoAndStop(2);
} else if(_root.charBody==2){
this.gotoAndStop(3);
} else if(_root.charBody ==3){
this.gotoAndStop(4);
}else{
this.gotoAndStop(5);
}
if(_root.charBody>=1){
this.gotoAndStop(_root.charBody);
}
}

13. Put this actionscript on each bodyWear movie clip:
on(release){
_root.charBody = 1;//if you have four, each one is changed from 1 to 2 to 3 to 4
_root.gotoAndStop(2);
}

14. Now if you test it, should work mighty fine. Thanks for Reading! I hope you see the flash tutorial, too!

Remember: DON'T BLAM GAMES FOR NO REASON!


Comments

Comments ain't a thing here.