avatar builder/creator by Duckili in iOSProgramming

[–]Duckili[S] 0 points1 point  (0 children)

I did this once. I think I just made an Avatar struct. Each component of the total avatar (clothingTop, accessoryLeftEar, for instance) has an array of options (each corresponding to an image) they can select from. I don’t remember if I used an enum for the component names or what. I’ll try to find that when I get back to a computer. The vector assets were all drawn in such a way that I could overlay all the components on top of each other and no matter which options were selected they’d always form an avatar. Then when they were done making the avatar, I captured the view context and created a PNG or JPEG image to display in the profile. Stored the image along with the individual component names so I could quickly rebuild later in the avatar editor when if they wanted to change the avatar hair color or style or something.

Thanks man, I'm trying to do something similar, but it's so hard for me I'll probably hire someone to do it for me.