Try to make it logicaly for example:
Make a player object that have legs and etc. All functions that will need to change it have to be or example on this layer. Or may be even upper than that on root.
Then you wright function for cosumization:
Not real code - i do not remember its syntacsis i always copy it
function ArmorChange(ArmorNumber) BlaBlaBla
Player.LeftArm.gotoAndStop(ArmorNumber);
Player.RightArm.gotoAndStop(ArmorNumber);
Player.LeftLeg.gotoAndStop(ArmorNumber);
Player.Rightleg.gotoAndStop(ArmorNumber);
Player.Head.gotoAndStop(ArmorNumber);
Player.Torso.gotoAndStop(ArmorNumber);
function BodyColorChange(ArmorNumber) BlaBlaBla
if (ArmorNumber==1) {
if (Some condition or restrictions on armors) {
Player.Head.gotoAndStop(ArmorNumber or any other const);
Player.Torso.gotoAndStop(ArmorNumber or any other const);
}
}
if (ArmorNumber==2) {
if (Some condition or restrictions on armors) {
Player.Head.gotoAndStop(ArmorNumber or any other const);
Player.Torso.gotoAndStop(ArmorNumber or any other const);
}
}
And step by step you will get all the costumizations of your charecter. It is a little long to wright - but it is easy to be fixed. You see what armor sets you have you can easely add new and fix old. You will not change all components but if you will need to add any new components in it you will not need where to fix them to make it work.
Some times it is possible to make it in the components like it was in LegendOfKrystal game - there was solution like this: It check every frame where to go and if variable changes - it change the costumization. But for example it is possible to make it like making first frame in component that will direct where to go on itself. Then if you will need to change frame you only will need to make it go to the 1st frame. No functions no such big codes you will not need - and it works not bad too. And you will not need to make loops like in LoK game - it means less lags of code.
By the way Look how Corta make his components (Corta Charecter Template) - he is very very very good animator and painter i think, and hes components works, he even try to make the game with samus with it. It have some levels and is not bad but unfortunatly he dissapered some time ago and i do not know how progress goes with it
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)