1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Second mod but first on loader, i need some help...

Discussion in 'Help' started by ycdtosa, Jan 11, 2013.

  1. ycdtosa

    ycdtosa Potential Patron

    Joined:
    Nov 29, 2012
    Messages:
    21
    Likes Received:
    0
    Ok so i read Synonymous's tutorial and had no problems. Than i decided to try the Faceless loader template to do an elbow pad type thing. Everything seemed to be going well, no compiler errors or anything but than when i tried to open the mod in SDT it messed up.

    [attachimg=1]

    The right upperarm piece flashes on and off but the rest of it seems ok. The only thing i did was uncomment the sections i thought i was supposed to so i'm not sure what to do. I already went back and started over from scratch but with the same results.

    Here is the only code i edited, the red text i added. Blue i removed.
    //---------------------------right forearm
    */var forearmr = new newforearmr();
    forearmr.x = 2;
    forearmr.y = 135;
    forearmr.rotation = 91;
    main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.addChildAt(forearmr,
    main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.getChildIndex(
    main.her.rightForeArmContainer.upperArmCostume.foreArmCostume.handCostume));/*

    //---------------------------left forearm
    */var forearml = new newforearml();
    forearml.x = 2;
    forearml.y = 135;
    forearml.rotation = 91;
    main.her.leftArmContainer.upperArmCostume.foreArmCostume.addChildAt(forearml,
    main.her.leftArmContainer.upperArmCostume.foreArmCostume.getChildIndex(
    main.her.leftArmContainer.upperArmCostume.foreArmCostume.handCostume));/*

    //---------------------------right upperarm
    */var upperarmr = new newupperarmr();
    upperarmr.rotation = -30;
    main.her.rightArmContainer.upperArmCostume.addChild(upperarmr);/*
    //main.loadCustomFull(upperarmr,".|Her.rightArmContainer.upperArmCostume","x:0;y:0;r:-30;a:1");

    //---------------------------arms:back support
    // upperarmr.stop();
    // upperarmr.addEventListener(Event.ENTER_FRAME,armPosition);

    //---------------------------left upperarm
    */var upperarml = new newupperarml();
    upperarml.rotation = -30;
    main.her.leftArmContainer.upperArmCostume.addChildAt(upperarml,
    main.her.leftArmContainer.upperArmCostume.getChildIndex(
    main.her.leftArmContainer.upperArmCostume.foreArmCostume));/*
    */



    // main.registerToRemove(handr);
    // main.registerToRemove(handl);
    // main.registerToRemove(forearmr);
    // main.registerToRemove(forearml);
    // main.registerToRemove(upperarmr);
    // main.registerToRemove(upperarml);

    I hope that's enough to figure out what's wrong but if not please ask, i still have all the files of course.
     

    Attached Files:

  2. mike

    mike Avid Affiliate

    Joined:
    Feb 4, 2012
    Messages:
    353
    Likes Received:
    3
    This is because the arms on back position is handled in the right upperarm and that's what you see looping.

    You need to activate these lines of code :

    Code:
    	upperarmr.stop();
    	upperarmr.addEventListener(Event.ENTER_FRAME,armPosition);
    Code:
    function armPosition(e:Event){
    	if(main.her.currentArmPosition!=0){
    		upperarmr.gotoAndStop("normalArm");
    	}
    	else{
    		upperarmr.gotoAndStop("backArm");
    	}
    }
     
  3. dantethedarkprince

    dantethedarkprince Club Regular Content Creator

    Joined:
    Jun 15, 2012
    Messages:
    2,625
    Likes Received:
    58
    I ran into the exact same issue when I first started. I'm not sure if you did the same thing but, other than Mike's coding fix. You're going to need to paste the art on both frames of the upperarmr component.

    [​IMG]

    The one on the left takes care of the "Arms on Legs, Loose, and On his Legs" The one on the right takes care of "Arms Behind Back"