The web site for Flash ActionScript 3.0 game developers

 
         
   

Help Me Gary!

Dear Gary,

I am currently working on a rpg game. The character will be able to pick up and equip different shoes, pants, shirts, head gear, and weapons. Although, I don't want to have to make a graphic for each possible combo of items. Is there a short cut in AS3? Mabye like having each layer be the body, legs, head, and weapon. Then when a character puts on a new pair of shoes, ActionScript changes the feet layer to the frame of the shoes but leaves the other layers alone. This way I only need to make frames for each item, not each combo of items.

Calvin

P.S. I love your book! I am about half way through it.



Copyright Gary Rosenzweig