A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Need Help with Character Customization

  1. #1
    Title? Am I King or something?
    Join Date
    Jul 2009
    Location
    Ponyville, Happytown on the continent Nowhereland
    Posts
    26

    Question Need Help with Character Customization

    Hello!

    I'm currently making an RPG (actually, a Roguelike, if you know what they are) and I want to implement a character "Paperdoll" system that makes the on-screen character change the looks of their torso, hands, weapon, etc. when they put on, take off, or otherwise edit their character. I have all my graphics ready to use (animation is not a problem, I may not put any in) but I just need some ideas to do this. Help would be greatly appreciated.

    Thanks,
    Fusiox

  2. #2
    my x booty it is that BIG
    Join Date
    Jun 2004
    Location
    New York
    Posts
    696
    hwo about making the hero_mc and inside of it you will have shoulders_mc,chest_mc,hands_mc,legs_mc and feet_mc. you then add set up a variable inside the item to true when it is equip and if it is true then you do
    Code:
    evil=false;
    good=false;
    neutral=false;
    head_mc=hero_mc.head_mc;
    Code:
    ...if (evil) { 
     head_mc.gotoAndStop("evil");
    } 
    else if (good) { 
     head_mc.gotoAndStop("good");
    } 
    else if (neutral) { 
     head_mc.gotoAndStop("good"); 
    } 
    else { 
     head_mc.gotoAndStop("normal"); 
    }
    }
    Last edited by mixedtrigeno; 08-16-2009 at 04:14 AM.
    Project||[GAME]-on hold for now
    ------------------
    [Hero]-80%
    [Enemies]-1%
    [Weapons]-90%
    [Items]-0%
    [Levels]-10%

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center