Frame 1
NewgroundsAPI.connectMovie(5191);
Frame 2
totalBytes = getBytesTotal();
loadedBytes = getBytesLoaded();
loadPercent = Math.round(100 * (loadedBytes / totalBytes));
loadBar.loadBarMask._width = loadBox._width * (loadPercent / 100);
if (loadedBytes == totalBytes) {
gotoAndPlay ("menu");
} else {
gotoAndPlay ("preloader");
}
Frame 10
pl1Ready = false;
pl2Ready = false;
pl3Ready = false;
pl4Ready = false;
pl1Special = false;
menuOn = true;
singlePlayer = true;
playerLevel = 1;
levelCount = 1;
pointsNeeded = 0;
highScore = highestLevel;
if (highScore == undefined) {
highScore = 0;
}
addTime = 20;
accel = 0.5;
decel = 0.4;
maxVel = 5;
edge = 20;
push = 4;
colorFade = 0.5;
avatarCount = 0;
minCount = 1;
secCount = 0;
miniSec = 60;
hitCountMax = 30;
Mouse.show();
blueNodeIn = true;
redNodeIn = true;
yellowNodeIn = true;
blueUp = true;
redUp = true;
yellowUp = false;
ground._alpha = 0;
duhTime = 80;
botScore = 0;
ran1Var = 100;
ran1Num = random(ran1Var);
ran1Pick = 1;
bot1XMax = 1;
bot1YMax = 1;
destination1._x = 0;
destination1._y = 0;
duhTimer1 = duhTime;
ran2Var = 100;
ran2Num = random(ran2Var);
ran2Pick = 2;
bot2XMax = 2;
bot2YMax = 2;
destination2._x = 0;
destination2._y = 0;
duhTimer2 = duhTime;
ran3Var = 100;
ran3Num = random(ran3Var);
ran3Pick = 3;
bot3XMax = 3;
bot3YMax = 3;
destination3._x = 0;
destination3._y = 0;
duhTimer3 = duhTime;
asdXVel = 0;
asdYVel = 0;
asdCount = 0;
asdScore = 0;
asdOut = 0;
asdHitCount = 0;
arrowXVel = 0;
arrowYVel = 0;
arrowCount = 0;
arrowScore = 0;
arrowOut = 0;
arrowHitCount = 0;
numXVel = 0;
numYVel = 0;
numCount = 0;
numScore = 0;
numOut = 0;
numHitCount = 0;
jklXVel = 0;
jklYVel = 0;
jklCount = 0;
jklScore = 0;
jklOut = 0;
jklHitCount = 0;
_root.createEmptyMovieClip("avatarLayer", 100);
this.onEnterFrame = function () {
titleName.titleColor._rotation = titleName.titleColor._rotation - 0.5;
};
generateAvatar = function (x, y, type) {
if (type == "asd+Avatar") {
avatarName = "asdAvatar";
} else {
avatarName = type;
}
avatarLayer.attachMovie(type, avatarName, avatarCount);
avatarLayer[avatarName]._x = x;
avatarLayer[avatarName]._y = y;
avatarCount++;
};
var colorantMusic = new Sound();
colorantMusic.attachSound("colorantMusic.wav");
var asdSound = new Sound();
asdSound.attachSound("asdSfx.wav");
var jklSound = new Sound();
jklSound.attachSound("jklSfx.wav");
var arrowSound = new Sound();
arrowSound.attachSound("arrowSfx.wav");
var numSound = new Sound();
numSound.attachSound("numSfx.wav");
if (musicCount == undefined) {
musicDis = true;
colorantMusic.start(0, 200);
musicCount = 0;
}
if (!musicDis) {
musicOff._x = 510;
musicOff._y = 26;
musicOn._y = musicOn._y - 300;
}
asdMove = function () {
pl1Score = asdScore;
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x + asdXVel;
if (Key.isDown(65)) {
asdXVel = asdXVel - accel;
} else if (Key.isDown(68)) {
asdXVel = asdXVel + accel;
} else {
asdXVel = asdXVel * decel;
}
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y + asdYVel;
if (Key.isDown(87)) {
asdYVel = asdYVel - accel;
} else if (Key.isDown(83)) {
asdYVel = asdYVel + accel;
} else {
asdYVel = asdYVel * decel;
}
if (asdXVel > maxVel) {
asdXVel = maxVel;
}
if (asdXVel < (-maxVel)) {
asdXVel = -maxVel;
}
if (asdYVel > maxVel) {
asdYVel = maxVel;
}
if (asdYVel < (-maxVel)) {
asdYVel = -maxVel;
}
if (!avatarLayer.asdAvatar.hitTest(ground)) {
asdXVel = -asdXVel;
asdYVel = -asdYVel;
}
if (!ground.hitTest(avatarLayer.asdAvatar._x + edge, avatarLayer.asdAvatar._y, true)) {
asdXVel = -asdXVel;
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x - push;
}
if (!ground.hitTest(avatarLayer.asdAvatar._x - edge, avatarLayer.asdAvatar._y, true)) {
asdXVel = -asdXVel;
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x + push;
}
if (!ground.hitTest(avatarLayer.asdAvatar._x, avatarLayer.asdAvatar._y + edge, true)) {
asdYVel = -asdYVel;
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y - push;
}
if (!ground.hitTest(avatarLayer.asdAvatar._x, avatarLayer.asdAvatar._y - edge, true)) {
asdYVel = -asdYVel;
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y + push;
}
if (!ground.hitTest(avatarLayer.asdAvatar._x, avatarLayer.asdAvatar._y, true)) {
asdOut++;
if (asdOut > 20) {
avatarLayer.asdAvatar._x = 300;
avatarLayer.asdAvatar._y = 300;
asdXVel = 0;
asdYVel = 0;
}
} else {
asdOut = 0;
}
if (avatarLayer.asdAvatar.blue.hitTest(avatarLayer.arrowAvatar.yellow || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
asdScore++;
arrowHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.yellow.hitTest(avatarLayer.arrowAvatar.red || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
asdScore++;
arrowHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.red.hitTest(avatarLayer.arrowAvatar.blue || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
asdScore++;
arrowHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.blue.hitTest(avatarLayer.numAvatar.yellow || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
asdScore++;
numHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.yellow.hitTest(avatarLayer.numAvatar.red || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
asdScore++;
numHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.red.hitTest(avatarLayer.numAvatar.blue || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
asdScore++;
numHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.blue.hitTest(avatarLayer.jklAvatar.yellow || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
asdScore++;
jklHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.yellow.hitTest(avatarLayer.jklAvatar.red || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
asdScore++;
jklHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.red.hitTest(avatarLayer.jklAvatar.blue || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
asdScore++;
jklHitCount = hitCountMax;
asdSound.start(0, 0);
}
if (avatarLayer.asdAvatar.hitTest(avatarLayer.arrowAvatar)) {
asdYVel = -asdYVel;
asdXVel = -asdXVel;
if (avatarLayer.asdAvatar._x > avatarLayer.arrowAvatar._x) {
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x + push;
}
if (avatarLayer.asdAvatar._x < avatarLayer.arrowAvatar._x) {
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x - push;
}
if (avatarLayer.asdAvatar._y > avatarLayer.arrowAvatar._y) {
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y + push;
}
if (avatarLayer.asdAvatar._y < avatarLayer.arrowAvatar._y) {
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y - push;
}
}
if (avatarLayer.asdAvatar.hitTest(avatarLayer.numAvatar)) {
asdYVel = -asdYVel;
asdXVel = -asdXVel;
if (avatarLayer.asdAvatar._x > avatarLayer.numAvatar._x) {
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x + push;
}
if (avatarLayer.asdAvatar._x < avatarLayer.numAvatar._x) {
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x - push;
}
if (avatarLayer.asdAvatar._y > avatarLayer.numAvatar._y) {
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y + push;
}
if (avatarLayer.asdAvatar._y < avatarLayer.numAvatar._y) {
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y - push;
}
}
if (avatarLayer.asdAvatar.hitTest(avatarLayer.jklAvatar)) {
asdYVel = -asdYVel;
asdXVel = -asdXVel;
if (avatarLayer.asdAvatar._x > avatarLayer.jklAvatar._x) {
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x + push;
}
if (avatarLayer.asdAvatar._x < avatarLayer.jklAvatar._x) {
avatarLayer.asdAvatar._x = avatarLayer.asdAvatar._x - push;
}
if (avatarLayer.asdAvatar._y > avatarLayer.jklAvatar._y) {
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y + push;
}
if (avatarLayer.asdAvatar._y < avatarLayer.jklAvatar._y) {
avatarLayer.asdAvatar._y = avatarLayer.asdAvatar._y - push;
}
}
if (asdCount > 0) {
asdCount = asdCount - colorFade;
}
if (asdCount <= 0) {
asdHue = white;
avatarLayer.asdAvatar.gotoAndStop("white");
hudColor1.gotoAndStop("white");
}
if (avatarLayer.asdAvatar.hitTest(_root.blueNode)) {
asdCount = 100;
asdHue = blue;
avatarLayer.asdAvatar.gotoAndStop("blue");
hudColor1.gotoAndStop("blue");
}
if (avatarLayer.asdAvatar.hitTest(_root.redNode)) {
asdCount = 100;
asdHue = red;
avatarLayer.asdAvatar.gotoAndStop("red");
hudColor1.gotoAndStop("red");
}
if (avatarLayer.asdAvatar.hitTest(_root.yellowNode)) {
asdCount = 100;
asdHuedw = yellow;
avatarLayer.asdAvatar.gotoAndStop("yellow");
hudColor1.gotoAndStop("yellow");
}
if (asdHitCount > 0) {
asdHitCount--;
avatarLayer.asdAvatar._rotation = avatarLayer.asdAvatar._rotation + 12;
}
};
arrowMove = function () {
pl3Score = arrowScore;
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x + arrowXVel;
if (singlePlayer == false) {
if (Key.isDown(37)) {
arrowXVel = arrowXVel - accel;
} else if (Key.isDown(39)) {
arrowXVel = arrowXVel + accel;
} else {
arrowXVel = arrowXVel * decel;
}
}
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y + arrowYVel;
if (singlePlayer == false) {
if (Key.isDown(38)) {
arrowYVel = arrowYVel - accel;
} else if (Key.isDown(40)) {
arrowYVel = arrowYVel + accel;
} else {
arrowYVel = arrowYVel * decel;
}
}
if (arrowXVel > maxVel) {
arrowXVel = maxVel;
}
if (arrowXVel < (-maxVel)) {
arrowXVel = -maxVel;
}
if (arrowYVel > maxVel) {
arrowYVel = maxVel;
}
if (arrowYVel < (-maxVel)) {
arrowYVel = -maxVel;
}
if (!avatarLayer.arrowAvatar.hitTest(ground)) {
arrowXVel = -arrowXVel;
arrowYVel = -arrowYVel;
}
if (!ground.hitTest(avatarLayer.arrowAvatar._x + edge, avatarLayer.arrowAvatar._y, true)) {
arrowXVel = -arrowXVel;
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x - push;
}
if (!ground.hitTest(avatarLayer.arrowAvatar._x - edge, avatarLayer.arrowAvatar._y, true)) {
arrowXVel = -arrowXVel;
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x + push;
}
if (!ground.hitTest(avatarLayer.arrowAvatar._x, avatarLayer.arrowAvatar._y + edge, true)) {
arrowYVel = -arrowYVel;
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y - push;
}
if (!ground.hitTest(avatarLayer.arrowAvatar._x, avatarLayer.arrowAvatar._y - edge, true)) {
arrowYVel = -arrowYVel;
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y + push;
}
if (!ground.hitTest(avatarLayer.arrowAvatar._x, avatarLayer.arrowAvatar._y, true)) {
arrowOut++;
if (arrowOut > 20) {
avatarLayer.arrowAvatar._x = 350;
avatarLayer.arrowAvatar._y = 350;
arrowXVel = 0;
arrowYVel = 0;
}
} else {
arrowOut = 0;
}
if (avatarLayer.arrowAvatar.blue.hitTest(avatarLayer.asdAvatar.yellow || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
arrowScore++;
botScore++;
asdHitCount = hitCountMax;
arrowSound.start(0, 0);
}
if (avatarLayer.arrowAvatar.yellow.hitTest(avatarLayer.asdAvatar.red || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
arrowScore++;
botScore++;
asdHitCount = hitCountMax;
arrowSound.start(0, 0);
}
if (avatarLayer.arrowAvatar.red.hitTest(avatarLayer.asdAvatar.blue || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
arrowScore++;
botScore++;
asdHitCount = hitCountMax;
arrowSound.start(0, 0);
}
if (!singlePlayer) {
if (avatarLayer.arrowAvatar.blue.hitTest(avatarLayer.numAvatar.yellow || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
arrowScore++;
numHitCount = hitCountMax;
arrowSound.start(0, 0);
}
if (avatarLayer.arrowAvatar.yellow.hitTest(avatarLayer.numAvatar.red || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
arrowScore++;
numHitCount = hitCountMax;
arrowSound.start(0, 0);
}
if (avatarLayer.arrowAvatar.red.hitTest(avatarLayer.numAvatar.blue || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
arrowScore++;
numHitCount = hitCountMax;
arrowSound.start(0, 0);
}
if (avatarLayer.arrowAvatar.blue.hitTest(avatarLayer.jklAvatar.yellow || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
arrowScore++;
jklHitCount = hitCountMax;
arrowSound.start(0, 0);
}
if (avatarLayer.arrowAvatar.yellow.hitTest(avatarLayer.jklAvatar.red || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
arrowScore++;
jklHitCount = hitCountMax;
arrowSound.start(0, 0);
}
if (avatarLayer.arrowAvatar.red.hitTest(avatarLayer.jklAvatar.blue || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
arrowScore++;
jklHitCount = hitCountMax;
arrowSound.start(0, 0);
}
}
if (avatarLayer.arrowAvatar.hitTest(avatarLayer.asdAvatar)) {
arrowYVel = -arrowYVel;
arrowXVel = -arrowXVel;
if (avatarLayer.arrowAvatar._x > avatarLayer.asdAvatar._x) {
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x + push;
}
if (avatarLayer.arrowAvatar._x < avatarLayer.asdAvatar._x) {
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x - push;
}
if (avatarLayer.arrowAvatar._y > avatarLayer.asdAvatar._y) {
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y + push;
}
if (avatarLayer.arrowAvatar._y < avatarLayer.asdAvatar._y) {
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y - push;
}
}
if (!singlePlayer) {
if (avatarLayer.arrowAvatar.hitTest(avatarLayer.numAvatar)) {
arrowYVel = -arrowYVel;
arrowXVel = -arrowXVel;
if (avatarLayer.arrowAvatar._x > avatarLayer.numAvatar._x) {
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x + push;
}
if (avatarLayer.arrowAvatar._x < avatarLayer.numAvatar._x) {
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x - push;
}
if (avatarLayer.arrowAvatar._y > avatarLayer.numAvatar._y) {
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y + push;
}
if (avatarLayer.arrowAvatar._y < avatarLayer.numAvatar._y) {
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y - push;
}
}
if (avatarLayer.arrowAvatar.hitTest(avatarLayer.jklAvatar)) {
arrowYVel = -arrowYVel;
arrowXVel = -arrowXVel;
if (avatarLayer.arrowAvatar._x > avatarLayer.jklAvatar._x) {
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x + push;
}
if (avatarLayer.arrowAvatar._x < avatarLayer.jklAvatar._x) {
avatarLayer.arrowAvatar._x = avatarLayer.arrowAvatar._x - push;
}
if (avatarLayer.arrowAvatar._y > avatarLayer.jklAvatar._y) {
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y + push;
}
if (avatarLayer.arrowAvatar._y < avatarLayer.jklAvatar._y) {
avatarLayer.arrowAvatar._y = avatarLayer.arrowAvatar._y - push;
}
}
}
if (arrowCount > 0) {
arrowCount = arrowCount - colorFade;
}
if (arrowCount <= 0) {
arrowHue = white;
avatarLayer.arrowAvatar.gotoAndStop("white");
hudColor3.gotoAndStop("white");
}
if (avatarLayer.arrowAvatar.hitTest(_root.blueNode)) {
arrowCount = 100;
arrowHue = blue;
avatarLayer.arrowAvatar.gotoAndStop("blue");
hudColor3.gotoAndStop("blue");
}
if (avatarLayer.arrowAvatar.hitTest(_root.redNode)) {
arrowCount = 100;
arrowHue = red;
avatarLayer.arrowAvatar.gotoAndStop("red");
hudColor3.gotoAndStop("red");
}
if (avatarLayer.arrowAvatar.hitTest(_root.yellowNode)) {
arrowCount = 100;
arrowHuedw = yellow;
avatarLayer.arrowAvatar.gotoAndStop("yellow");
hudColor3.gotoAndStop("yellow");
}
if (arrowHitCount > 0) {
arrowHitCount--;
avatarLayer.arrowAvatar._rotation = avatarLayer.arrowAvatar._rotation + 12;
}
};
numMove = function () {
pl4Score = numScore;
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x + numXVel;
if (singlePlayer == false) {
if (Key.isDown(100)) {
numXVel = numXVel - accel;
} else if (Key.isDown(102)) {
numXVel = numXVel + accel;
} else {
numXVel = numXVel * decel;
}
}
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y + numYVel;
if (singlePlayer == false) {
if (Key.isDown(104)) {
numYVel = numYVel - accel;
} else if (Key.isDown(98) || (Key.isDown(101))) {
numYVel = numYVel + accel;
} else {
numYVel = numYVel * decel;
}
}
if (numXVel > maxVel) {
numXVel = maxVel;
}
if (numXVel < (-maxVel)) {
numXVel = -maxVel;
}
if (numYVel > maxVel) {
numYVel = maxVel;
}
if (numYVel < (-maxVel)) {
numYVel = -maxVel;
}
if (!avatarLayer.numAvatar.hitTest(ground)) {
numXVel = -numXVel;
numYVel = -numYVel;
}
if (!ground.hitTest(avatarLayer.numAvatar._x + edge, avatarLayer.numAvatar._y, true)) {
numXVel = -numXVel;
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x - push;
}
if (!ground.hitTest(avatarLayer.numAvatar._x - edge, avatarLayer.numAvatar._y, true)) {
numXVel = -numXVel;
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x + push;
}
if (!ground.hitTest(avatarLayer.numAvatar._x, avatarLayer.numAvatar._y + edge, true)) {
numYVel = -numYVel;
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y - push;
}
if (!ground.hitTest(avatarLayer.numAvatar._x, avatarLayer.numAvatar._y - edge, true)) {
numYVel = -numYVel;
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y + push;
}
if (!ground.hitTest(avatarLayer.numAvatar._x, avatarLayer.numAvatar._y, true)) {
numOut++;
if (numOut > 20) {
avatarLayer.numAvatar._x = 350;
avatarLayer.numAvatar._y = 350;
numXVel = 0;
numYVel = 0;
}
} else {
numOut = 0;
}
if (avatarLayer.numAvatar.blue.hitTest(avatarLayer.asdAvatar.yellow || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
numScore++;
botScore++;
asdHitCount = hitCountMax;
numSound.start(0, 0);
}
if (avatarLayer.numAvatar.yellow.hitTest(avatarLayer.asdAvatar.red || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
numScore++;
botScore++;
asdHitCount = hitCountMax;
numSound.start(0, 0);
}
if (avatarLayer.numAvatar.red.hitTest(avatarLayer.asdAvatar.blue || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
numScore++;
botScore++;
asdHitCount = hitCountMax;
numSound.start(0, 0);
}
if (!singlePlayer) {
if (avatarLayer.numAvatar.blue.hitTest(avatarLayer.arrowAvatar.yellow || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
numScore++;
arrowHitCount = hitCountMax;
numSound.start(0, 0);
}
if (avatarLayer.numAvatar.yellow.hitTest(avatarLayer.arrowAvatar.red || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
numScore++;
arrowHitCount = hitCountMax;
numSound.start(0, 0);
}
if (avatarLayer.numAvatar.red.hitTest(avatarLayer.arrowAvatar.blue || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
numScore++;
arrowHitCount = hitCountMax;
numSound.start(0, 0);
}
if (avatarLayer.numAvatar.blue.hitTest(avatarLayer.jklAvatar.yellow || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
numScore++;
jklHitCount = hitCountMax;
numSound.start(0, 0);
}
if (avatarLayer.numAvatar.yellow.hitTest(avatarLayer.jklAvatar.red || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
numScore++;
jklHitCount = hitCountMax;
numSound.start(0, 0);
}
if (avatarLayer.numAvatar.red.hitTest(avatarLayer.jklAvatar.blue || (avatarLayer.jklAvatar.white)) && (jklHitCount == 0)) {
numScore++;
jklHitCount = hitCountMax;
numSound.start(0, 0);
}
}
if (avatarLayer.numAvatar.hitTest(avatarLayer.asdAvatar)) {
numYVel = -numYVel;
numXVel = -numXVel;
if (avatarLayer.numAvatar._x > avatarLayer.asdAvatar._x) {
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x + push;
}
if (avatarLayer.numAvatar._x < avatarLayer.asdAvatar._x) {
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x - push;
}
if (avatarLayer.numAvatar._y > avatarLayer.asdAvatar._y) {
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y + push;
}
if (avatarLayer.numAvatar._y < avatarLayer.asdAvatar._y) {
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y - push;
}
}
if (!singlePlayer) {
if (avatarLayer.numAvatar.hitTest(avatarLayer.arrowAvatar)) {
numYVel = -numYVel;
numXVel = -numXVel;
if (avatarLayer.numAvatar._x > avatarLayer.arrowAvatar._x) {
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x + push;
}
if (avatarLayer.numAvatar._x < avatarLayer.arrowAvatar._x) {
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x - push;
}
if (avatarLayer.numAvatar._y > avatarLayer.arrowAvatar._y) {
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y + push;
}
if (avatarLayer.numAvatar._y < avatarLayer.arrowAvatar._y) {
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y - push;
}
}
if (avatarLayer.numAvatar.hitTest(avatarLayer.jklAvatar)) {
numYVel = -numYVel;
numXVel = -numXVel;
if (avatarLayer.numAvatar._x > avatarLayer.jklAvatar._x) {
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x + push;
}
if (avatarLayer.numAvatar._x < avatarLayer.jklAvatar._x) {
avatarLayer.numAvatar._x = avatarLayer.numAvatar._x - push;
}
if (avatarLayer.numAvatar._y > avatarLayer.jklAvatar._y) {
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y + push;
}
if (avatarLayer.numAvatar._y < avatarLayer.jklAvatar._y) {
avatarLayer.numAvatar._y = avatarLayer.numAvatar._y - push;
}
}
}
if (numCount > 0) {
numCount = numCount - colorFade;
}
if (numCount <= 0) {
avatarLayer.numAvatar.gotoAndStop("white");
hudColor4.gotoAndStop("white");
}
if (avatarLayer.numAvatar.hitTest(_root.blueNode)) {
numCount = 100;
avatarLayer.numAvatar.gotoAndStop("blue");
hudColor4.gotoAndStop("blue");
}
if (avatarLayer.numAvatar.hitTest(_root.redNode)) {
numCount = 100;
avatarLayer.numAvatar.gotoAndStop("red");
hudColor4.gotoAndStop("red");
}
if (avatarLayer.numAvatar.hitTest(_root.yellowNode)) {
numCount = 100;
avatarLayer.numAvatar.gotoAndStop("yellow");
hudColor4.gotoAndStop("yellow");
}
if (numHitCount > 0) {
numHitCount--;
avatarLayer.numAvatar._rotation = avatarLayer.numAvatar._rotation + 12;
}
};
jklMove = function () {
pl2Score = jklScore;
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x + jklXVel;
if (singlePlayer == false) {
if (Key.isDown(74)) {
jklXVel = jklXVel - accel;
} else if (Key.isDown(76)) {
jklXVel = jklXVel + accel;
} else {
jklXVel = jklXVel * decel;
}
}
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y + jklYVel;
if (singlePlayer == false) {
if (Key.isDown(73)) {
jklYVel = jklYVel - accel;
} else if (Key.isDown(75)) {
jklYVel = jklYVel + accel;
} else {
jklYVel = jklYVel * decel;
}
}
if (jklXVel > maxVel) {
jklXVel = maxVel;
}
if (jklXVel < (-maxVel)) {
jklXVel = -maxVel;
}
if (jklYVel > maxVel) {
jklYVel = maxVel;
}
if (jklYVel < (-maxVel)) {
jklYVel = -maxVel;
}
if (!avatarLayer.jklAvatar.hitTest(ground)) {
jklXVel = -jklXVel;
jklYVel = -jklYVel;
}
if (!ground.hitTest(avatarLayer.jklAvatar._x + edge, avatarLayer.jklAvatar._y, true)) {
jklXVel = -jklXVel;
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x - push;
}
if (!ground.hitTest(avatarLayer.jklAvatar._x - edge, avatarLayer.jklAvatar._y, true)) {
jklXVel = -jklXVel;
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x + push;
}
if (!ground.hitTest(avatarLayer.jklAvatar._x, avatarLayer.jklAvatar._y + edge, true)) {
jklYVel = -jklYVel;
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y - push;
}
if (!ground.hitTest(avatarLayer.jklAvatar._x, avatarLayer.jklAvatar._y - edge, true)) {
jklYVel = -jklYVel;
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y + push;
}
if (!ground.hitTest(avatarLayer.jklAvatar._x, avatarLayer.jklAvatar._y, true)) {
jklOut++;
if (jklOut > 20) {
avatarLayer.jklAvatar._x = 350;
avatarLayer.jklAvatar._y = 350;
jklXVel = 0;
jklYVel = 0;
}
} else {
jklOut = 0;
}
if (avatarLayer.jklAvatar.blue.hitTest(avatarLayer.asdAvatar.yellow || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
jklScore++;
botScore++;
asdHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (avatarLayer.jklAvatar.yellow.hitTest(avatarLayer.asdAvatar.red || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
jklScore++;
botScore++;
asdHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (avatarLayer.jklAvatar.red.hitTest(avatarLayer.asdAvatar.blue || (avatarLayer.asdAvatar.white)) && (asdHitCount == 0)) {
jklScore++;
botScore++;
asdHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (!singlePlayer) {
if (avatarLayer.jklAvatar.blue.hitTest(avatarLayer.arrowAvatar.yellow || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
jklScore++;
arrowHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (avatarLayer.jklAvatar.yellow.hitTest(avatarLayer.arrowAvatar.red || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
jklScore++;
arrowHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (avatarLayer.jklAvatar.red.hitTest(avatarLayer.arrowAvatar.blue || (avatarLayer.arrowAvatar.white)) && (arrowHitCount == 0)) {
jklScore++;
arrowHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (avatarLayer.jklAvatar.blue.hitTest(avatarLayer.numAvatar.yellow || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
jklScore++;
numHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (avatarLayer.jklAvatar.yellow.hitTest(avatarLayer.numAvatar.red || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
jklScore++;
numHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (avatarLayer.jklAvatar.red.hitTest(avatarLayer.numAvatar.blue || (avatarLayer.numAvatar.white)) && (numHitCount == 0)) {
jklScore++;
numHitCount = hitCountMax;
jklSound.start(0, 0);
}
if (avatarLayer.jklAvatar.hitTest(avatarLayer.arrowAvatar)) {
jklYVel = -jklYVel;
jklXVel = -jklXVel;
if (avatarLayer.jklAvatar._x > avatarLayer.arrowAvatar._x) {
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x + push;
}
if (avatarLayer.jklAvatar._x < avatarLayer.arrowAvatar._x) {
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x - push;
}
if (avatarLayer.jklAvatar._y > avatarLayer.arrowAvatar._y) {
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y + push;
}
if (avatarLayer.jklAvatar._y < avatarLayer.arrowAvatar._y) {
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y - push;
}
}
if (avatarLayer.jklAvatar.hitTest(avatarLayer.numAvatar)) {
jklYVel = -jklYVel;
jklXVel = -jklXVel;
if (avatarLayer.jklAvatar._x > avatarLayer.numAvatar._x) {
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x + push;
}
if (avatarLayer.jklAvatar._x < avatarLayer.numAvatar._x) {
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x - push;
}
if (avatarLayer.jklAvatar._y > avatarLayer.numAvatar._y) {
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y + push;
}
if (avatarLayer.jklAvatar._y < avatarLayer.numAvatar._y) {
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y - push;
}
}
}
if (avatarLayer.jklAvatar.hitTest(avatarLayer.asdAvatar)) {
jklYVel = -jklYVel;
jklXVel = -jklXVel;
if (avatarLayer.jklAvatar._x > avatarLayer.asdAvatar._x) {
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x + push;
}
if (avatarLayer.jklAvatar._x < avatarLayer.asdAvatar._x) {
avatarLayer.jklAvatar._x = avatarLayer.jklAvatar._x - push;
}
if (avatarLayer.jklAvatar._y > avatarLayer.asdAvatar._y) {
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y + push;
}
if (avatarLayer.jklAvatar._y < avatarLayer.asdAvatar._y) {
avatarLayer.jklAvatar._y = avatarLayer.jklAvatar._y - push;
}
}
if (jklCount > 0) {
jklCount = jklCount - colorFade;
}
if (jklCount <= 0) {
avatarLayer.jklAvatar.gotoAndStop("white");
hudColor2.gotoAndStop("white");
}
if (avatarLayer.jklAvatar.hitTest(_root.blueNode)) {
jklCount = 100;
avatarLayer.jklAvatar.gotoAndStop("blue");
hudColor2.gotoAndStop("blue");
}
if (avatarLayer.jklAvatar.hitTest(_root.redNode)) {
jklCount = 100;
avatarLayer.jklAvatar.gotoAndStop("red");
hudColor2.gotoAndStop("red");
}
if (avatarLayer.jklAvatar.hitTest(_root.yellowNode)) {
jklCount = 100;
avatarLayer.jklAvatar.gotoAndStop("yellow");
hudColor2.gotoAndStop("yellow");
}
if (jklHitCount > 0) {
jklHitCount--;
avatarLayer.jklAvatar._rotation = avatarLayer.jklAvatar._rotation + 12;
}
};
stats = function () {
asdBar._width = asdBox._width * (asdCount / 100);
arrowBar._width = arrowBox._width * (arrowCount / 100);
numBar._width = numBox._width * (numCount / 100);
jklBar._width = jklBox._width * (jklCount / 100);
pointsNeeded = (3 + botScore) - asdScore;
};
clocking = function () {
minCounter = minCount;
secCounter = secCount;
miniSec--;
if (miniSec <= 0) {
secCount--;
miniSec = 60;
}
if (secCount < 0) {
minCount--;
secCount = 59;
}
if ((pointsNeeded <= 0) && (singlePlayer == true)) {
gotoAndStop ("victory");
}
if ((minCount <= 0) && (secCount <= 0)) {
if (singlePlayer == true) {
gotoAndStop ("failure");
} else {
gotoAndStop ("results");
}
}
};
bot1 = function () {
if (jklXVel > bot1XMax) {
jklXVel = bot1XMax;
}
if (jklXVel < (-bot1XMax)) {
jklXVel = -bot1XMax;
}
if (jklYVel > bot1YMax) {
jklYVel = bot1YMax;
}
if (jklYVel < (-bot1YMax)) {
jklYVel = -bot1YMax;
}
if (ran1Num == ran1Pick) {
destination1._x = random(600);
destination1._y = random(600);
if (avatarLayer.jklAvatar._x < destination1._x) {
jklXVel = jklXVel + accel;
} else if (avatarLayer.jklAvatar._x > destination1._x) {
jklXVel = jklXVel - accel;
}
if (avatarLayer.jklAvatar._y < destination1._y) {
jklYVel = jklYVel + accel;
} else if (avatarLayer.jklAvatar._y > destination1._y) {
jklYVel = jklYVel - accel;
}
duhTimer1--;
if (duhTimer1 <= 0) {
ran1Num = random(ran1Var);
duhTimer1 = duhTime;
}
} else if ((avatarLayer.asdAvatar.red || (avatarLayer.asdAvatar.white)) && (!avatarLayer.jklAvatar.yellow)) {
if (avatarLayer.jklAvatar._x < yellowNode._x) {
jklXVel = jklXVel + accel;
} else if (avatarLayer.jklAvatar._x > yellowNode._x) {
jklXVel = jklXVel - accel;
}
if (avatarLayer.jklAvatar._y < yellowNode._y) {
jklYVel = jklYVel + accel;
} else if (avatarLayer.jklAvatar._y > yellowNode._y) {
jklYVel = jklYVel - accel;
}
} else if (avatarLayer.asdAvatar.blue && (!avatarLayer.jklAvatar.red)) {
if (avatarLayer.jklAvatar._x < redNode._x) {
jklXVel = jklXVel + accel;
} else if (avatarLayer.jklAvatar._x > redNode._x) {
jklXVel = jklXVel - accel;
}
if (avatarLayer.jklAvatar._y < redNode._y) {
jklYVel = jklYVel + accel;
} else if (avatarLayer.jklAvatar._y > redNode._y) {
jklYVel = jklYVel - accel;
}
} else if (avatarLayer.asdAvatar.yellow && (!avatarLayer.jklAvatar.blue)) {
if (avatarLayer.jklAvatar._x < blueNode._x) {
jklXVel = jklXVel + accel;
} else if (avatarLayer.jklAvatar._x > blueNode._x) {
jklXVel = jklXVel - accel;
}
if (avatarLayer.jklAvatar._y < blueNode._y) {
jklYVel = jklYVel + accel;
} else if (avatarLayer.jklAvatar._y > blueNode._y) {
jklYVel = jklYVel - accel;
}
} else {
ran1Num = random(ran1Var);
if (avatarLayer.asdAvatar._x > avatarLayer.jklAvatar._x) {
jklXVel = jklXVel + accel;
} else if (avatarLayer.asdAvatar._x < avatarLayer.jklAvatar._x) {
jklXVel = jklXVel - accel;
}
if (avatarLayer.asdAvatar._y > avatarLayer.jklAvatar._y) {
jklYVel = jklYVel + accel;
} else if (avatarLayer.asdAvatar._y < avatarLayer.jklAvatar._y) {
jklYVel = jklYVel - accel;
}
}
};
bot2 = function () {
if (arrowXVel > bot2XMax) {
arrowXVel = bot2XMax;
}
if (arrowXVel < (-bot2XMax)) {
arrowXVel = -bot2XMax;
}
if (arrowYVel > bot2YMax) {
arrowYVel = bot2YMax;
}
if (arrowYVel < (-bot2YMax)) {
arrowYVel = -bot2YMax;
}
if (ran2Num == ran2Pick) {
destination2._x = random(600);
destination2._y = random(600);
if (avatarLayer.arrowAvatar._x < destination2._x) {
arrowXVel = arrowXVel + accel;
} else if (avatarLayer.arrowAvatar._x > destination2._x) {
arrowXVel = arrowXVel - accel;
}
if (avatarLayer.arrowAvatar._y < destination2._y) {
arrowYVel = arrowYVel + accel;
} else if (avatarLayer.arrowAvatar._y > destination2._y) {
arrowYVel = arrowYVel - accel;
}
duhTimer2--;
if (duhTimer2 <= 0) {
ran2Num = random(ran2Var);
duhTimer2 = duhTime;
}
} else if ((avatarLayer.asdAvatar.blue || (avatarLayer.asdAvatar.white)) && (!avatarLayer.arrowAvatar.red)) {
if (avatarLayer.arrowAvatar._x < redNode._x) {
arrowXVel = arrowXVel + accel;
} else if (avatarLayer.arrowAvatar._x > redNode._x) {
arrowXVel = arrowXVel - accel;
}
if (avatarLayer.arrowAvatar._y < redNode._y) {
arrowYVel = arrowYVel + accel;
} else if (avatarLayer.arrowAvatar._y > redNode._y) {
arrowYVel = arrowYVel - accel;
}
} else if (avatarLayer.asdAvatar.red && (!avatarLayer.arrowAvatar.yellow)) {
if (avatarLayer.arrowAvatar._x < yellowNode._x) {
arrowXVel = arrowXVel + accel;
} else if (avatarLayer.arrowAvatar._x > yellowNode._x) {
arrowXVel = arrowXVel - accel;
}
if (avatarLayer.arrowAvatar._y < yellowNode._y) {
arrowYVel = arrowYVel + accel;
} else if (avatarLayer.arrowAvatar._y > yellowNode._y) {
arrowYVel = arrowYVel - accel;
}
} else if (avatarLayer.asdAvatar.yellow && (!avatarLayer.arrowAvatar.blue)) {
if (avatarLayer.arrowAvatar._x < blueNode._x) {
arrowXVel = arrowXVel + accel;
} else if (avatarLayer.arrowAvatar._x > blueNode._x) {
arrowXVel = arrowXVel - accel;
}
if (avatarLayer.arrowAvatar._y < blueNode._y) {
arrowYVel = arrowYVel + accel;
} else if (avatarLayer.arrowAvatar._y > blueNode._y) {
arrowYVel = arrowYVel - accel;
}
} else {
ran2Num = random(ran2Var);
if (avatarLayer.asdAvatar._x > avatarLayer.arrowAvatar._x) {
arrowXVel = arrowXVel + accel;
} else if (avatarLayer.asdAvatar._x < avatarLayer.arrowAvatar._x) {
arrowXVel = arrowXVel - accel;
}
if (avatarLayer.asdAvatar._y > avatarLayer.arrowAvatar._y) {
arrowYVel = arrowYVel + accel;
} else if (avatarLayer.asdAvatar._y < avatarLayer.arrowAvatar._y) {
arrowYVel = arrowYVel - accel;
}
}
};
bot3 = function () {
if (numXVel > bot3XMax) {
numXVel = bot3XMax;
}
if (numXVel < (-bot3XMax)) {
numXVel = -bot3XMax;
}
if (numYVel > bot3YMax) {
numYVel = bot3YMax;
}
if (numYVel < (-bot3YMax)) {
numYVel = -bot3YMax;
}
if (ran3Num == ran3Pick) {
destination3._x = random(600);
destination3._y = random(600);
if (avatarLayer.numAvatar._x < destination3._x) {
numXVel = numXVel + accel;
} else if (avatarLayer.numAvatar._x > destination3._x) {
numXVel = numXVel - accel;
}
if (avatarLayer.numAvatar._y < destination3._y) {
numYVel = numYVel + accel;
} else if (avatarLayer.numAvatar._y > destination3._y) {
numYVel = numYVel - accel;
}
duhTimer3--;
if (duhTimer3 <= 0) {
ran3Num = random(ran3Var);
duhTimer3 = duhTime;
}
} else if ((avatarLayer.asdAvatar.yellow || (avatarLayer.asdAvatar.white)) && (!avatarLayer.numAvatar.blue)) {
if (avatarLayer.numAvatar._x < blueNode._x) {
numXVel = numXVel + accel;
} else if (avatarLayer.numAvatar._x > blueNode._x) {
numXVel = numXVel - accel;
}
if (avatarLayer.numAvatar._y < blueNode._y) {
numYVel = numYVel + accel;
} else if (avatarLayer.numAvatar._y > blueNode._y) {
numYVel = numYVel - accel;
}
} else if (avatarLayer.asdAvatar.blue && (!avatarLayer.numAvatar.red)) {
if (avatarLayer.numAvatar._x < redNode._x) {
numXVel = numXVel + accel;
} else if (avatarLayer.numAvatar._x > redNode._x) {
numXVel = numXVel - accel;
}
if (avatarLayer.numAvatar._y < redNode._y) {
numYVel = numYVel + accel;
} else if (avatarLayer.numAvatar._y > redNode._y) {
numYVel = numYVel - accel;
}
} else if (avatarLayer.asdAvatar.red && (!avatarLayer.numAvatar.yellow)) {
if (avatarLayer.numAvatar._x < yellowNode._x) {
numXVel = numXVel + accel;
} else if (avatarLayer.numAvatar._x > yellowNode._x) {
numXVel = numXVel - accel;
}
if (avatarLayer.numAvatar._y < yellowNode._y) {
numYVel = numYVel + accel;
} else if (avatarLayer.numAvatar._y > yellowNode._y) {
numYVel = numYVel - accel;
}
} else {
ran3Num = random(ran3Var);
if (avatarLayer.asdAvatar._x > avatarLayer.numAvatar._x) {
numXVel = numXVel + accel;
} else if (avatarLayer.asdAvatar._x < avatarLayer.numAvatar._x) {
numXVel = numXVel - accel;
}
if (avatarLayer.asdAvatar._y > avatarLayer.numAvatar._y) {
numYVel = numYVel + accel;
} else if (avatarLayer.asdAvatar._y < avatarLayer.numAvatar._y) {
numYVel = numYVel - accel;
}
}
};
stop();
Frame 20
stop();
Frame 30
removeMovieClip(avatarLayer.asdAvatar);
removeMovieClip(avatarLayer.jklAvatar);
removeMovieClip(avatarLayer.arrowAvatar);
removeMovieClip(avatarLayer.numAvatar);
Frame 31
this.onEnterFrame = function () {
if (Key.isDown(113) && (!pl1Ready)) {
pl1Special = true;
pl1Ready = true;
trace("The power of Christ compels you!");
gotoAndPlay ("initialize");
}
};
if (pl1Ready) {
join1._y = -100;
leave1._x = 104.3;
leave1._y = 263.6;
} else {
leave1._y = -100;
join1._x = 104.3;
join1._y = 263.6;
}
if (pl2Ready) {
join2._y = -100;
leave2._x = 496.8;
leave2._y = 263.6;
} else {
leave2._y = -100;
join2._x = 496.8;
join2._y = 263.6;
}
if (pl3Ready) {
join3._y = -100;
leave3._x = 143.4;
leave3._y = 562.8;
} else {
leave3._y = -100;
join3._x = 143.4;
join3._y = 562.8;
}
if (pl4Ready) {
join4._y = -100;
leave4._x = 453.6;
leave4._y = 562.8;
} else {
leave4._y = -100;
join4._x = 453.6;
join4._y = 562.8;
}
stop();
Frame 40
this.onEnterFrame = function () {
};
minCounter = minCount;
secCounter = secCount;
removeMovieClip(avatarLayer.asdAvatar);
removeMovieClip(avatarLayer.jklAvatar);
removeMovieClip(avatarLayer.arrowAvatar);
removeMovieClip(avatarLayer.numAvatar);
Frame 41
stop();
Frame 50
removeMovieClip(avatarLayer.asdAvatar);
removeMovieClip(avatarLayer.jklAvatar);
removeMovieClip(avatarLayer.arrowAvatar);
removeMovieClip(avatarLayer.numAvatar);
this.onEnterFrame = function () {
Mouse.show();
};
levelNum = levelCount;
Frame 60
hudDis.gotoAndStop("red");
stop();
Frame 70
this.onEnterFrame = function () {
asdMove();
};
generateAvatar(160, 297, "asdAvatar");
ground._alpha = 0;
Frame 80
avatarCount = 0;
asdXVel = 0;
asdYVel = 0;
jklXVel = 0;
jklYVel = 0;
arrowXVel = 0;
arrowYVel = 0;
numXVel = 0;
numYVel = 0;
ground._alpha = 0;
levelNum = levelCount;
removeMovieClip(avatarLayer.asdAvatar);
removeMovieClip(avatarLayer.jklAvatar);
removeMovieClip(avatarLayer.arrowAvatar);
removeMovieClip(avatarLayer.numAvatar);
this.onEnterFrame = function () {
Mouse.show();
};
stop();
Frame 90
avatarCount = 0;
asdXVel = 0;
asdYVel = 0;
jklXVel = 0;
jklYVel = 0;
arrowXVel = 0;
arrowYVel = 0;
numXVel = 0;
numYVel = 0;
ground._alpha = 0;
asdBack._y = -800;
arrowBack._y = -800;
jklBack._y = -800;
numBack._y = -800;
secCount = 0;
minCount = 0;
removeMovieClip(avatarLayer.asdAvatar);
removeMovieClip(avatarLayer.jklAvatar);
removeMovieClip(avatarLayer.arrowAvatar);
removeMovieClip(avatarLayer.numAvatar);
this.onEnterFrame = function () {
Mouse.show();
asdMove();
arrowMove();
numMove();
jklMove();
stats();
};
if (asdScore >= jklScore) {
if (asdScore >= arrowScore) {
if (asdScore >= numScore) {
firstPlace = asdScore;
generateAvatar(300, 127, "asdAvatar");
asdBack._y = 386;
} else {
secondPlace = asdScore;
generateAvatar(300, 205, "asdAvatar");
}
} else if (asdScore >= numScore) {
secondPlace = asdScore;
generateAvatar(300, 205, "asdAvatar");
} else {
thirdPlace = asdScore;
generateAvatar(300, 282, "asdAvatar");
}
} else if (asdScore >= arrowScore) {
if (asdScore >= numScore) {
secondPlace = asdScore;
generateAvatar(300, 205, "asdAvatar");
} else if (asdScore < jklScore) {
thirdPlace = asdScore;
generateAvatar(300, 282, "asdAvatar");
}
} else if (asdScore >= numScore) {
thirdPlace = asdScore;
generateAvatar(300, 282, "asdAvatar");
} else {
fourthPlace = asdScore;
generateAvatar(300, 360, "asdAvatar");
}
if (jklScore > asdScore) {
if (jklScore >= arrowScore) {
if (jklScore >= numScore) {
firstPlace = jklScore;
generateAvatar(300, 127, "jklAvatar");
jklBack._y = 325;
} else {
secondPlace = jklScore;
generateAvatar(300, 205, "jklAvatar");
}
} else if (jklScore >= numScore) {
secondPlace = jklScore;
generateAvatar(300, 205, "jklAvatar");
} else {
thirdPlace = jklScore;
generateAvatar(300, 282, "jklAvatar");
}
} else if (jklScore >= arrowScore) {
if (jklScore >= numScore) {
secondPlace = jklScore;
generateAvatar(300, 205, "jklAvatar");
} else if (jklScore <= asdScore) {
thirdPlace = jklScore;
generateAvatar(300, 282, "jklAvatar");
}
} else if (jklScore >= numScore) {
thirdPlace = jklScore;
generateAvatar(300, 282, "jklAvatar");
} else {
fourthPlace = jklScore;
generateAvatar(300, 360, "jklAvatar");
}
if (arrowScore > asdScore) {
if (arrowScore > jklScore) {
if (arrowScore >= numScore) {
firstPlace = arrowScore;
generateAvatar(300, 127, "arrowAvatar");
arrowBack._y = 330;
} else {
secondPlace = arrowScore;
generateAvatar(300, 205, "arrowAvatar");
}
} else if (arrowScore >= numScore) {
secondPlace = arrowScore;
generateAvatar(300, 205, "arrowAvatar");
} else {
thirdPlace = arrowScore;
generateAvatar(300, 282, "arrowAvatar");
}
} else if (arrowScore > jklScore) {
if (arrowScore >= numScore) {
secondPlace = arrowScore;
generateAvatar(300, 205, "arrowAvatar");
} else if (arrowScore <= asdScore) {
thirdPlace = arrowScore;
generateAvatar(300, 282, "arrowAvatar");
}
} else if (arrowScore >= numScore) {
thirdPlace = arrowScore;
generateAvatar(300, 282, "arrowAvatar");
} else {
fourthPlace = arrowScore;
generateAvatar(300, 360, "arrowAvatar");
}
if (numScore > asdScore) {
if (numScore > jklScore) {
if (numScore > arrowScore) {
firstPlace = numScore;
generateAvatar(300, 127, "numAvatar");
numBack._y = 342;
} else {
secondPlace = numScore;
generateAvatar(300, 205, "numAvatar");
}
} else if (numScore > arrowScore) {
secondPlace = numScore;
generateAvatar(300, 205, "numAvatar");
} else {
thirdPlace = numScore;
generateAvatar(300, 282, "numAvatar");
}
} else if (numScore > jklScore) {
if (numScore > arrowScore) {
secondPlace = numScore;
generateAvatar(300, 205, "numAvatar");
} else if (numScore <= asdScore) {
thirdPlace = numScore;
generateAvatar(300, 282, "numAvatar");
}
} else if (numScore > arrowScore) {
thirdPlace = numScore;
generateAvatar(300, 282, "numAvatar");
} else {
fourthPlace = numScore;
generateAvatar(300, 360, "numAvatar");
}
stop();
Frame 100
botScore = 0;
ground._alpha = 0;
asdXVel = 0;
asdYVel = 0;
asdCount = 0;
asdScore = 0;
arrowXVel = 0;
arrowYVel = 0;
arrowCount = 0;
arrowScore = 0;
numXVel = 0;
numYVel = 0;
numCount = 0;
numScore = 0;
jklXVel = 0;
jklYVel = 0;
jklCount = 0;
jklScore = 0;
_root.createEmptyMovieClip("avatarLayer", 100);
Frame 101
this.onEnterFrame = function () {
Mouse.hide();
asdMove();
arrowMove();
numMove();
jklMove();
stats();
clocking();
if (singlePlayer == true) {
bot1();
bot2();
bot3();
}
if (Key.isDown(8)) {
gotoAndPlay ("menu");
}
};
if (((pl1Ready == true) && (pl1Special == false)) || (singlePlayer == true)) {
generateAvatar(277, 291, "asdAvatar");
} else if ((pl1Ready == true) && (pl1Special == true)) {
generateAvatar(277, 291, "asd+Avatar");
}
if ((pl2Ready == true) || (singlePlayer == true)) {
generateAvatar(335, 291, "jklAvatar");
}
if ((pl3Ready == true) || ((singlePlayer == true) && (levelCount > 5))) {
generateAvatar(277, 332, "arrowAvatar");
}
if ((pl4Ready == true) || ((singlePlayer == true) && (levelCount > 10))) {
generateAvatar(335, 332, "numAvatar");
}
if (!singlePlayer) {
requirements._alpha = 0;
pointsNeededDis._y = -100;
if (!pl1Ready) {
hudColor1._alpha = 0;
asdBar._alpha = 0;
asdBox._alpha = 0;
pl1ScoreDis._y = -100;
}
} else {
requirements._alpha = 100;
}
if (!pl2Ready) {
hudColor2._alpha = 0;
jklBar._alpha = 0;
jklBox._alpha = 0;
pl2ScoreDis._y = -100;
}
if (!pl3Ready) {
hudColor3._alpha = 0;
arrowBar._alpha = 0;
arrowBox._alpha = 0;
pl3ScoreDis._y = -100;
}
if (!pl4Ready) {
hudColor4._alpha = 0;
numBar._alpha = 0;
numBox._alpha = 0;
pl4ScoreDis._y = -100;
}
stop();
Frame 110
botScore = 0;
avatarCount = 0;
ground._alpha = 0;
asdXVel = 0;
asdYVel = 0;
asdCount = 0;
asdScore = 0;
arrowXVel = 0;
arrowYVel = 0;
arrowCount = 0;
arrowScore = 0;
numXVel = 0;
numYVel = 0;
numCount = 0;
numScore = 0;
jklXVel = 0;
jklYVel = 0;
jklCount = 0;
jklScore = 0;
_root.createEmptyMovieClip("avatarLayer", 100);
Frame 111
this.onEnterFrame = function () {
Mouse.hide();
asdMove();
arrowMove();
numMove();
jklMove();
stats();
clocking();
if (singlePlayer == true) {
bot1();
bot2();
bot3();
}
if (Key.isDown(8)) {
gotoAndPlay ("menu");
}
};
if (((pl1Ready == true) && (pl1Special == false)) || (singlePlayer == true)) {
generateAvatar(277, 291, "asdAvatar");
} else if ((pl1Ready == true) && (pl1Special == true)) {
generateAvatar(277, 291, "asd+Avatar");
}
if ((pl2Ready == true) || (singlePlayer == true)) {
generateAvatar(335, 291, "jklAvatar");
}
if ((pl3Ready == true) || ((singlePlayer == true) && (levelCount > 5))) {
generateAvatar(277, 332, "arrowAvatar");
}
if ((pl4Ready == true) || ((singlePlayer == true) && (levelCount > 10))) {
generateAvatar(335, 332, "numAvatar");
}
if (!singlePlayer) {
requirements._alpha = 0;
pointsNeededDis._y = -100;
if (!pl1Ready) {
hudColor1._alpha = 0;
asdBar._alpha = 0;
asdBox._alpha = 0;
pl1ScoreDis._y = -100;
}
} else {
requirements._alpha = 100;
}
if (!pl2Ready) {
hudColor2._alpha = 0;
jklBar._alpha = 0;
jklBox._alpha = 0;
pl2ScoreDis._y = -100;
}
if (!pl3Ready) {
hudColor3._alpha = 0;
arrowBar._alpha = 0;
arrowBox._alpha = 0;
pl3ScoreDis._y = -100;
}
if (!pl4Ready) {
hudColor4._alpha = 0;
numBar._alpha = 0;
numBox._alpha = 0;
pl4ScoreDis._y = -100;
}
stop();
Frame 120
botScore = 0;
avatarCount = 0;
ground._alpha = 0;
asdXVel = 0;
asdYVel = 0;
asdCount = 0;
asdScore = 0;
arrowXVel = 0;
arrowYVel = 0;
arrowCount = 0;
arrowScore = 0;
numXVel = 0;
numYVel = 0;
numCount = 0;
numScore = 0;
jklXVel = 0;
jklYVel = 0;
jklCount = 0;
jklScore = 0;
_root.createEmptyMovieClip("avatarLayer", 100);
Frame 121
this.onEnterFrame = function () {
Mouse.hide();
asdMove();
arrowMove();
numMove();
jklMove();
stats();
clocking();
backGround._rotation = backGround._rotation + 0.5;
ground._rotation = ground._rotation + 0.5;
if (singlePlayer == true) {
bot1();
bot2();
bot3();
}
if (Key.isDown(8)) {
gotoAndPlay ("menu");
}
};
if (((pl1Ready == true) && (pl1Special == false)) || (singlePlayer == true)) {
generateAvatar(277, 291, "asdAvatar");
} else if ((pl1Ready == true) && (pl1Special == true)) {
generateAvatar(277, 291, "asd+Avatar");
}
if ((pl2Ready == true) || (singlePlayer == true)) {
generateAvatar(335, 291, "jklAvatar");
}
if ((pl3Ready == true) || ((singlePlayer == true) && (levelCount > 5))) {
generateAvatar(277, 332, "arrowAvatar");
}
if ((pl4Ready == true) || ((singlePlayer == true) && (levelCount > 10))) {
generateAvatar(335, 332, "numAvatar");
}
if (!singlePlayer) {
requirements._alpha = 0;
pointsNeededDis._y = -100;
if (!pl1Ready) {
hudColor1._alpha = 0;
asdBar._alpha = 0;
asdBox._alpha = 0;
pl1ScoreDis._y = -100;
}
} else {
requirements._alpha = 100;
}
if (!pl2Ready) {
hudColor2._alpha = 0;
jklBar._alpha = 0;
jklBox._alpha = 0;
pl2ScoreDis._y = -100;
}
if (!pl3Ready) {
hudColor3._alpha = 0;
arrowBar._alpha = 0;
arrowBox._alpha = 0;
pl3ScoreDis._y = -100;
}
if (!pl4Ready) {
hudColor4._alpha = 0;
numBar._alpha = 0;
numBox._alpha = 0;
pl4ScoreDis._y = -100;
}
stop();
Frame 130
botScore = 0;
avatarCount = 0;
ground._alpha = 0;
asdXVel = 0;
asdYVel = 0;
asdCount = 0;
asdScore = 0;
arrowXVel = 0;
arrowYVel = 0;
arrowCount = 0;
arrowScore = 0;
numXVel = 0;
numYVel = 0;
numCount = 0;
numScore = 0;
jklXVel = 0;
jklYVel = 0;
jklCount = 0;
jklScore = 0;
_root.createEmptyMovieClip("avatarLayer", 100);
Frame 131
this.onEnterFrame = function () {
Mouse.hide();
asdMove();
arrowMove();
numMove();
jklMove();
stats();
clocking();
if (singlePlayer == true) {
bot1();
bot2();
bot3();
}
if (blueUp) {
blueNode._y--;
redNode._y--;
} else {
blueNode._y++;
redNode._y++;
}
if (yellowUp) {
yellowNode._y--;
} else {
yellowNode._y++;
}
if (!blueNode.hitTest(ground)) {
if (blueUp) {
redNode._y = redNode._y + 10;
blueNode._y = blueNode._y + 10;
blueUp = false;
} else {
redNode._y = redNode._y - 10;
blueNode._y = blueNode._y - 10;
blueUp = true;
}
}
if (!yellowNode.hitTest(ground)) {
if (yellowUp) {
yellowNode._y = yellowNode._y + 10;
yellowUp = false;
} else {
yellowNode._y = yellowNode._y - 10;
yellowUp = true;
}
}
if (Key.isDown(8)) {
gotoAndPlay ("menu");
}
};
if (((pl1Ready == true) && (pl1Special == false)) || (singlePlayer == true)) {
generateAvatar(277, 291, "asdAvatar");
} else if ((pl1Ready == true) && (pl1Special == true)) {
generateAvatar(277, 291, "asd+Avatar");
}
if ((pl2Ready == true) || (singlePlayer == true)) {
generateAvatar(335, 291, "jklAvatar");
}
if ((pl3Ready == true) || ((singlePlayer == true) && (levelCount > 5))) {
generateAvatar(277, 332, "arrowAvatar");
}
if ((pl4Ready == true) || ((singlePlayer == true) && (levelCount > 10))) {
generateAvatar(335, 332, "numAvatar");
}
if (!singlePlayer) {
requirements._alpha = 0;
pointsNeededDis._y = -100;
if (!pl1Ready) {
hudColor1._alpha = 0;
asdBar._alpha = 0;
asdBox._alpha = 0;
pl1ScoreDis._y = -100;
}
} else {
requirements._alpha = 100;
}
if (!pl2Ready) {
hudColor2._alpha = 0;
jklBar._alpha = 0;
jklBox._alpha = 0;
pl2ScoreDis._y = -100;
}
if (!pl3Ready) {
hudColor3._alpha = 0;
arrowBar._alpha = 0;
arrowBox._alpha = 0;
pl3ScoreDis._y = -100;
}
if (!pl4Ready) {
hudColor4._alpha = 0;
numBar._alpha = 0;
numBox._alpha = 0;
pl4ScoreDis._y = -100;
}
stop();
Frame 140
botScore = 0;
avatarCount = 0;
ground._alpha = 0;
asdXVel = 0;
asdYVel = 0;
asdCount = 0;
asdScore = 0;
arrowXVel = 0;
arrowYVel = 0;
arrowCount = 0;
arrowScore = 0;
numXVel = 0;
numYVel = 0;
numCount = 0;
numScore = 0;
jklXVel = 0;
jklYVel = 0;
jklCount = 0;
jklScore = 0;
_root.createEmptyMovieClip("avatarLayer", 100);
Frame 141
this.onEnterFrame = function () {
Mouse.hide();
asdMove();
arrowMove();
numMove();
jklMove();
stats();
clocking();
if (singlePlayer == true) {
bot1();
bot2();
bot3();
}
if (yellowNode.hitTest(ground)) {
yellowNode._y++;
} else {
yellowNode._y = 15;
yellowNode._x = random(600);
}
if (blueNode.hitTest(ground)) {
blueNode._x++;
} else {
blueNode._x = 30;
blueNode._y = random(600);
}
if (redNode.hitTest(ground)) {
redNode._x--;
} else {
redNode._x = 570;
redNode._y = random(600);
}
if (Key.isDown(8)) {
gotoAndPlay ("menu");
}
};
if (((pl1Ready == true) && (pl1Special == false)) || (singlePlayer == true)) {
generateAvatar(277, 291, "asdAvatar");
} else if ((pl1Ready == true) && (pl1Special == true)) {
generateAvatar(277, 291, "asd+Avatar");
}
if ((pl2Ready == true) || (singlePlayer == true)) {
generateAvatar(335, 291, "jklAvatar");
}
if ((pl3Ready == true) || ((singlePlayer == true) && (levelCount > 5))) {
generateAvatar(277, 332, "arrowAvatar");
}
if ((pl4Ready == true) || ((singlePlayer == true) && (levelCount > 10))) {
generateAvatar(335, 332, "numAvatar");
}
if (!singlePlayer) {
requirements._alpha = 0;
pointsNeededDis._y = -100;
if (!pl1Ready) {
hudColor1._alpha = 0;
asdBar._alpha = 0;
asdBox._alpha = 0;
pl1ScoreDis._y = -100;
}
} else {
requirements._alpha = 100;
}
if (!pl2Ready) {
hudColor2._alpha = 0;
jklBar._alpha = 0;
jklBox._alpha = 0;
pl2ScoreDis._y = -100;
}
if (!pl3Ready) {
hudColor3._alpha = 0;
arrowBar._alpha = 0;
arrowBox._alpha = 0;
pl3ScoreDis._y = -100;
}
if (!pl4Ready) {
hudColor4._alpha = 0;
numBar._alpha = 0;
numBox._alpha = 0;
pl4ScoreDis._y = -100;
}
stop();
Symbol 19 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -200;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 21 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 23 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 25 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 26 MovieClip [arrowAvatar] Frame 1
if (!_root.pl3Ready) {
stop();
}
Symbol 28 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -200;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 30 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 32 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 34 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 35 MovieClip [asdAvatar] Frame 1
if (!_root.pl1Ready) {
stop();
}
if (_root.pl1Ready == true) {
play();
}
Symbol 37 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -200;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 39 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 41 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 43 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 44 MovieClip [numAvatar] Frame 1
if (!_root.pl4Ready) {
stop();
}
Symbol 46 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -200;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 48 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 50 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 52 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.menuOn == true) {
this._y = this._y + 1;
if (this._y >= 780) {
this._y = -10;
this._x = this._x + random(20);
if (this._x > 750) {
this._x = 0;
}
}
}
};
Symbol 53 MovieClip [jklAvatar] Frame 1
if (!_root.pl2Ready) {
stop();
}
Symbol 73 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 79 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 81 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 368 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 86 Button
on (release) {
singlePlayer = false;
menuOn = false;
gotoAndPlay ("initialize");
}
Symbol 91 Button
on (release) {
menuOn = false;
gotoAndPlay ("instructions");
}
Symbol 95 Button
on (release) {
menuOn = false;
gotoAndPlay ("level1");
}
Symbol 103 Button
on (release) {
menuOn = false;
gotoAndPlay ("credits");
}
Symbol 105 Button
on (release) {
musicOff._x = 510;
musicOff._y = 26;
musicOn._y = musicOn._y - 300;
musicDis = false;
_root.colorantMusic.setVolume(0);
}
Symbol 108 Button
on (release) {
musicOn._x = 510;
musicOn._y = 26;
musicOff._y = musicOff._y - 300;
musicDis = true;
_root.colorantMusic.setVolume(100);
}
Symbol 120 Button
on (release) {
gotoAndPlay ("menu");
}
Symbol 149 Button
on (release) {
gotoAndPlay ("levelSelect");
}
Symbol 154 Button
on (release) {
pl1Ready = true;
gotoAndPlay ("initialize");
}
Symbol 155 Button
on (release) {
pl2Ready = true;
gotoAndPlay ("initialize");
}
Symbol 156 Button
on (release) {
pl4Ready = true;
gotoAndPlay ("initialize");
}
Symbol 157 Button
on (release) {
pl3Ready = true;
gotoAndPlay ("initialize");
}
Symbol 161 Button
on (release) {
pl1Ready = false;
gotoAndPlay ("initialize");
}
Symbol 162 Button
on (release) {
pl2Ready = false;
gotoAndPlay ("initialize");
}
Symbol 163 Button
on (release) {
pl3Ready = false;
gotoAndPlay ("initialize");
}
Symbol 164 Button
on (release) {
pl4Ready = false;
gotoAndPlay ("initialize");
}
Symbol 171 Button
on (rollOver) {
pageFlips.gotoAndPlay("level1Flip");
}
on (release) {
gotoAndPlay ("level1");
}
Symbol 175 Button
on (rollOver) {
pageFlips.gotoAndPlay("level2Flip");
}
on (release) {
gotoAndPlay ("level2");
}
Symbol 179 Button
on (rollOver) {
pageFlips.gotoAndPlay("level3Flip");
}
on (release) {
gotoAndPlay ("level3");
}
Symbol 184 Button
on (release) {
minCount++;
gotoAndPlay ("levelSelect");
}
Symbol 185 Button
on (release) {
secCount = secCount + 15;
if (secCount >= 60) {
minCount++;
secCount = 0;
}
gotoAndPlay ("levelSelect");
}
Symbol 186 Button
on (release) {
secCount = secCount - 15;
if (secCount < 0) {
if (minCount <= 0) {
minCount = 0;
if (secCount <= 0) {
secCount = 0;
}
} else {
secCount = 45;
minCount--;
}
}
gotoAndPlay ("levelSelect");
}
Symbol 187 Button
on (release) {
minCount--;
if (minCount <= 0) {
minCount = 0;
}
gotoAndPlay ("levelSelect");
}
Symbol 192 Button
on (rollOver) {
pageFlips.gotoAndPlay("level4Flip");
}
on (release) {
gotoAndPlay ("level4");
}
Symbol 197 Button
on (rollOver) {
pageFlips.gotoAndPlay("level5Flip");
}
on (release) {
gotoAndPlay ("level5");
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 49
stop();
Symbol 234 MovieClip Frame 99
stop();
Symbol 234 MovieClip Frame 149
stop();
Symbol 234 MovieClip Frame 199
stop();
Symbol 234 MovieClip Frame 249
stop();
Symbol 234 MovieClip Frame 299
stop();
Symbol 260 Button
on (release) {
gotoAndPlay ("menu");
}
Symbol 265 Button
on (release) {
gotoAndStop ("instructions2");
}
Symbol 283 Button
on (release) {
gotoAndPlay ("menu");
}
Symbol 287 Button
on (release) {
if (playerLevel == 1) {
if (levelCount < 15) {
addTime = 20 - levelCount;
} else {
addTime = 5;
}
secCount = secCount + addTime;
miniSec = 30;
ran1Var = ran1Var + 10;
ran2Var = ran2Var + 10;
ran3Var = ran3Var + 10;
if (secCount >= 60) {
minCount++;
secCount = secCount - 60;
}
playerLevel++;
levelCount++;
if (levelCount >= highestLevel) {
highestLevel = levelCount;
}
gotoAndPlay ("level2");
} else if (playerLevel == 2) {
if (levelCount > 15) {
addTime = 20 - levelCount;
} else {
addTime = 5;
}
secCount = secCount + addTime;
miniSec = 30;
ran1Var = ran1Var + 10;
ran2Var = ran2Var + 10;
ran3Var = ran3Var + 10;
if (secCount >= 60) {
minCount++;
secCount = secCount - 60;
}
playerLevel++;
levelCount++;
if (levelCount >= highestLevel) {
highestLevel = levelCount;
}
gotoAndPlay ("level3");
} else if (playerLevel == 3) {
if (levelCount > 15) {
addTime = 20 - levelCount;
} else {
addTime = 5;
}
secCount = secCount + addTime;
miniSec = 30;
ran1Var = ran1Var + 10;
ran2Var = ran2Var + 10;
ran3Var = ran3Var + 10;
if (secCount >= 60) {
minCount++;
secCount = secCount - 60;
}
playerLevel++;
levelCount++;
if (addTime > 2) {
addTime = addTime - 2;
}
if (levelCount >= highestLevel) {
highestLevel = levelCount;
}
gotoAndPlay ("level4");
} else if (playerLevel == 4) {
if (levelCount > 15) {
addTime = 20 - levelCount;
} else {
addTime = 5;
}
secCount = secCount + addTime;
miniSec = 30;
ran1Var = ran1Var + 10;
ran2Var = ran2Var + 10;
ran3Var = ran3Var + 10;
if (secCount >= 60) {
minCount++;
secCount = secCount - 60;
}
playerLevel++;
levelCount++;
if (addTime > 2) {
addTime = addTime - 2;
}
if (levelCount >= highestLevel) {
highestLevel = levelCount;
}
gotoAndPlay ("level5");
} else if (playerLevel == 5) {
if (levelCount > 15) {
addTime = 20 - levelCount;
} else {
addTime = 5;
}
secCount = secCount + addTime;
miniSec = 30;
ran1Var = ran1Var + 10;
ran2Var = ran2Var + 10;
ran3Var = ran3Var + 10;
if (secCount >= 60) {
minCount++;
secCount = secCount - 60;
}
playerLevel = 1;
levelCount++;
if (addTime > 2) {
addTime = addTime - 2;
}
if (levelCount >= highestLevel) {
highestLevel = levelCount;
}
gotoAndPlay ("level1");
}
}
Symbol 301 Button
on (release) {
minCount = 1;
gotoAndPlay ("levelSelect");
}