Copy link to clipboard
Copied
Hello Friends! Hope all is well.
I apologize in advance if my termanology isnt great, as I am still learning the Adobe Ecosystem.
I am creating a Top down Walking Animation for a simple Chibi Like Character.
When The Character takes a step forward with say his right foot&leg, I'd like to set it so that the "right foot&Leg" Layer is behind the "Left foot&leg" Layer.
But then when the character takes a step forward with the left foot&Leg, I'd like to set it so that the "Left foot&Leg" Layer is behind the "Right foot&leg" Layer.
Hopefully that makes sense. I really appreciate the help! Hopefully this is a feature.
Thanks!
Copy link to clipboard
Copied
you can't change layer/symbol depth unless you use code.
you can use different parts of a timeline/keyframes to change the layers used by your symbols.
Copy link to clipboard
Copied
Hello,
I appreciate the response.
Do you mind alaborating a bit on this?
I'm definetly willing to look into actionscript. Do you by chance know where to start regarding this?
Also, I'm having issues understand your second statement if you dont mind going into that further.
Thanks in advance 🙂
Copy link to clipboard
Copied
NOTE: I am fimiliar with what keyframes, symbols, and the timeline are; as this is what I'm currently using to creating the animation.
Copy link to clipboard
Copied
it might be easier for (esp novice) users to use the timeline to reorder onstage objects.
but it's easier to explain how to reorder symbols using code.
to use code, just use addChild() several times. any symbol added after another appears above the other.
Copy link to clipboard
Copied
Awesome, thanks a ton I appreciate the help!
Copy link to clipboard
Copied
you're welcome.
Copy link to clipboard
Copied
This is very interesting, what would the code look like?
Copy link to clipboard
Copied
@sergiopop75 🙂 🙂 🙂
Copy link to clipboard
Copied
Copy link to clipboard
Copied
as3
Copy link to clipboard
Copied
// create an array of the character body parts
var cParts = [body, leftarm, rightarm, leftleg, rightleg];
// call orderF and pass an array specifying the depth (less is below) of each body part
orderF([0,3,1,2,4]); // body at bottom, rightarm above body, then leftleg, then leftarm, rightleg on top
function orderF(a:Array):void{
for(var i:int = 0;i<a.length;i++){
addChild(cParts[a.indexOf(i)]);
}
}
this can easily be adapted to include a parent paramenter if there are other movieclips whose parts need ordering by code.