Frame 1
_root.mcLOADBAR.gotoAndPlay(Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 26
stop();
_root.vMUSIC = "MUSIC ON";
Frame 27
stop();
_root.mcPAUSE._visible = false;
_root.vPAUSE = false;
_root.vGRAVITY = 2;
_root.vTrueGravity = _root.vGRAVITY;
_root.vACCEL = 1.3;
_root.mcNOODLES.vACCEL = 1.1;
_root.mcNOODLES.vGRAVITY = 2;
_root.vTIMELEFT = 60;
_root.vDIR = "R";
_root.vXMAX = 15;
_root.vXACCEL = 1.15;
_root.vXMOV = 10;
_root.vXDIR = "0";
_root.vSCORE = 0;
_root.vSTATE = "SPAWNING";
_root.vDIRECTION = "0";
_root.vSHOWJUMP = true;
Instance of Symbol 132 MovieClip "mcNOODLE" in Frame 27
onClipEvent (keyDown) {
if (_root.vPAUSE == false) {
if (_root.vSTATE != "SPAWNING") {
if (_root.vSTATE != "CHARGING") {
if (Key.getCode() == 38) {
if (_root.vSTATE == "FALLING") {
_root.vSTATE = "MEDITATING";
_root.mcNOODLE.gotoAndStop("MEDITATE");
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("STARTFLOAT");
}
}
if (_root.vSTATE == "JUMPING") {
_root.vSTATE = "MEDITATING";
_root.mcNOODLE.gotoAndStop("MEDITATE");
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("STARTFLOAT");
}
}
}
if (Key.getCode() == 90) {
if (_root.vSTATE == "CROUCHING") {
_root.vGRAVITY = 70;
_root.mcBIGJUMP._x = _root.mcNOODLE._x;
_root.mcBIGJUMP.play();
_root.vSHOWJUMP = true;
_root.vSTATE = "JUMPING";
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("JUMP");
}
} else if (_root.vSTATE == "STANDING") {
_root.vGRAVITY = 15;
_root.vSHOWJUMP = true;
_root.vSTATE = "JUMPING";
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("JUMPSMALL");
}
} else if (_root.vSTATE == "JUMPING") {
_root.vGRAVITY = 15;
_root.vSHOWJUMP = true;
_root.vSTATE = "JUMPING";
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("JUMPSMALL");
}
_root.vSHOWJUMP = true;
} else if (_root.vSTATE == "FALLING") {
_root.vGRAVITY = 15;
_root.vSTATE = "JUMPING";
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("JUMPSMALL");
}
_root.vSHOWJUMP = true;
} else if (_root.vSTATE == "MEDITATING") {
_root.vGRAVITY = 15;
_root.vSTATE = "JUMPING";
_root.mcSOUNDS.gotoAndStop("JUMPSMALL");
_root.vSHOWJUMP = true;
}
}
if (Key.getCode() == 40) {
if (_root.vSTATE == "STANDING") {
_root.vSTATE = "CROUCHING";
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("CROUCHr");
}
if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("CROUCHl");
}
}
}
if (Key.getCode() == 37) {
if (_root.vSTATE != "CROUCHING") {
if (_root.vDIRECTION == "0") {
_root.vDIRECTION = "L";
_root.vDIR = "L";
}
}
}
if (Key.getCode() == 39) {
if (_root.vSTATE != "CROUCHING") {
if (_root.vDIRECTION == "0") {
_root.vDIRECTION = "R";
_root.vDIR = "R";
}
}
}
if (Key.getCode() == 88) {
_root.vTEMPSTATE = _root.vSTATE;
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndPlay("STARTCHARGE");
}
_root.vSTATE = "CHARGING";
_root.mcCHARGE.gotoAndPlay(1);
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("DBALLr");
} else if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("DBALLl");
}
}
if (Key.getCode() == 80) {
_root.vPAUSE = true;
_root.mcPAUSE._visible = true;
}
} else if (_root.vSTATE == "CHARGING") {
}
}
} else if (_root.vPAUSE == true) {
if (Key.getCode() == 80) {
_root.vPAUSE = false;
_root.mcPAUSE._visible = false;
}
}
}
onClipEvent (keyUp) {
if (_root.vSTATE != "SPAWNING") {
if (_root.vSTATE != "CHARGING") {
if (Key.getCode() == 38) {
if (_root.mcNOODLE._y < 400) {
_root.vSTATE = "FALLING";
_root.mcNOODLE.gotoAndStop("AIR");
_root.vGRAVITY = _root.vTrueGravity;
}
}
if (Key.getCode() == 37) {
_root.vDIRECTION = "0";
}
if (Key.getCode() == 39) {
_root.vDIRECTION = "0";
}
if (Key.getCode() == 40) {
if (_root.vSTATE == "CROUCHING") {
_root.vSTATE = "STANDING";
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
}
}
if (Key.getCode == 90) {
_root.vSHOWJUMP = false;
}
} else if (_root.vSTATE == "CHARGING") {
if (Key.getCode() == 88) {
_root.mcSOUNDS.gotoAndPlay("STOPCHARGE");
_root.vSTATE = _root.vTEMPSTATE;
_root.vDIRECTION = "0";
_root.mcCHARGE._x = -400;
_root.mcCHARGE._y = -400;
_root.mcARROW._x = -400;
_root.mcARROW._y = -400;
if (_root.vSTATE == "CROUCHING") {
_root.vSTATE = "STANDING";
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
} else if ((_root.vSTATE = "STANDING")) {
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
}
_root.mcFIRE.gotoAndStop(_root.mcARROW._currentframe);
_root.mcFIRE.mcBEAM.gotoAndPlay(1);
_root.mcFIRE.mcPOWER.gotoAndPlay(1);
_root.mcFIRE._x = _root.mcNOODLE._x;
_root.mcFIRE._y = _root.mcNOODLE._y;
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("PHASER");
}
}
}
}
}
Frame 28
stop();
Symbol 37 MovieClip Frame 7
stop();
Symbol 42 MovieClip Frame 7
stop();
Symbol 43 Button
on (release) {
_root.nextFrame();
}
Symbol 58 Button
on (release) {
if (_root.vMUSIC == "MUSIC ON") {
_root.vMUSIC = "MUSIC OFF";
_root.mcSOUNDS.gotoAndPlay("STOPMUSIC");
} else if (_root.vMUSIC == "MUSIC OFF") {
_root.vMUSIC = "MUSIC ON";
_root.mcSOUNDS.gotoAndPlay("STARTMUSIC");
}
}
Symbol 68 Button
on (release) {
if (_root.vSOUND == "SOUND ON") {
_root.vSOUND = "SOUND OFF";
} else if (_root.vSOUND == "SOUND OFF") {
_root.vSOUND = "SOUND ON";
}
}
Symbol 69 MovieClip Frame 20
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
gotoAndStop (1);
Symbol 80 MovieClip Frame 3
gotoAndStop (1);
Symbol 80 MovieClip Frame 4
gotoAndStop (1);
Symbol 80 MovieClip Frame 5
gotoAndStop (1);
Symbol 80 MovieClip Frame 6
gotoAndStop (1);
Symbol 80 MovieClip Frame 7
gotoAndStop (1);
Symbol 80 MovieClip Frame 8
gotoAndStop (1);
Symbol 80 MovieClip Frame 9
gotoAndStop (1);
Symbol 80 MovieClip Frame 10
gotoAndStop (1);
Symbol 80 MovieClip Frame 11
gotoAndStop (1);
Symbol 80 MovieClip Frame 12
gotoAndStop (1);
Symbol 80 MovieClip Frame 13
gotoAndStop (1);
Symbol 82 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 15
stop();
Symbol 93 MovieClip Frame 15
stop();
_root.mcFIRE._x = -400;
_root.mcFIRE._y = -400;
_root.mcFIRE.gotoAndStop(1);
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 15
stop();
Symbol 94 MovieClip Frame 28
stop();
Symbol 94 MovieClip Frame 30
stop();
Symbol 132 MovieClip Frame 1
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndPlay("SPAWN");
}
Symbol 132 MovieClip Frame 25
gotoAndPlay ("STANDr");
_root.vSTATE = "STANDING";
Symbol 132 MovieClip Frame 30
stop();
Symbol 132 MovieClip Frame 40
stop();
Symbol 132 MovieClip Frame 50
stop();
Symbol 132 MovieClip Frame 60
stop();
Symbol 132 MovieClip Frame 70
stop();
Symbol 132 MovieClip Frame 80
stop();
Symbol 132 MovieClip Frame 90
stop();
Symbol 132 MovieClip Frame 100
stop();
Symbol 132 MovieClip Frame 110
stop();
Symbol 132 MovieClip Frame 120
stop();
Symbol 132 MovieClip Frame 130
stop();
Symbol 132 MovieClip Frame 140
stop();
Symbol 132 MovieClip Frame 150
stop();
Symbol 156 MovieClip Frame 20
_root.mcPOINTS._x = -400;
_root.mcPOINTS._y = -400;
_root.mcPOINTS._visible = false;
Symbol 159 MovieClip Frame 1
if (_root.vPAUSE == false) {
if (_root.mcBOX._visible == true) {
if (_root.mcFIRE.mcBEAM.mcTESTa.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTb.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTc.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTd.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTe.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTf.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTg.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTh.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTi.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTj.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTk.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTl.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTm.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTn.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTo.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTp.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTq.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTr.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTs.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTt.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTu.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
}
if (_root.vHITBOX == true) {
_root.mcNOODLES._x = _root.mcBOX._x;
_root.mcNOODLES._y = _root.mcBOX._y;
_root.mcNOODLES.vSTATE = "FALLING";
_root.mcNOODLES.gotoAndPlay(1);
_root.mcBOX._x = -500;
_root.mcBOX._y = -500;
_root.mcBOX._visible = false;
_root.mcNOODLES._visible = true;
_root.vHITBOX = false;
}
}
}
Symbol 159 MovieClip Frame 2
if (_root.vPAUSE == false) {
if (_root.mcBOX._visible == true) {
if (_root.mcFIRE.mcBEAM.mcTESTa.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTb.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTc.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTd.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTe.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTf.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTg.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTh.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTi.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTj.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTk.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTl.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTm.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTn.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTo.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTp.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTq.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTr.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTs.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTt.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
} else if (_root.mcFIRE.mcBEAM.mcTESTu.hitTest(_root.mcBOX) == true) {
_root.vHITBOX = true;
}
if (_root.vHITBOX == true) {
_root.mcNOODLES._x = _root.mcBOX._x;
_root.mcNOODLES._y = _root.mcBOX._y;
_root.mcNOODLES.vSTATE = "FALLING";
_root.mcNOODLES.gotoAndPlay(1);
_root.mcBOX._x = -500;
_root.mcBOX._y = -500;
_root.mcBOX._visible = false;
_root.mcNOODLES._visible = true;
_root.vHITBOX = false;
}
}
}
Symbol 161 MovieClip Frame 1
if (_root.vPAUSE == false) {
_root._root.vTIMELEFT = _root.vTIMELEFT * 20;
_root.vTIMELEFT = _root.vTIMELEFT - 1;
_root._root.vTIMELEFT = _root.vTIMELEFT / 20;
if (_root.vTIMELEFT <= 0) {
_root.gotoAndStop(28);
trace("aha!");
}
if (_root.vSTATE != "CHARGING") {
if (_root.vSTATE == "STANDING") {
if (_root.mcNOODLE._y < 400) {
_root.vSHOWJUMP = false;
_root.vSTATE = "FALLING";
_root.mcNOODLE.gotoAndStop("AIR");
}
}
if (_root.vSTATE == "MEDITATING") {
_root.vSHOWJUMP = false;
_root.mcNOODLE.gotoAndStop("MEDITATE");
if (_root.mcNOODLE._y < 400) {
if (_root.mcNOODLE._y > 0) {
if (_root.vUPDOWN == "DOWN") {
_root.mcNOODLE._y = _root.mcNOODLE._y + _root.vGRAVITY;
} else {
_root.mcNOODLE._y = _root.mcNOODLE._y - _root.vGRAVITY;
}
_root.vGRAVITY = _root.vGRAVITY / _root.vACCEL;
}
}
if (_root.mcNOODLE._y >= 400) {
_root.vSTATE = "STANDING";
_root.mcNOODLE._y = 400;
_root.vGRAVITY = _root.vTrueGravity;
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
}
} else {
_root.mcSOUNDS.gotoAndStop("STOPFLOAT");
}
if (_root.vSTATE == "FALLING") {
_root.vUPDOWN = "DOWN";
_root.vSHOWJUMP = false;
_root.mcNOODLE.gotoAndStop("AIR");
if (_root.mcNOODLE._y < 400) {
_root.mcNOODLE._y = _root.mcNOODLE._y + _root.vGRAVITY;
_root.vGRAVITY = _root.vGRAVITY * _root.vACCEL;
}
if (_root.mcNOODLE._y >= 400) {
_root.vSTATE = "STANDING";
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("LAND");
}
_root.mcNOODLE._y = 400;
_root.vGRAVITY = _root.vTrueGravity;
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
}
}
if (_root.vSTATE == "JUMPING") {
if (_root.mcNOODLE._y > 30) {
_root.vUPDOWN = "UP";
_root.mcNOODLE.gotoAndStop("JUMP");
_root.mcNOODLE._y = _root.mcNOODLE._y - _root.vGRAVITY;
_root.vGRAVITY = _root.vGRAVITY / _root.vACCEL;
if (_root.vGRAVITY < 0.5) {
_root.vSTATE = "FALLING";
}
} else {
_root.vGRAVITY = _root.vTrueGravity;
_root.vSTATE = "FALLING";
}
}
if (_root.vXDIR == "L") {
_root.mcNOODLE._x = _root.mcNOODLE._x - _root.vXMOV;
if (_root.vDIRECTION == "L") {
if (_root.vXMOV < _root.vXMAX) {
_root.vXMOV = _root.vXMOV * _root.vXACCEL;
}
}
if (_root.vDIRECTION == "R") {
_root.vXMOV = _root.vXMOV / (_root.vXACCEL * 2);
if (_root.vXMOV < 2) {
_root.vXMOV = 4;
_root.vXDIR = "0";
}
}
if (_root.vDIRECTION == "0") {
_root.vXMOV = _root.vXMOV / _root.vXACCEL;
if (_root.vXMOV < 0.5) {
_root.vXMOV = 4;
_root.vXDIR = "0";
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
if (_root.vSTATE == "CROUCHING") {
_root.mcNOODLE.gotoAndStop("CROUCHl");
}
}
}
}
if (_root.vXDIR == "R") {
_root.mcNOODLE._x = _root.mcNOODLE._x + _root.vXMOV;
if (_root.vDIRECTION == "R") {
if (_root.vXMOV < _root.vXMAX) {
_root.vXMOV = _root.vXMOV * _root.vXACCEL;
}
}
if (_root.vDIRECTION == "L") {
_root.vXMOV = _root.vXMOV / (_root.vXACCEL * 2);
if (_root.vXMOV < 2) {
_root.vXMOV = 4;
_root.vXDIR = "0";
}
}
if (_root.vDIRECTION == "0") {
_root.vXMOV = _root.vXMOV / _root.vXACCEL;
if (_root.vXMOV < 0.5) {
_root.vXMOV = 4;
_root.vXDIR = "0";
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vSTATE == "CROUCHING") {
_root.mcNOODLE.gotoAndStop("CROUCHr");
}
}
}
}
if (_root.vDIRECTION == "L") {
if (_root.vXDIR != "R") {
_root.vXDIR = "L";
}
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("RUNl");
}
}
if (_root.vDIRECTION == "R") {
if (_root.vXDIR != "L") {
_root.vXDIR = "R";
}
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("RUNr");
}
}
if (_root.mcNOODLE._x < 0) {
_root.mcNOODLE._x = 0;
_root.vXDIR = "0";
_root.vXMOV = 4;
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
if (_root.vSTATE == "CROUCHING") {
_root.mcNOODLE.gotoAndStop("CROUCHl");
}
}
if (_root.mcNOODLE._x > 500) {
_root.mcNOODLE._x = 500;
_root.vXDIR = "0";
_root.vXMOV = 4;
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vSTATE == "CROUCHING") {
_root.mcNOODLE.gotoAndStop("CROUCHr");
}
}
if (_root.vSHOWJUMP == true) {
_root.mcJUMP._x = _root.mcNOODLE._x;
_root.mcJUMP._y = _root.mcNOODLE._y;
_root.mcJUMP.gotoAndPlay(2);
_root.mcJUMP._alpha = _root.vGRAVITY * 5;
} else {
_root.mcJUMP._alpha = 0;
_root.mcJUMP._x = -200;
_root.mcJUMP._y = -200;
}
}
if (_root.vSTATE == "CHARGING") {
_root.mcCHARGE._x = _root.mcNOODLE._x;
_root.mcCHARGE._y = _root.mcNOODLE._y;
_root.mcARROW._x = _root.mcNOODLE._x;
_root.mcARROW._y = _root.mcNOODLE._y;
}
}
Symbol 161 MovieClip Frame 2
if (_root.vPAUSE == false) {
_root._root.vTIMELEFT = _root.vTIMELEFT * 20;
_root.vTIMELEFT = _root.vTIMELEFT - 1;
_root._root.vTIMELEFT = _root.vTIMELEFT / 20;
if (_root.vTIMELEFT <= 0) {
_root.gotoAndStop(28);
trace("aha!");
}
if (_root.vSTATE != "CHARGING") {
if (_root.vSTATE == "STANDING") {
if (_root.mcNOODLE._y < 400) {
_root.vSHOWJUMP = false;
_root.vSTATE = "FALLING";
_root.mcNOODLE.gotoAndStop("AIR");
}
}
if (_root.vSTATE == "MEDITATING") {
_root.vSHOWJUMP = false;
_root.mcNOODLE.gotoAndStop("MEDITATE");
if (_root.mcNOODLE._y < 400) {
if (_root.mcNOODLE._y > 0) {
if (_root.vUPDOWN == "DOWN") {
_root.mcNOODLE._y = _root.mcNOODLE._y + _root.vGRAVITY;
} else {
_root.mcNOODLE._y = _root.mcNOODLE._y - _root.vGRAVITY;
}
_root.vGRAVITY = _root.vGRAVITY / _root.vACCEL;
}
}
if (_root.mcNOODLE._y >= 400) {
_root.vSTATE = "STANDING";
_root.mcNOODLE._y = 400;
_root.vGRAVITY = _root.vTrueGravity;
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
}
} else {
_root.mcSOUNDS.gotoAndStop("STOPFLOAT");
}
if (_root.vSTATE == "FALLING") {
_root.vUPDOWN = "DOWN";
_root.vSHOWJUMP = false;
_root.mcNOODLE.gotoAndStop("AIR");
if (_root.mcNOODLE._y < 400) {
_root.mcNOODLE._y = _root.mcNOODLE._y + _root.vGRAVITY;
_root.vGRAVITY = _root.vGRAVITY * _root.vACCEL;
}
if (_root.mcNOODLE._y >= 400) {
_root.vSTATE = "STANDING";
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndStop("LAND");
}
_root.mcNOODLE._y = 400;
_root.vGRAVITY = _root.vTrueGravity;
if (_root.vDIR == "R") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vDIR == "L") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
}
}
if (_root.vSTATE == "JUMPING") {
if (_root.mcNOODLE._y > 30) {
_root.vUPDOWN = "UP";
_root.mcNOODLE.gotoAndStop("JUMP");
_root.mcNOODLE._y = _root.mcNOODLE._y - _root.vGRAVITY;
_root.vGRAVITY = _root.vGRAVITY / _root.vACCEL;
if (_root.vGRAVITY < 0.5) {
_root.vSTATE = "FALLING";
}
} else {
_root.vGRAVITY = _root.vTrueGravity;
_root.vSTATE = "FALLING";
}
}
if (_root.vXDIR == "L") {
_root.mcNOODLE._x = _root.mcNOODLE._x - _root.vXMOV;
if (_root.vDIRECTION == "L") {
if (_root.vXMOV < _root.vXMAX) {
_root.vXMOV = _root.vXMOV * _root.vXACCEL;
}
}
if (_root.vDIRECTION == "R") {
_root.vXMOV = _root.vXMOV / (_root.vXACCEL * 2);
if (_root.vXMOV < 2) {
_root.vXMOV = 4;
_root.vXDIR = "0";
}
}
if (_root.vDIRECTION == "0") {
_root.vXMOV = _root.vXMOV / _root.vXACCEL;
if (_root.vXMOV < 0.5) {
_root.vXMOV = 4;
_root.vXDIR = "0";
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
if (_root.vSTATE == "CROUCHING") {
_root.mcNOODLE.gotoAndStop("CROUCHl");
}
}
}
}
if (_root.vXDIR == "R") {
_root.mcNOODLE._x = _root.mcNOODLE._x + _root.vXMOV;
if (_root.vDIRECTION == "R") {
if (_root.vXMOV < _root.vXMAX) {
_root.vXMOV = _root.vXMOV * _root.vXACCEL;
}
}
if (_root.vDIRECTION == "L") {
_root.vXMOV = _root.vXMOV / (_root.vXACCEL * 2);
if (_root.vXMOV < 2) {
_root.vXMOV = 4;
_root.vXDIR = "0";
}
}
if (_root.vDIRECTION == "0") {
_root.vXMOV = _root.vXMOV / _root.vXACCEL;
if (_root.vXMOV < 0.5) {
_root.vXMOV = 4;
_root.vXDIR = "0";
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vSTATE == "CROUCHING") {
_root.mcNOODLE.gotoAndStop("CROUCHr");
}
}
}
}
if (_root.vDIRECTION == "L") {
if (_root.vXDIR != "R") {
_root.vXDIR = "L";
}
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("RUNl");
}
}
if (_root.vDIRECTION == "R") {
if (_root.vXDIR != "L") {
_root.vXDIR = "R";
}
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("RUNr");
}
}
if (_root.mcNOODLE._x < 0) {
_root.mcNOODLE._x = 0;
_root.vXDIR = "0";
_root.vXMOV = 4;
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("STANDl");
}
if (_root.vSTATE == "CROUCHING") {
_root.mcNOODLE.gotoAndStop("CROUCHl");
}
}
if (_root.mcNOODLE._x > 500) {
_root.mcNOODLE._x = 500;
_root.vXDIR = "0";
_root.vXMOV = 4;
if (_root.vSTATE == "STANDING") {
_root.mcNOODLE.gotoAndStop("STANDr");
}
if (_root.vSTATE == "CROUCHING") {
_root.mcNOODLE.gotoAndStop("CROUCHr");
}
}
if (_root.vSHOWJUMP == true) {
_root.mcJUMP._x = _root.mcNOODLE._x;
_root.mcJUMP._y = _root.mcNOODLE._y;
_root.mcJUMP.gotoAndPlay(2);
_root.mcJUMP._alpha = _root.vGRAVITY * 5;
} else {
_root.mcJUMP._alpha = 0;
_root.mcJUMP._x = -200;
_root.mcJUMP._y = -200;
}
}
if (_root.vSTATE == "CHARGING") {
_root.mcCHARGE._x = _root.mcNOODLE._x;
_root.mcCHARGE._y = _root.mcNOODLE._y;
_root.mcARROW._x = _root.mcNOODLE._x;
_root.mcARROW._y = _root.mcNOODLE._y;
}
}
Symbol 182 MovieClip Frame 1
if (_root.mcNOODLES.vSTATE == "FALLING") {
_root.mcNOODLES._y = _root.mcNOODLES._y + _root.mcNOODLES.vGRAVITY;
_root.mcNOODLES.vGRAVITY = _root.mcNOODLES.vGRAVITY * _root.mcNOODLES.vACCEL;
if (_root.mcNOODLES._y > 400) {
_root.mcNOODLES._y = 400;
_root.mcNOODLES.gotoAndPlay(3);
}
}
if (this.hitTest(_root.mcNOODLE) == true) {
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndPlay("PICKUP");
}
gotoAndPlay (21);
}
Symbol 182 MovieClip Frame 2
if (_root.mcNOODLES.vSTATE == "FALLING") {
_root.mcNOODLES._y = _root.mcNOODLES._y + _root.mcNOODLES.vGRAVITY;
_root.mcNOODLES.vGRAVITY = _root.mcNOODLES.vGRAVITY * _root.mcNOODLES.vACCEL;
if (_root.mcNOODLES._y > 400) {
_root.mcNOODLES._y = 400;
_root.mcNOODLES.gotoAndPlay(3);
}
}
gotoAndPlay (1);
if (this.hitTest(_root.mcNOODLE) == true) {
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndPlay("PICKUP");
}
gotoAndPlay (21);
}
Symbol 182 MovieClip Frame 3
if (this.hitTest(_root.mcNOODLE) == true) {
gotoAndPlay (21);
}
Symbol 182 MovieClip Frame 8
if (this.hitTest(_root.mcNOODLE) == true) {
gotoAndPlay (21);
}
Symbol 182 MovieClip Frame 14
if (this.hitTest(_root.mcNOODLE) == true) {
gotoAndPlay (21);
}
Symbol 182 MovieClip Frame 17
if (this.hitTest(_root.mcNOODLE) == true) {
gotoAndPlay (21);
}
Symbol 182 MovieClip Frame 19
_root.mcNOODLES.vGRAVITY = 2;
if (this.hitTest(_root.mcNOODLE) == true) {
gotoAndPlay (21);
}
Symbol 182 MovieClip Frame 20
if (this.hitTest(_root.mcNOODLE) == true) {
gotoAndPlay (21);
}
gotoAndPlay (19);
Symbol 182 MovieClip Frame 21
_root.mcBOX._visible = true;
_root.mcBOX._x = random(500);
_root.mcBOX._y = random(400);
_root.mcPOINTS._x = this._x;
_root.mcPOINTS._y = this._y;
_root.mcPOINTS._visible = true;
_root.mcPOINTS.gotoAndPlay(1);
_root.vSCORE = _root.vSCORE + 100;
if (_root.vSOUND == "SOUND ON") {
_root.mcSOUNDS.gotoAndPlay("PICKUP");
}
Symbol 182 MovieClip Frame 30
this._visible = false;
this._x = -400;
this._y = -400;
Symbol 205 Button
on (press) {
_root.gotoAndStop(26);
}