Second mod but first on loader, i need some help... (1 Viewer)

ycdtosa

Potential Patron
Joined
Nov 29, 2012
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.
 

Attachments

  • somethingswrong.jpg
    somethingswrong.jpg
    6.8 KB · Views: 222

mike

Casual Client
Joined
Feb 4, 2012
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");
	}
}
 

dantethedarkprince

Content Creator
Joined
Jun 15, 2012
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.

Project1.jpg


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"
 

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.