Creating Avatars with Corona

Hi All,
I would like to develop avatars for the users of my new game. Since I’m relatively new to game development I thought some of you more experienced gurus could help answer some questions.

I would like to change the following on my avatars:
a) Hair color
b) Hair shape
c) Skin color
d) clothes – tops and bottoms

Questions:

  1. Do I have to create an image for each possible combination? Or is there an other way. Such as have a few different skin color avatars and then layer the other items on top?

  2. What about useful data structures? By data structures I mean either DB tables or objects
    Any help would be greatly appreciated and any corona examples of something similar would be great!

Thanks,

Andrew [import]uid: 12090 topic_id: 7794 reply_id: 307794[/import]

Yes use PNG layers for body, head, hat, glasses etc and add them to a display group. You can then do display.save on the group to save it all as a flat image. As soon as I have worked out how to post this image to facebook I will add a tutorial. Should be doable using the graph api

json appears to be a popular simple format for storing data structures [import]uid: 6645 topic_id: 7794 reply_id: 27663[/import]