Frame 1
lives1 = 3;
lives2 = 3;
speed = 5;
speed2 = 5;
Instance of Symbol 82 MovieClip [arrowleft] in Frame 1
onClipEvent (enterFrame) {
if (this._x < 10) {
this.removeMovieClip();
}
}
Instance of Symbol 69 MovieClip [character] "character" in Frame 1
onClipEvent (load) {
i = 0;
d = 90;
this.stop();
s = true;
}
onClipEvent (enterFrame) {
function hittest(d) {
if (d == 270) {
gotoAndStop (4);
i++;
_root.attachMovie("arrowdown", "arrowdown" + i, _root.getNextHighestDepth());
_root["arrowdown" + i]._x = this._x + 3;
_root["arrowdown" + i]._y = this._y;
}
if (d == 90) {
gotoAndStop (8);
i++;
_root.attachMovie("arrowup", "arrowup" + i, _root.getNextHighestDepth());
_root["arrowup" + i]._x = this._x + 3;
_root["arrowup" + i]._y = this._y;
}
if (d == 0) {
gotoAndStop (12);
i++;
_root.attachMovie("arrowright", "arrowright" + i, _root.getNextHighestDepth());
_root["arrowright" + i]._x = this._x + 3;
_root["arrowright" + i]._y = this._y;
}
if (d == 180) {
gotoAndStop (16);
i++;
_root.attachMovie("arrowleft", "arrowleft" + i, _root.getNextHighestDepth());
_root["arrowleft" + i]._x = this._x - 50;
_root["arrowleft" + i]._y = this._y + 130;
}
}
if (_root.lives1 == 0) {
gotoAndStop (17);
}
if (_root.lives1 > 0) {
if (Key.isDown(191) and s) {
hittest(d);
s = false;
}
if (!Key.isDown(191)) {
s = true;
}
if (Key.isDown(38) and (!this.hitTest(_root.topwall1))) {
this.gotoAndStop(5);
_y = (_y - _root.speed);
d = 90;
}
if (Key.isDown(40) and (!this.hitTest(_root.bottomwall1))) {
this.gotoAndStop(1);
_y = (_y + _root.speed);
d = 270;
}
if (Key.isDown(39) and (!this.hitTest(_root.rightwall1))) {
this.gotoAndStop(9);
_x = (_x + _root.speed);
d = 0;
}
if (Key.isDown(37) and (!this.hitTest(_root.leftwall1))) {
this.gotoAndStop(13);
_x = (_x - _root.speed);
d = 180;
}
}
}
Instance of Symbol 37 MovieClip [character2] "character2" in Frame 1
onClipEvent (load) {
i = 0;
d = 90;
this.stop();
s = true;
}
onClipEvent (enterFrame) {
function hittest(d) {
if (d == 270) {
gotoAndStop (4);
i++;
_root.attachMovie("arrowdowns", "arrowdowns" + i, _root.getNextHighestDepth());
_root["arrowdowns" + i]._x = this._x + 3;
_root["arrowdowns" + i]._y = this._y;
}
if (d == 90) {
gotoAndStop (8);
i++;
_root.attachMovie("arrowups", "arrowups" + i, _root.getNextHighestDepth());
_root["arrowups" + i]._x = this._x + 3;
_root["arrowups" + i]._y = this._y;
}
if (d == 0) {
gotoAndStop (12);
i++;
_root.attachMovie("arrowrights", "arrowrights" + i, _root.getNextHighestDepth());
_root["arrowrights" + i]._x = this._x + 3;
_root["arrowrights" + i]._y = this._y;
}
if (d == 180) {
gotoAndStop (16);
i++;
_root.attachMovie("arrowlefts", "arrowlefts" + i, _root.getNextHighestDepth());
_root["arrowlefts" + i]._x = this._x - 50;
_root["arrowlefts" + i]._y = this._y + 130;
}
}
if (_root.lives2 == 0) {
gotoAndStop (17);
}
if (_root.lives2 > 0) {
if (Key.isDown(81) and s) {
hittest(d);
s = false;
}
if (!Key.isDown(81)) {
s = true;
}
if (Key.isDown(87) and (!this.hitTest(_root.topwall1))) {
this.gotoAndStop(5);
_y = (_y - _root.speed2);
d = 90;
}
if (Key.isDown(83) and (!this.hitTest(_root.bottomwall1))) {
this.gotoAndStop(1);
_y = (_y + _root.speed2);
d = 270;
}
if (Key.isDown(68) and (!this.hitTest(_root.rightwall1))) {
this.gotoAndStop(9);
_x = (_x + _root.speed2);
d = 0;
}
if (Key.isDown(65) and (!this.hitTest(_root.leftwall1))) {
this.gotoAndStop(13);
_x = (_x - _root.speed2);
d = 180;
}
}
}
Instance of Symbol 103 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop(_root.lives1 + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.lives1 + 1);
}
Instance of Symbol 103 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop(_root.lives2 + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.lives2 + 1);
}
Instance of Symbol 6 MovieClip [heart] in Frame 1
onClipEvent (load) {
zz = 1;
kk = 25;
}
onClipEvent (enterFrame) {
kk++;
if (kk == 100) {
kk = 0;
zz++;
_root.attachMovie("heart", "heart" + zz, _root.getNextHighestDepth());
_root["heart" + zz]._x = (Math.random() * 450) + 25;
_root["heart" + zz]._y = (Math.random() * 340) + 35;
}
}
Instance of Symbol 3 MovieClip [boots] in Frame 1
onClipEvent (load) {
zzz = 1;
kkk = 75;
}
onClipEvent (enterFrame) {
kkk++;
if (kkk == 100) {
kkk = 0;
zzz++;
_root.attachMovie("boots", "boots" + zzz, _root.getNextHighestDepth());
_root["boots" + zzz]._x = (Math.random() * 450) + 25;
_root["boots" + zzz]._y = (Math.random() * 340) + 35;
}
}
Symbol 3 MovieClip [boots] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.character)) {
if (_root.speed < 8) {
_root.speed++;
}
this.removeMovieClip();
}
if (this.hitTest(_root.character2)) {
if (_root.speed2 < 8) {
_root.speed2++;
}
this.removeMovieClip();
}
};
Symbol 6 MovieClip [heart] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.character)) {
if (_root.lives1 != 3) {
_root.lives1++;
}
this.removeMovieClip();
}
if (this.hitTest(_root.character2)) {
if (_root.lives2 != 3) {
_root.lives2++;
}
this.removeMovieClip();
}
};
Symbol 72 MovieClip [arrowdowns] Frame 1
this.onEnterFrame = function () {
this._y = this._y + 10;
if (this.hitTest(_root.character)) {
if (_root.lives1 > 0) {
_root.lives1 = _root.lives1 - 1;
this.removeMovieClip();
}
}
};
Symbol 74 MovieClip [arrowups] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 10;
if (this.hitTest(_root.character)) {
if (_root.lives1 > 0) {
_root.lives1 = _root.lives1 - 1;
this.removeMovieClip();
}
}
};
Symbol 76 MovieClip [arrowlefts] Frame 1
this.onEnterFrame = function () {
this._x = this._x - 10;
if (this.hitTest(_root.character)) {
if (_root.lives1 > 0) {
_root.lives1 = _root.lives1 - 1;
this.removeMovieClip();
}
}
};
Symbol 78 MovieClip [arrowrights] Frame 1
this.onEnterFrame = function () {
this._x = this._x + 10;
if (this.hitTest(_root.character)) {
if (_root.lives1 > 0) {
_root.lives1 = _root.lives1 - 1;
this.removeMovieClip();
}
}
};
Symbol 79 MovieClip [arrowup] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 10;
if (this.hitTest(_root.character2)) {
if (_root.lives2 > 0) {
_root.lives2 = _root.lives2 - 1;
this.removeMovieClip();
}
}
};
Symbol 80 MovieClip [arrowright] Frame 1
this.onEnterFrame = function () {
this._x = this._x + 10;
if (this.hitTest(_root.character2)) {
if (_root.lives2 > 0) {
_root.lives2 = _root.lives2 - 1;
this.removeMovieClip();
}
}
};
Symbol 81 MovieClip [arrowdown] Frame 1
this.onEnterFrame = function () {
this._y = this._y + 10;
if (this.hitTest(_root.character2)) {
if (_root.lives2 > 0) {
_root.lives2 = _root.lives2 - 1;
this.removeMovieClip();
}
}
};
Symbol 82 MovieClip [arrowleft] Frame 1
this.onEnterFrame = function () {
this._x = this._x - 10;
if (this.hitTest(_root.character2)) {
if (_root.lives2 > 0) {
_root.lives2 = _root.lives2 - 1;
this.removeMovieClip();
}
}
};