Frame 1
stop();
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
_root.onLoad = function () {
_root.mi = 1;
_root.sec = 3;
_root.asec = 0;
minisec = 0;
decay = 0.96;
decayb = 0.96;
speed = 0;
speedb = 0;
acel = 0.4;
acelb = 0.4;
maxspeed = 20;
maxspeedb = 20;
voltas = 0;
voltasb = 0;
chk1 = 0;
chk2 = 0;
player = 0;
playerb = 0;
numjoga = 1;
};
Frame 2
_root.mi = 1;
_root.sec = 3;
_root.asec = 0;
voltas = 0;
voltasb = 0;
chk1 = 0;
chk2 = 0;
fin = " ";
Frame 30
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 31
_root.car.onEnterFrame = function () {
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.metarace1.hitTest(_root.car._x, _root.car._y, true)) {
fin = "1 Player Win";
} else if (_root.metarace1.hitTest(_root.carb._x, _root.carb._y, true)) {
fin = "2 Player Win";
}
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
car._rotation = 90;
carb._rotation = 90;
};
Instance of Symbol 198 MovieClip "car" in Frame 31
/* no clip actions */
Instance of Symbol 202 MovieClip "wallsrace1" in Frame 31
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace1.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace1.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace1.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace1.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace1.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace1.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace1.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace1.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 31
/* no clip actions */
Frame 35
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 36
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 36
/* no clip actions */
Instance of Symbol 246 MovieClip "wallsrace2" in Frame 36
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace2.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace2.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace2.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace2.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace2.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace2.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace2.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace2.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 36
/* no clip actions */
Frame 40
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 41
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 41
/* no clip actions */
Instance of Symbol 249 MovieClip "wallsrace3" in Frame 41
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace3.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace3.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace3.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace3.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace3.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace3.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace3.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace3.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 41
/* no clip actions */
Frame 45
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 46
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 46
/* no clip actions */
Instance of Symbol 253 MovieClip "wallsrace4" in Frame 46
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace4.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace4.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace4.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace4.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace4.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace4.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace4.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace4.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 46
/* no clip actions */
Frame 50
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 51
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 51
/* no clip actions */
Instance of Symbol 256 MovieClip "wallsrace5" in Frame 51
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace5.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace5.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace5.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace5.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace5.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace5.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace5.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace5.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 20;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 51
/* no clip actions */
Frame 55
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 56
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 56
/* no clip actions */
Instance of Symbol 259 MovieClip "wallsrace6" in Frame 56
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace6.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace6.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace6.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace6.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace6.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace6.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace6.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace6.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 56
/* no clip actions */
Frame 60
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 61
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 61
/* no clip actions */
Instance of Symbol 262 MovieClip "wallsrace7" in Frame 61
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace7.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace7.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace7.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace7.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace7.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace7.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace7.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace7.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 61
/* no clip actions */
Frame 65
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 66
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 66
/* no clip actions */
Instance of Symbol 265 MovieClip "wallsrace8" in Frame 66
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace8.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace8.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace8.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace8.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace8.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace8.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace8.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace8.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 66
/* no clip actions */
Frame 70
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 71
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 71
/* no clip actions */
Instance of Symbol 268 MovieClip "wallsrace9" in Frame 71
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace9.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace9.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace9.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace9.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace9.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace9.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace9.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace9.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 71
/* no clip actions */
Frame 75
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 76
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
chk1 = 2;
}
if (_root.b3.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 2)) {
chk1 = 3;
}
if (_root.b4.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 3)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
chk2 = 2;
}
if (_root.b3b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 2)) {
chk2 = 3;
}
if (_root.b4b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 3)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 76
/* no clip actions */
Instance of Symbol 271 MovieClip "wallsrace10" in Frame 76
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace10.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace10.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace10.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace10.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace10.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace10.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace10.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace10.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 76
/* no clip actions */
Frame 80
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 81
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 81
/* no clip actions */
Instance of Symbol 274 MovieClip "wallsrace11" in Frame 81
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace11.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace11.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace11.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace11.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace11.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace11.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace11.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace11.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 81
/* no clip actions */
Frame 85
_root.onEnterFrame = function () {
minisec = minisec - 3;
if (minisec <= 0) {
_root.asec = _root.asec - 1;
minisec = 60;
}
if (_root.asec <= -1) {
_root.sec = _root.sec - 1;
_root.asec = 9;
}
if (_root.sec <= -1) {
_root.mi = _root.mi - 1;
_root.sec = 5;
}
if (fin == " ") {
if (((_root.asec == 0) & (_root.sec == 0)) & (_root.mi == 0)) {
fin = "Time Over";
} else if (_root.voltas == 8) {
fin = "1 Player Win";
} else if (_root.voltasb == 8) {
fin = "2 Player Win";
}
}
if (fin != " ") {
_root.finb._visible = true;
} else {
_root.finb._visible = false;
}
if (((_root.asec == 0) & (_root.sec == 4)) & (_root.mi == -1)) {
gotoAndStop (2);
}
if (Key.isDown(38)) {
speed = speed + acel;
} else {
speed = speed * decay;
}
if (velo >= maxspeed) {
speed = speed * (maxspeed / velo);
}
if (Key.isDown(37)) {
car._rotation = car._rotation - 10;
} else if (Key.isDown(39)) {
car._rotation = car._rotation + 10;
}
myAngle = car._rotation;
xchange = speed * Math.sin((Math.PI/180) * myAngle);
ychange = speed * (-Math.cos((Math.PI/180) * myAngle));
car._x = car._x + xchange;
car._y = car._y + ychange;
velo = Math.sqrt((xchange * xchange) + (ychange * ychange));
if (Key.isDown(87)) {
speedb = speedb + acelb;
} else {
speedb = speedb * decayb;
}
if (velob >= maxspeedb) {
speedb = speedb * (maxspeedb / velob);
}
if (Key.isDown(65)) {
carb._rotation = carb._rotation - 10;
} else if (Key.isDown(68)) {
carb._rotation = carb._rotation + 10;
}
myAngleb = carb._rotation;
xchangeb = speedb * Math.sin((Math.PI/180) * myAngleb);
ychangeb = speedb * (-Math.cos((Math.PI/180) * myAngleb));
carb._x = carb._x + xchangeb;
carb._y = carb._y + ychangeb;
velob = Math.sqrt((xchangeb * xchangeb) + (ychangeb * ychangeb));
_root.pont._rotation = (velo * 6.6) - 120;
if (player == 1) {
_root.car.attachMovie("superbarco", "bco", 10);
car._xscale = 20;
car._yscale = 20;
maxspeed = 20;
} else if (player == 2) {
_root.car.attachMovie("jetsky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 18;
} else if (player == 3) {
_root.car.attachMovie("barco", "bco", 10);
car._xscale = 11;
car._yscale = 11;
maxspeed = 16;
} else if (player == 4) {
_root.car.attachMovie("sky", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 14;
} else if (player == 5) {
_root.car.attachMovie("canoa2", "bco", 10);
car._xscale = 13;
car._yscale = 13;
maxspeed = 12;
} else if (player == 6) {
_root.car.attachMovie("motagua", "bco", 10);
car._xscale = 40;
car._yscale = 40;
maxspeed = 18;
} else if (player == 7) {
_root.car.attachMovie("semirig", "bco", 10);
car._xscale = 10;
car._yscale = 10;
maxspeed = 16;
} else if (player == 8) {
_root.car.attachMovie("vela", "bco", 10);
car._xscale = 16;
car._yscale = 16;
maxspeed = 14;
} else if (player == 9) {
_root.car.attachMovie("borracha", "bco", 10);
car._xscale = 12;
car._yscale = 12;
maxspeed = 12;
} else if (player == 10) {
_root.car.attachMovie("canoa", "bco", 10);
car._xscale = 18;
car._yscale = 18;
maxspeed = 10;
}
if (playerb == 1) {
_root.carb.attachMovie("superbarco", "bcob", 10);
carb._xscale = 20;
carb._yscale = 20;
maxspeedb = 20;
} else if (playerb == 2) {
_root.carb.attachMovie("jetsky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 18;
} else if (playerb == 3) {
_root.carb.attachMovie("barco", "bcob", 10);
carb._xscale = 11;
carb._yscale = 11;
maxspeedb = 16;
} else if (playerb == 4) {
_root.carb.attachMovie("sky", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 14;
} else if (playerb == 5) {
_root.carb.attachMovie("canoa2", "bcob", 10);
carb._xscale = 13;
carb._yscale = 13;
maxspeedb = 12;
} else if (playerb == 6) {
_root.carb.attachMovie("motagua", "bcob", 10);
carb._xscale = 40;
carb._yscale = 40;
maxspeedb = 18;
} else if (playerb == 7) {
_root.carb.attachMovie("semirig", "bcob", 10);
carb._xscale = 10;
carb._yscale = 10;
maxspeedb = 16;
} else if (playerb == 8) {
_root.carb.attachMovie("vela", "bcob", 10);
carb._xscale = 16;
carb._yscale = 16;
maxspeedb = 14;
} else if (playerb == 9) {
_root.carb.attachMovie("borracha", "bcob", 10);
carb._xscale = 12;
carb._yscale = 12;
maxspeedb = 12;
} else if (playerb == 10) {
_root.carb.attachMovie("canoa", "bcob", 10);
carb._xscale = 18;
carb._yscale = 18;
maxspeedb = 10;
} else if (playerb == 11) {
_root.carb._visible = false;
}
};
Frame 86
_root.b1.onEnterFrame = function () {
if (_root.b1.hitTest(_root.car._x, _root.car._y, true)) {
chk1 = 1;
}
if (_root.b2.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 1)) {
chk1 = 2;
}
if (_root.b3.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 2)) {
chk1 = 3;
}
if (_root.b4.hitTest(_root.car._x, _root.car._y, true) && (chk1 == 3)) {
voltas = voltas + 1;
chk1 = 0;
}
if (_root.b1b.hitTest(_root.carb._x, _root.carb._y, true)) {
chk2 = 1;
}
if (_root.b2b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 1)) {
chk2 = 2;
}
if (_root.b3b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 2)) {
chk2 = 3;
}
if (_root.b4b.hitTest(_root.carb._x, _root.carb._y, true) && (chk2 == 3)) {
voltasb = voltasb + 1;
chk2 = 0;
}
};
Instance of Symbol 198 MovieClip "car" in Frame 86
/* no clip actions */
Instance of Symbol 277 MovieClip "wallsrace12" in Frame 86
onClipEvent (enterFrame) {
with (_root.car) {
if (_root.wallsrace12.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace12.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace12.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace12.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
with (_root.carb) {
if (_root.wallsrace12.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - 21;
}
if (_root.wallsrace12.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + 21;
}
if (_root.wallsrace12.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - 21;
}
if (_root.wallsrace12.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + 21;
}
}
}
Instance of Symbol 198 MovieClip "carb" in Frame 86
/* no clip actions */
Symbol 4 MovieClip Frame 20
stop();
Symbol 13 MovieClip Frame 1
if (TrackWidth <= 100) {
TrackWidth = 100;
}
if (TrackWidth >= 300) {
TrackWidth = 300;
}
LoadingTrack._xscale = TrackWidth;
LoadingTrackEdge._xscale = TrackWidth;
LoadingBar._xscale = TrackWidth;
LdBarColor = BarColor;
LoadingBarColor = new Color(LoadingBar);
LoadingBarColor.setRGB(LdBarColor);
TrkColor = TrackColor;
TheTrackColor = new Color(LoadingTrack);
TheTrackColor.setRGB(TrkColor);
TrkEdgeColor = TrackEdgeColor;
LoadingBarColor = new Color(LoadingTrackEdge);
LoadingBarColor.setRGB(TrkEdgeColor);
_parent.stop();
stop();
LoadingText.text = ((Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "% of ") + Math.round(_root.getBytesTotal() / 1000)) + "K Loaded";
LoadingBar._xscale = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * TrackWidth);
LoadingBar._x = ((LoadingTrack._x - ((LoadingTrack._xscale / 2) + 1)) + (LoadingBar._xscale / 2)) - 1;
ifFrameLoaded (_parent._totalframes) {
gotoAndPlay (3);
}
play();
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 13 MovieClip Frame 3
stop();
_parent.play();
Instance of Symbol 13 MovieClip in Symbol 14 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
TrackEdgeColor = 255;
TrackColor = 0;
BarColor = 255;
TrackWidth = 100;
}
Symbol 14 MovieClip Frame 31
_root.nextFrame();
Symbol 24 Button
on (release) {
gotoAndStop (6);
playerb = 11;
numjoga = 1;
}
Symbol 26 Button
on (release) {
gotoAndStop (6);
numjoga = 2;
}
Symbol 28 Button
on (release) {
gotoAndStop (5);
}
Symbol 30 Button
on (release) {
gotoAndStop (4);
}
Symbol 33 Button
on (release) {
fscommand ("quit");
}
Symbol 39 Button
on (release) {
gotoAndStop (2);
}
Symbol 64 Button
on (release) {
main = new Sound();
main.setVolume(100);
}
Symbol 67 Button
on (release) {
main = new Sound();
main.setVolume(0);
}
Symbol 70 Button
on (release) {
_quality = "HIGH";
}
Symbol 73 Button
on (release) {
_quality = "LOW";
}
Symbol 84 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 1;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 1;
}
}
Symbol 89 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 2;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 2;
}
}
Symbol 92 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 3;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 3;
}
}
Symbol 95 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 4;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 4;
}
}
Symbol 98 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 5;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 5;
}
}
Symbol 101 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 6;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 6;
}
}
Symbol 104 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 7;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 7;
}
}
Symbol 107 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 8;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 8;
}
}
Symbol 110 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 9;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 9;
}
}
Symbol 113 Button
on (release) {
if (numjoga == 1) {
gotoAndStop (21);
player = 10;
} else if (numjoga == 2) {
gotoAndStop (13);
player = 10;
}
}
Symbol 115 Button
on (release) {
gotoAndStop (21);
playerb = 1;
}
Symbol 116 Button
on (release) {
gotoAndStop (21);
playerb = 2;
}
Symbol 117 Button
on (release) {
gotoAndStop (21);
playerb = 3;
}
Symbol 118 Button
on (release) {
gotoAndStop (21);
playerb = 4;
}
Symbol 119 Button
on (release) {
gotoAndStop (21);
playerb = 5;
}
Symbol 120 Button
on (release) {
gotoAndStop (21);
playerb = 6;
}
Symbol 121 Button
on (release) {
gotoAndStop (21);
playerb = 7;
}
Symbol 122 Button
on (release) {
gotoAndStop (21);
playerb = 8;
}
Symbol 123 Button
on (release) {
gotoAndStop (21);
playerb = 9;
}
Symbol 124 Button
on (release) {
gotoAndStop (21);
playerb = 10;
}
Symbol 131 Button
on (release) {
gotoAndStop (30);
}
Symbol 134 Button
on (release) {
gotoAndStop (35);
}
Symbol 137 Button
on (release) {
gotoAndStop (40);
}
Symbol 140 Button
on (release) {
gotoAndStop (45);
}
Symbol 143 Button
on (release) {
gotoAndStop (50);
}
Symbol 146 Button
on (release) {
gotoAndStop (55);
}
Symbol 149 Button
on (release) {
gotoAndStop (60);
}
Symbol 152 Button
on (release) {
gotoAndStop (65);
}
Symbol 155 Button
on (release) {
gotoAndStop (70);
}
Symbol 158 Button
on (release) {
gotoAndStop (75);
}
Symbol 161 Button
on (release) {
gotoAndStop (80);
}
Symbol 164 Button
on (release) {
gotoAndStop (85);
}
Symbol 174 MovieClip Frame 40
_root.nextFrame();
Symbol 183 Button
on (release) {
gotoAndStop (2);
}