Re: Another question involving parent objects
Cadwaller wrote:
how could I cause the entire series of connected children (I forgot to explain last time, its a ragdollish thing i'm making) to decrease their size proportionally to the parent when the parent changes its size
Refresh my memory, is this in Basic?
In Flash, a displayObject will automatically inherit and scale for it's children appropriately. You don't have to do any math. Check and see if there is a classType you can extend that provides an equivalent function in your programming language - I suspect most have it.
If you need to do it manually: Organize all the children to have an "attachment point" specified in your code. If a head is on the top of a 10-unit tall body, the attachment point for the head could be 0,-10. You can use Trig to find out the angle and the distance - the head is 0 degrees and a distance of 10.
Simply reverse engineer it for your children. If the parent reduced scale by 20%, 10-20%=8. Scale the size of the object down and move it to the new attachment point. done!