Does any one have any tips on how to update an avatar dynamically? For example when the player puts on a hat or picks up an item all the sprites for their animations need to be changed. I want to do something like they do in Club Penguin. It looks like they have some sort of 3d rendering system that allows them to create sprites dynamically with custom colors and objects.

What are they using to do that?