Frame 1
function scott() {
getURL ("http://www.buzzwerd.deviantart.com", "_blank");
}
function david() {
getURL ("http://www.truedarkness.phrozenflame.com/", "_blank");
}
function agg() {
getURL ("http://www.armorgames.com/", "_blank");
}
function muter() {
_root.all.setVolume((_x + 0) / 0);
}
function mutera() {
_root.all.setVolume((_x + 120) / 1.9);
}
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
onLoad = function () {
_root.all = new Sound();
};
var menu = new ContextMenu();
menu.hideBuiltInItems();
var buzzwerd = new ContextMenuItem("Kevin Barrios", scott);
var truedarkness = new ContextMenuItem("David Silver", david);
var ag = new ContextMenuItem("Armor Games", agg);
var mute = new ContextMenuItem("Sound Off", muter);
var mutee = new ContextMenuItem("Sound On", mutera);
menu.customItems.push(buzzwerd, truedarkness, ag, mute, mutee);
menu.onSelect = menuHandler;
menu.builtInItems.quality = true;
_root.menu = menu;
stop();
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (enterFrame) {
_x = (_root.Stage.width / 2);
_y = (_root.Stage.height / 2);
}
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
_root.tut = true;
function MakeOrb() {
z++;
_root.orb.duplicateMovieClip("orb" + z, z);
_root["orb" + z]._visible = true;
_root["orb" + z]._x = _root.xx + random(80);
_root["orb" + z]._y = _root.yy + random(80);
}
var life = 5;
_root.hud.score = 0;
_root.score = 0;
_root.fadeIn.gotoAndPlay(1);
var z = 0;
_root._x = 0;
Instance of Symbol 86 MovieClip "bg" in Frame 4
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 89 MovieClip "trees3" in Frame 4
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 93 MovieClip "trees2" in Frame 4
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 96 MovieClip "trees1" in Frame 4
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 112 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded == false)) && (_root.player.yspeed >= 2)) && (_root.ground.switch2._currentframe == 2)) {
_root.ground.switch2.spring.play();
}
}
Instance of Symbol 120 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.gem.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 122 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.tuta._currentframe == 240)) {
_root.tuta.play();
}
}
Instance of Symbol 122 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.tuta._currentframe >= 255)) && (_root.tuta._currentframe <= 266)) {
_root.tuta.play();
}
}
Instance of Symbol 135 MovieClip in Frame 4
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 122 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.tuta._currentframe == 292)) {
_root.tuta.play();
}
}
Instance of Symbol 155 MovieClip "player" in Frame 4
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var grav = 1;
var w = (_width / 2);
var h = (_height / 2);
var scale = _xscale;
var jump = 15.2;
var cx = _x;
var cy = _y;
var croucherLookDown = 0;
var grounded = undefined;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
_x = (_x + xspeed);
if (_currentframe != 4) {
xspeed = xspeed * 0.85;
} else if (Key.isDown(40)) {
xspeed = xspeed * 0.945;
}
if ((_currentframe == 4) && (!Key.isDown(40))) {
xspeed = xspeed * 0.85;
}
if (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
yspeed = 0;
grounded = true;
while (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y - 0.1);
}
} else {
grounded = false;
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 3) {
this.jumpa.play();
}
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 5) {
this.doublejump.play();
}
}
if (_root.ground.hitTest(_x - w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
}
if (_root.ground.hitTest(_x + w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
}
if (_root.ground.hitTest(_x, _y - h, true) && (_currentframe == 3)) {
yspeed = 3;
this.gotoAndStop(1);
while (_root.ground.hitTest(_x, _y - h, true) && (!this.hitTest(_root.ground))) {
_y = (_y + 0.1);
}
}
if (!_root.tut) {
if (Key.isDown(39) && (_currentframe != 4)) {
xspeed = xspeed + 1.2;
_xscale = scale;
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (Key.isDown(37) && (_currentframe != 4)) {
xspeed = xspeed - 1.2;
_xscale = (-scale);
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (grounded)) && (_currentframe != 4)) && (_currentframe != 3)) {
gotoAndStop (1);
}
if (_root.tutJump == true) {
if ((Key.isDown(38) && (grounded)) && (_currentframe != 4)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = -jump;
grounded = false;
}
if (((Key.isDown(38) && (_currentframe == 4)) && (this.crouch._currentframe >= 13)) && (this.crouch._currentframe <= 20)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = (-jump) - 4;
grounded = false;
downHold = false;
croucherLookDown = 0;
}
}
if ((Key.isDown(40) && (this.crouch._currentframe == 15)) && (!this.hitTest(_root.ground.land))) {
croucherLookDown++;
}
if (((Key.isDown(40) && (_currentframe != 4)) && (!downHold)) && (grounded)) {
gotoAndStop (4);
downHold = true;
}
if ((!Key.isDown(40)) && (_currentframe == 4)) {
this.crouch.play();
downHold = false;
croucherLookDown = 0;
}
}
cx = cx + ((_x - cx) / 5);
_root._x = (Stage.width / 2) - cx;
if (croucherLookDown >= 30) {
cy = cy + (((_y - cy) + 150) / 5);
_root._y = (Stage.height / 2) - cy;
} else {
cy = cy + ((_y - cy) / 5);
_root._y = (Stage.height / 2) - cy;
}
_root.bg._x = cx;
_root.trees3._x = cx / 2;
_root.trees2._x = cx / 4;
_root.trees1._x = cx / 6;
_root.hud._x = cx - 320;
_root.wide._x = cx;
_root.bg._y = cy;
_root.trees3._y = cy / 2;
_root.trees2._y = cy / 4;
_root.trees1._y = cy / 6;
_root.hud._y = cy - 200;
_root.wide._y = cy;
_root.screen._x = cx;
_root.screen._y = cy;
_root.gameOver._x = cx;
_root.gameOver._y = cy;
_root.fadeOut._x = cx;
_root.fadeOut._y = cy;
_root.fadeIn._x = cx;
_root.fadeOut._y = cy;
_root.tuta._x = cx - 5;
_root.tuta._y = cy + 170;
}
Instance of Symbol 159 MovieClip "orb" in Frame 4
onClipEvent (load) {
var friction = 1.05;
var yspeed = 0;
var xspeed = 0;
var i = 0;
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeeda = -10 + random(20);
yspeeda = -random(20);
drag = 0.98;
bounce = 1;
gravity = 1;
a = 0;
aa = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (_name != "orb")) {
if (var1 == 0) {
a++;
_root.speed = this.xspeeda;
if (!dragging) {
_x = (_x + xspeeda);
_y = ((_y + yspeeda) - 0.29);
yspeeda = (yspeeda * drag) + gravity;
xspeeda = xspeeda * drag;
} else {
xspeeda = _x - oldx;
yspeeda = _y - oldy;
oldx = _x;
oldy = _y;
}
}
if (a >= 25) {
a = 0;
var1 = 1;
}
if (var1 == 1) {
aa++;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed / friction;
yspeed = yspeed / friction;
xspeed = xspeed - ((_x - _root.player._x) / (random(35) + 14));
yspeed = yspeed - ((_y - _root.player._y) / (random(35) + 14));
if (_y <= _root.player._y) {
_y = (_y + (random(4) + 1));
}
if (_y >= _root.player._y) {
_y = (_y - (random(4) + 1));
}
if ((_x >= _root.player._x) && (i == 0)) {
i++;
}
if ((_x <= _root.player._x) && (i == 1)) {
i++;
}
if ((_x >= _root.player._x) && (i == 2)) {
i++;
}
if ((i >= 3) || ((aa >= 30) && (this.hitTest(_root.player.base)))) {
gotoAndStop (2);
xspeed = 0;
yspeed = 0;
}
}
}
}
Instance of Symbol 167 MovieClip "hud" in Frame 4
onClipEvent (enterFrame) {
this.score = _root.score;
}
Instance of Symbol 186 MovieClip "tuta" in Frame 4
onClipEvent (enterFrame) {
if ((this._currentframe == 27) && (Key.isDown(32))) {
this.play();
}
if ((this._currentframe == 119) && (Key.isDown(32))) {
this.play();
}
if ((this._currentframe == 229) && (Key.isDown(32))) {
this.play();
}
if ((this._currentframe == 255) && (Key.isDown(32))) {
this.play();
}
if ((this._currentframe == 280) && (Key.isDown(32))) {
this.play();
}
if ((this._currentframe == 306) && (Key.isDown(32))) {
this.play();
}
if ((this._currentframe == 383) && (Key.isDown(32))) {
this.play();
}
}
Instance of Symbol 188 MovieClip "wide" in Frame 4
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Instance of Symbol 190 MovieClip "screen" in Frame 4
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 193 MovieClip "fadeOut" in Frame 4
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 196 MovieClip "fadeIn" in Frame 4
onClipEvent (enterFrame) {
this.swapDepths(1000000);
}
Frame 5
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
_root.nextFrame();
_root._x = 1000000 /* 0x0F4240 */;
Frame 6
stop();
function MakeOrb() {
z++;
_root.orb.duplicateMovieClip("orb" + z, z);
_root["orb" + z]._visible = true;
_root["orb" + z]._x = _root.xx + random(80);
_root["orb" + z]._y = _root.yy + random(80);
}
var life = 5;
_root.hud.score = 0;
_root.score = 0;
_root.fadeIn.gotoAndPlay(1);
var z = 0;
_root._x = 0;
Instance of Symbol 86 MovieClip "bg" in Frame 6
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 198 MovieClip "trees3" in Frame 6
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 200 MovieClip "trees2" in Frame 6
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 201 MovieClip "trees1" in Frame 6
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 230 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded == false)) {
this.play();
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 112 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded == false)) && (_root.player.yspeed >= 2)) && (_root.ground.switch2._currentframe == 2)) {
_root.ground.switch2.spring.play();
}
}
Instance of Symbol 120 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.gem.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 236 MovieClip in Frame 6
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 236 MovieClip in Frame 6
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 247 MovieClip in Frame 6
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 6
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 6
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 236 MovieClip in Frame 6
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 247 MovieClip in Frame 6
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 6
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 155 MovieClip "player" in Frame 6
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var grav = 1;
var w = (_width / 2);
var h = (_height / 2);
var scale = _xscale;
var jump = 15.2;
var cx = _x;
var cy = _y;
var croucherLookDown = 0;
var grounded = undefined;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
_x = (_x + xspeed);
if (_currentframe != 4) {
xspeed = xspeed * 0.85;
} else if (Key.isDown(40)) {
xspeed = xspeed * 0.945;
}
if ((_currentframe == 4) && (!Key.isDown(40))) {
xspeed = xspeed * 0.85;
}
if (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
yspeed = 0;
grounded = true;
while (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y - 0.1);
}
} else {
grounded = false;
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 3) {
this.jumpa.play();
}
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 5) {
this.doublejump.play();
}
}
if (_root.ground.hitTest(_x - w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
}
if (_root.ground.hitTest(_x + w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
}
if (_root.ground.hitTest(_x, _y - h, true) && (_currentframe == 3)) {
yspeed = 3;
this.gotoAndStop(1);
while (_root.ground.hitTest(_x, _y - h, true) && (!this.hitTest(_root.ground))) {
_y = (_y + 0.1);
}
}
if (Key.isDown(39) && (_currentframe != 4)) {
xspeed = xspeed + 1.2;
_xscale = scale;
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (Key.isDown(37) && (_currentframe != 4)) {
xspeed = xspeed - 1.2;
_xscale = (-scale);
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (grounded)) && (_currentframe != 4)) && (_currentframe != 3)) {
gotoAndStop (1);
}
if ((Key.isDown(38) && (grounded)) && (_currentframe != 4)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = -jump;
grounded = false;
}
if (((Key.isDown(38) && (_currentframe == 4)) && (this.crouch._currentframe >= 13)) && (this.crouch._currentframe <= 20)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = (-jump) - 4;
grounded = false;
downHold = false;
croucherLookDown = 0;
}
if ((Key.isDown(40) && (this.crouch._currentframe == 15)) && (!this.hitTest(_root.ground.land))) {
croucherLookDown++;
}
if (((Key.isDown(40) && (_currentframe != 4)) && (!downHold)) && (grounded)) {
gotoAndStop (4);
downHold = true;
}
if ((!Key.isDown(40)) && (_currentframe == 4)) {
this.crouch.play();
downHold = false;
croucherLookDown = 0;
}
cx = cx + ((_x - cx) / 5);
_root._x = (Stage.width / 2) - cx;
if (croucherLookDown >= 30) {
cy = cy + (((_y - cy) + 150) / 5);
_root._y = (Stage.height / 2) - cy;
} else {
cy = cy + ((_y - cy) / 5);
_root._y = (Stage.height / 2) - cy;
}
_root.bg._x = cx;
_root.trees3._x = cx / 2;
_root.trees2._x = cx / 4;
_root.trees1._x = cx / 6;
_root.hud._x = cx - 320;
_root.wide._x = cx;
_root.bg._y = cy;
_root.trees3._y = cy / 2;
_root.trees2._y = cy / 4;
_root.trees1._y = cy / 6;
_root.hud._y = cy - 200;
_root.wide._y = cy;
_root.screen._x = cx;
_root.screen._y = cy;
_root.gameOver._x = cx;
_root.gameOver._y = cy;
_root.fadeOut._x = cx;
_root.fadeOut._y = cy;
_root.fadeIn._x = cx;
_root.fadeOut._y = cy;
}
Instance of Symbol 159 MovieClip "orb" in Frame 6
onClipEvent (load) {
var friction = 1.05;
var yspeed = 0;
var xspeed = 0;
var i = 0;
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeeda = -10 + random(20);
yspeeda = -random(20);
drag = 0.98;
bounce = 1;
gravity = 1;
a = 0;
aa = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (_name != "orb")) {
if (var1 == 0) {
a++;
_root.speed = this.xspeeda;
if (!dragging) {
_x = (_x + xspeeda);
_y = ((_y + yspeeda) - 0.29);
yspeeda = (yspeeda * drag) + gravity;
xspeeda = xspeeda * drag;
} else {
xspeeda = _x - oldx;
yspeeda = _y - oldy;
oldx = _x;
oldy = _y;
}
}
if (a >= 25) {
a = 0;
var1 = 1;
}
if (var1 == 1) {
aa++;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed / friction;
yspeed = yspeed / friction;
xspeed = xspeed - ((_x - _root.player._x) / (random(35) + 14));
yspeed = yspeed - ((_y - _root.player._y) / (random(35) + 14));
if (_y <= _root.player._y) {
_y = (_y + (random(4) + 1));
}
if (_y >= _root.player._y) {
_y = (_y - (random(4) + 1));
}
if ((_x >= _root.player._x) && (i == 0)) {
i++;
}
if ((_x <= _root.player._x) && (i == 1)) {
i++;
}
if ((_x >= _root.player._x) && (i == 2)) {
i++;
}
if ((i >= 3) || ((aa >= 30) && (this.hitTest(_root.player.base)))) {
gotoAndStop (2);
xspeed = 0;
yspeed = 0;
}
}
}
}
Instance of Symbol 260 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 260 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 167 MovieClip "hud" in Frame 6
onClipEvent (enterFrame) {
this.score = _root.score;
}
Instance of Symbol 262 MovieClip "wide" in Frame 6
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Instance of Symbol 264 MovieClip "screen" in Frame 6
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 193 MovieClip "fadeOut" in Frame 6
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 267 MovieClip "gameOver" in Frame 6
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 196 MovieClip "fadeIn" in Frame 6
onClipEvent (enterFrame) {
this.swapDepths(1000000);
}
Frame 7
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
_root.nextFrame();
_root._x = 10000;
Frame 8
function MakeOrb() {
z++;
_root.orb.duplicateMovieClip("orb" + z, z);
_root["orb" + z]._visible = true;
_root["orb" + z]._x = _root.xx + random(80);
_root["orb" + z]._y = _root.yy + random(80);
}
var life = 5;
_root.fadeIn.gotoAndPlay(1);
var z = 0;
_root._x = 0;
Instance of Symbol 270 MovieClip "bg" in Frame 8
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 273 MovieClip "trees3" in Frame 8
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 279 MovieClip "trees2" in Frame 8
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 282 MovieClip "trees1" in Frame 8
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 112 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded == false)) && (_root.player.yspeed >= 2)) && (_root.ground.switch2._currentframe == 2)) {
_root.ground.switch2.spring.play();
}
}
Instance of Symbol 120 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.gem.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 230 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded == false)) {
this.play();
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 236 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 236 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 247 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 236 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 307 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 307 MovieClip in Frame 8
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 155 MovieClip "player" in Frame 8
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var grav = 1;
var w = (_width / 2);
var h = (_height / 2);
var scale = _xscale;
var jump = 15.2;
var cx = _x;
var cy = _y;
var croucherLookDown = 0;
var grounded = undefined;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
_x = (_x + xspeed);
if (_currentframe != 4) {
xspeed = xspeed * 0.85;
} else if (Key.isDown(40)) {
xspeed = xspeed * 0.945;
}
if ((_currentframe == 4) && (!Key.isDown(40))) {
xspeed = xspeed * 0.85;
}
if (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
yspeed = 0;
grounded = true;
while (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y - 0.1);
}
} else {
grounded = false;
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 3) {
this.jumpa.play();
}
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 5) {
this.doublejump.play();
}
}
if (_root.ground.hitTest(_x - w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
}
if (_root.ground.hitTest(_x + w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
}
if (_root.ground.hitTest(_x, _y - h, true) && (_currentframe == 3)) {
yspeed = 3;
this.gotoAndStop(1);
while (_root.ground.hitTest(_x, _y - h, true) && (!this.hitTest(_root.ground))) {
_y = (_y + 0.1);
}
}
if (Key.isDown(39) && (_currentframe != 4)) {
xspeed = xspeed + 1.2;
_xscale = scale;
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (Key.isDown(37) && (_currentframe != 4)) {
xspeed = xspeed - 1.2;
_xscale = (-scale);
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (grounded)) && (_currentframe != 4)) && (_currentframe != 3)) {
gotoAndStop (1);
}
if ((Key.isDown(38) && (grounded)) && (_currentframe != 4)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = -jump;
grounded = false;
}
if (((Key.isDown(38) && (_currentframe == 4)) && (this.crouch._currentframe >= 13)) && (this.crouch._currentframe <= 20)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = (-jump) - 4;
grounded = false;
downHold = false;
croucherLookDown = 0;
}
if ((Key.isDown(40) && (this.crouch._currentframe == 15)) && (!this.hitTest(_root.ground.land))) {
croucherLookDown++;
}
if (((Key.isDown(40) && (_currentframe != 4)) && (!downHold)) && (grounded)) {
gotoAndStop (4);
downHold = true;
}
if ((!Key.isDown(40)) && (_currentframe == 4)) {
this.crouch.play();
downHold = false;
croucherLookDown = 0;
}
cx = cx + ((_x - cx) / 5);
_root._x = (Stage.width / 2) - cx;
if (croucherLookDown >= 30) {
cy = cy + (((_y - cy) + 150) / 5);
_root._y = (Stage.height / 2) - cy;
} else {
cy = cy + ((_y - cy) / 5);
_root._y = (Stage.height / 2) - cy;
}
_root.bg._x = cx;
_root.trees3._x = cx / 2;
_root.trees2._x = cx / 4;
_root.trees1._x = cx / 6;
_root.hud._x = cx - 320;
_root.wide._x = cx;
_root.bg._y = cy;
_root.trees3._y = cy / 3;
_root.trees2._y = cy / 6;
_root.trees1._y = cy / 9;
_root.hud._y = cy - 200;
_root.wide._y = cy;
_root.screen._x = cx;
_root.screen._y = cy;
_root.gameOver._x = cx;
_root.gameOver._y = cy;
_root.fadeOut._x = cx;
_root.fadeOut._y = cy;
_root.fadeIn._x = cx;
_root.fadeOut._y = cy;
}
Instance of Symbol 159 MovieClip "orb" in Frame 8
onClipEvent (load) {
var friction = 1.05;
var yspeed = 0;
var xspeed = 0;
var i = 0;
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeeda = -10 + random(20);
yspeeda = -random(20);
drag = 0.98;
bounce = 1;
gravity = 1;
a = 0;
aa = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (_name != "orb")) {
if (var1 == 0) {
a++;
_root.speed = this.xspeeda;
if (!dragging) {
_x = (_x + xspeeda);
_y = ((_y + yspeeda) - 0.29);
yspeeda = (yspeeda * drag) + gravity;
xspeeda = xspeeda * drag;
} else {
xspeeda = _x - oldx;
yspeeda = _y - oldy;
oldx = _x;
oldy = _y;
}
}
if (a >= 25) {
a = 0;
var1 = 1;
}
if (var1 == 1) {
aa++;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed / friction;
yspeed = yspeed / friction;
xspeed = xspeed - ((_x - _root.player._x) / (random(35) + 14));
yspeed = yspeed - ((_y - _root.player._y) / (random(35) + 14));
if (_y <= _root.player._y) {
_y = (_y + (random(4) + 1));
}
if (_y >= _root.player._y) {
_y = (_y - (random(4) + 1));
}
if ((_x >= _root.player._x) && (i == 0)) {
i++;
}
if ((_x <= _root.player._x) && (i == 1)) {
i++;
}
if ((_x >= _root.player._x) && (i == 2)) {
i++;
}
if ((i >= 3) || ((aa >= 30) && (this.hitTest(_root.player.base)))) {
gotoAndStop (2);
xspeed = 0;
yspeed = 0;
}
}
}
}
Instance of Symbol 167 MovieClip "hud" in Frame 8
onClipEvent (enterFrame) {
this.score = _root.score;
}
Instance of Symbol 309 MovieClip "wide" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Instance of Symbol 264 MovieClip "screen" in Frame 8
onClipEvent (load) {
_alpha = 48;
}
Instance of Symbol 193 MovieClip "fadeOut" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 267 MovieClip "gameOver" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 196 MovieClip "fadeIn" in Frame 8
onClipEvent (enterFrame) {
this.swapDepths(1000000);
}
Frame 9
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
_root.nextFrame();
_root._x = 10000;
Frame 10
function MakeOrb() {
z++;
_root.orb.duplicateMovieClip("orb" + z, z);
_root["orb" + z]._visible = true;
_root["orb" + z]._x = _root.xx + random(80);
_root["orb" + z]._y = _root.yy + random(80);
}
var life = 5;
_root.fadeIn.gotoAndPlay(1);
var z = 0;
_root._x = 0;
Instance of Symbol 312 MovieClip "bg" in Frame 10
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 315 MovieClip "trees3" in Frame 10
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 319 MovieClip "trees2" in Frame 10
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 322 MovieClip "trees1" in Frame 10
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 120 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.gem.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 236 MovieClip in Frame 10
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 247 MovieClip in Frame 10
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 236 MovieClip in Frame 10
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 307 MovieClip in Frame 10
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 10
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 347 MovieClip in Frame 10
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
var i = 0;
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if ((_currentframe != 3) && (_currentframe != 4)) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if ((((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) && (_currentframe != 4)) {
if (i == 0) {
this.gotoAndStop(3);
i++;
} else {
this.gotoAndStop(4);
}
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 4) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if ((((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) && (_currentframe != 4)) {
_root.blink.play();
}
}
Instance of Symbol 347 MovieClip in Frame 10
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
var i = 0;
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if ((_currentframe != 3) && (_currentframe != 4)) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if ((((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) && (_currentframe != 4)) {
if (i == 0) {
this.gotoAndStop(3);
i++;
} else {
this.gotoAndStop(4);
}
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 4) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if ((((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) && (_currentframe != 4)) {
_root.blink.play();
}
}
Instance of Symbol 155 MovieClip "player" in Frame 10
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var grav = 1;
var w = (_width / 2);
var h = (_height / 2);
var scale = _xscale;
var jump = 15.2;
var cx = _x;
var cy = _y;
var croucherLookDown = 0;
var grounded = undefined;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
_x = (_x + xspeed);
if (_currentframe != 4) {
xspeed = xspeed * 0.85;
} else if (Key.isDown(40)) {
xspeed = xspeed * 0.945;
}
if ((_currentframe == 4) && (!Key.isDown(40))) {
xspeed = xspeed * 0.85;
}
if (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
yspeed = 0;
grounded = true;
while (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y - 0.1);
}
} else {
grounded = false;
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 3) {
this.jumpa.play();
}
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 5) {
this.doublejump.play();
}
}
if (_root.ground.hitTest(_x - w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
}
if (_root.ground.hitTest(_x + w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
}
if (_root.ground.hitTest(_x, _y - h, true) && (_currentframe == 3)) {
yspeed = 3;
this.gotoAndStop(1);
while (_root.ground.hitTest(_x, _y - h, true) && (!this.hitTest(_root.ground))) {
_y = (_y + 0.1);
}
}
if (Key.isDown(39) && (_currentframe != 4)) {
xspeed = xspeed + 1.2;
_xscale = scale;
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (Key.isDown(37) && (_currentframe != 4)) {
xspeed = xspeed - 1.2;
_xscale = (-scale);
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (grounded)) && (_currentframe != 4)) && (_currentframe != 3)) {
gotoAndStop (1);
}
if ((Key.isDown(38) && (grounded)) && (_currentframe != 4)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = -jump;
grounded = false;
}
if (((Key.isDown(38) && (_currentframe == 4)) && (this.crouch._currentframe >= 13)) && (this.crouch._currentframe <= 20)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = (-jump) - 4;
grounded = false;
downHold = false;
croucherLookDown = 0;
}
if ((Key.isDown(40) && (this.crouch._currentframe == 15)) && (!this.hitTest(_root.ground.land))) {
croucherLookDown++;
}
if (((Key.isDown(40) && (_currentframe != 4)) && (!downHold)) && (grounded)) {
gotoAndStop (4);
downHold = true;
}
if ((!Key.isDown(40)) && (_currentframe == 4)) {
this.crouch.play();
downHold = false;
croucherLookDown = 0;
}
cx = cx + ((_x - cx) / 5);
_root._x = (Stage.width / 2) - cx;
if (croucherLookDown >= 30) {
cy = cy + (((_y - cy) + 150) / 5);
_root._y = (Stage.height / 2) - cy;
} else {
cy = cy + ((_y - cy) / 5);
_root._y = (Stage.height / 2) - cy;
}
_root.bg._x = cx;
_root.trees3._x = cx / 2;
_root.trees2._x = cx / 4;
_root.trees1._x = cx / 6;
_root.hud._x = cx - 320;
_root.wide._x = cx;
_root.bg._y = cy;
_root.trees3._y = cy / 3;
_root.trees2._y = cy / 6;
_root.trees1._y = cy / 9;
_root.hud._y = cy - 200;
_root.wide._y = cy;
_root.screen._x = cx;
_root.screen._y = cy;
_root.gameOver._x = cx;
_root.gameOver._y = cy;
_root.fadeOut._x = cx;
_root.fadeOut._y = cy;
_root.fadeIn._x = cx;
_root.fadeOut._y = cy;
}
Instance of Symbol 159 MovieClip "orb" in Frame 10
onClipEvent (load) {
var friction = 1.05;
var yspeed = 0;
var xspeed = 0;
var i = 0;
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeeda = -10 + random(20);
yspeeda = -random(20);
drag = 0.98;
bounce = 1;
gravity = 1;
a = 0;
aa = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (_name != "orb")) {
if (var1 == 0) {
a++;
_root.speed = this.xspeeda;
if (!dragging) {
_x = (_x + xspeeda);
_y = ((_y + yspeeda) - 0.29);
yspeeda = (yspeeda * drag) + gravity;
xspeeda = xspeeda * drag;
} else {
xspeeda = _x - oldx;
yspeeda = _y - oldy;
oldx = _x;
oldy = _y;
}
}
if (a >= 25) {
a = 0;
var1 = 1;
}
if (var1 == 1) {
aa++;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed / friction;
yspeed = yspeed / friction;
xspeed = xspeed - ((_x - _root.player._x) / (random(35) + 14));
yspeed = yspeed - ((_y - _root.player._y) / (random(35) + 14));
if (_y <= _root.player._y) {
_y = (_y + (random(4) + 1));
}
if (_y >= _root.player._y) {
_y = (_y - (random(4) + 1));
}
if ((_x >= _root.player._x) && (i == 0)) {
i++;
}
if ((_x <= _root.player._x) && (i == 1)) {
i++;
}
if ((_x >= _root.player._x) && (i == 2)) {
i++;
}
if ((i >= 3) || ((aa >= 30) && (this.hitTest(_root.player.base)))) {
gotoAndStop (2);
xspeed = 0;
yspeed = 0;
}
}
}
}
Instance of Symbol 260 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 260 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 167 MovieClip "hud" in Frame 10
onClipEvent (enterFrame) {
this.score = _root.score;
}
Instance of Symbol 349 MovieClip "wide" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Instance of Symbol 193 MovieClip "fadeOut" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 267 MovieClip "gameOver" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 196 MovieClip "fadeIn" in Frame 10
onClipEvent (enterFrame) {
this.swapDepths(1000000);
}
Frame 11
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
_root.nextFrame();
_root._x = 1000000 /* 0x0F4240 */;
Frame 12
stop();
function MakeOrb() {
z++;
_root.orb.duplicateMovieClip("orb" + z, z);
_root["orb" + z]._visible = true;
_root["orb" + z]._x = _root.xx + random(80);
_root["orb" + z]._y = _root.yy + random(80);
}
var life = 5;
_root.fadeIn.gotoAndPlay(1);
var z = 0;
_root._x = 0;
Instance of Symbol 86 MovieClip "bg" in Frame 12
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 198 MovieClip "trees3" in Frame 12
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 200 MovieClip "trees2" in Frame 12
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 201 MovieClip "trees1" in Frame 12
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 112 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded == false)) && (_root.player.yspeed >= 2)) && (_root.ground.switch2._currentframe == 2)) {
_root.ground.switch2.spring.play();
}
}
Instance of Symbol 120 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.gem.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 112 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded == false)) && (_root.player.yspeed >= 2)) && (_root.ground.switch2._currentframe == 2)) {
_root.ground.switch2.spring.play();
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 236 MovieClip in Frame 12
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 247 MovieClip in Frame 12
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 247 MovieClip in Frame 12
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 307 MovieClip in Frame 12
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 12
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 347 MovieClip in Frame 12
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
var i = 0;
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if ((_currentframe != 3) && (_currentframe != 4)) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if ((((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) && (_currentframe != 4)) {
if (i == 0) {
this.gotoAndStop(3);
i++;
} else {
this.gotoAndStop(4);
}
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 4) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if ((((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) && (_currentframe != 4)) {
_root.blink.play();
}
}
Instance of Symbol 155 MovieClip "player" in Frame 12
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var grav = 1;
var w = (_width / 2);
var h = (_height / 2);
var scale = _xscale;
var jump = 15.2;
var cx = _x;
var cy = _y;
var croucherLookDown = 0;
var grounded = undefined;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
_x = (_x + xspeed);
if (_currentframe != 4) {
xspeed = xspeed * 0.85;
} else if (Key.isDown(40)) {
xspeed = xspeed * 0.945;
}
if ((_currentframe == 4) && (!Key.isDown(40))) {
xspeed = xspeed * 0.85;
}
if (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
yspeed = 0;
grounded = true;
while (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y - 0.1);
}
} else {
grounded = false;
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 3) {
this.jumpa.play();
}
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 5) {
this.doublejump.play();
}
}
if (_root.ground.hitTest(_x - w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
}
if (_root.ground.hitTest(_x + w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
}
if (_root.ground.hitTest(_x, _y - h, true) && (_currentframe == 3)) {
yspeed = 3;
this.gotoAndStop(1);
while (_root.ground.hitTest(_x, _y - h, true) && (!this.hitTest(_root.ground))) {
_y = (_y + 0.1);
}
}
if (Key.isDown(39) && (_currentframe != 4)) {
xspeed = xspeed + 1.2;
_xscale = scale;
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (Key.isDown(37) && (_currentframe != 4)) {
xspeed = xspeed - 1.2;
_xscale = (-scale);
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (grounded)) && (_currentframe != 4)) && (_currentframe != 3)) {
gotoAndStop (1);
}
if ((Key.isDown(38) && (grounded)) && (_currentframe != 4)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = -jump;
grounded = false;
}
if (((Key.isDown(38) && (_currentframe == 4)) && (this.crouch._currentframe >= 13)) && (this.crouch._currentframe <= 20)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = (-jump) - 4;
grounded = false;
downHold = false;
croucherLookDown = 0;
}
if ((Key.isDown(40) && (this.crouch._currentframe == 15)) && (!this.hitTest(_root.ground.land))) {
croucherLookDown++;
}
if (((Key.isDown(40) && (_currentframe != 4)) && (!downHold)) && (grounded)) {
gotoAndStop (4);
downHold = true;
}
if ((!Key.isDown(40)) && (_currentframe == 4)) {
this.crouch.play();
downHold = false;
croucherLookDown = 0;
}
cx = cx + ((_x - cx) / 5);
_root._x = (Stage.width / 2) - cx;
if (croucherLookDown >= 30) {
cy = cy + (((_y - cy) + 150) / 5);
_root._y = (Stage.height / 2) - cy;
} else {
cy = cy + ((_y - cy) / 5);
_root._y = (Stage.height / 2) - cy;
}
_root.bg._x = cx;
_root.trees3._x = cx / 2;
_root.trees2._x = cx / 4;
_root.trees1._x = cx / 6;
_root.hud._x = cx - 320;
_root.wide._x = cx;
_root.bg._y = cy;
_root.trees3._y = cy / 2;
_root.trees2._y = cy / 4;
_root.trees1._y = cy / 6;
_root.hud._y = cy - 200;
_root.wide._y = cy;
_root.screen._x = cx;
_root.screen._y = cy;
_root.gameOver._x = cx;
_root.gameOver._y = cy;
_root.fadeOut._x = cx;
_root.fadeOut._y = cy;
_root.fadeIn._x = cx;
_root.fadeOut._y = cy;
_root.rain._x = cx;
_root.rain._y = cy;
}
Instance of Symbol 159 MovieClip "orb" in Frame 12
onClipEvent (load) {
var friction = 1.05;
var yspeed = 0;
var xspeed = 0;
var i = 0;
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeeda = -10 + random(20);
yspeeda = -random(20);
drag = 0.98;
bounce = 1;
gravity = 1;
a = 0;
aa = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (_name != "orb")) {
if (var1 == 0) {
a++;
_root.speed = this.xspeeda;
if (!dragging) {
_x = (_x + xspeeda);
_y = ((_y + yspeeda) - 0.29);
yspeeda = (yspeeda * drag) + gravity;
xspeeda = xspeeda * drag;
} else {
xspeeda = _x - oldx;
yspeeda = _y - oldy;
oldx = _x;
oldy = _y;
}
}
if (a >= 25) {
a = 0;
var1 = 1;
}
if (var1 == 1) {
aa++;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed / friction;
yspeed = yspeed / friction;
xspeed = xspeed - ((_x - _root.player._x) / (random(35) + 14));
yspeed = yspeed - ((_y - _root.player._y) / (random(35) + 14));
if (_y <= _root.player._y) {
_y = (_y + (random(4) + 1));
}
if (_y >= _root.player._y) {
_y = (_y - (random(4) + 1));
}
if ((_x >= _root.player._x) && (i == 0)) {
i++;
}
if ((_x <= _root.player._x) && (i == 1)) {
i++;
}
if ((_x >= _root.player._x) && (i == 2)) {
i++;
}
if ((i >= 3) || ((aa >= 30) && (this.hitTest(_root.player.base)))) {
gotoAndStop (2);
xspeed = 0;
yspeed = 0;
}
}
}
}
Instance of Symbol 260 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 260 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 167 MovieClip "hud" in Frame 12
onClipEvent (enterFrame) {
this.score = _root.score;
}
Instance of Symbol 262 MovieClip "wide" in Frame 12
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Instance of Symbol 264 MovieClip "screen" in Frame 12
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 193 MovieClip "fadeOut" in Frame 12
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 267 MovieClip "gameOver" in Frame 12
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 196 MovieClip "fadeIn" in Frame 12
onClipEvent (enterFrame) {
this.swapDepths(1000000);
}
Frame 13
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
_root.nextFrame();
_root._x = 5000000 /* 0x4C4B40 */;
_root._y = 50000;
Frame 14
stop();
function MakeOrb() {
z++;
_root.orb.duplicateMovieClip("orb" + z, z);
_root["orb" + z]._visible = true;
_root["orb" + z]._x = _root.xx + random(80);
_root["orb" + z]._y = _root.yy + random(80);
}
var life = 5;
_root.fadeIn.gotoAndPlay(1);
var z = 0;
_root._x = 0;
Instance of Symbol 364 MovieClip "bg" in Frame 14
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 367 MovieClip "trees3" in Frame 14
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 373 MovieClip "trees2" in Frame 14
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 377 MovieClip "trees1" in Frame 14
onClipEvent (enterFrame) {
this.cacheAsBitmap = true;
}
Instance of Symbol 112 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded == false)) && (_root.player.yspeed >= 2)) && (_root.ground.switch2._currentframe == 2)) {
_root.ground.switch2.spring.play();
}
}
Instance of Symbol 120 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.gem.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 230 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded == false)) {
this.play();
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 234 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_currentframe == 1)) {
this.play();
_root.score = _root.score + _root.life;
}
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 347 MovieClip in Frame 14
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
var i = 0;
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if ((_currentframe != 3) && (_currentframe != 4)) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if ((((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) && (_currentframe != 4)) {
if (i == 0) {
this.gotoAndStop(3);
i++;
} else {
this.gotoAndStop(4);
}
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 4) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if ((((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) && (_currentframe != 4)) {
_root.blink.play();
}
}
Instance of Symbol 247 MovieClip in Frame 14
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 236 MovieClip in Frame 14
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 307 MovieClip in Frame 14
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 14
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 255 MovieClip in Frame 14
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if (((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) {
this.gotoAndStop(3);
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 3) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if (((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) {
_root.blink.play();
}
}
Instance of Symbol 347 MovieClip in Frame 14
onClipEvent (load) {
var scale = _xscale;
var xx = _x;
var speed = 3;
var yspeed = 0;
var grav = 1;
var h = (_height / 2);
var i = 0;
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe != 3) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
if (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
yspeed = 0;
while (_root.ground.hitTest(_x, (_y + h) - 35, true)) {
_y = (_y - 0.1);
}
}
}
if ((_currentframe != 3) && (_currentframe != 4)) {
gotoAndStop (2);
if ((var1 != 1) && (_x >= (xx - 160))) {
_x = (_x - speed);
_xscale = scale;
}
if (_x <= (xx - 160)) {
var1 = 1;
}
if ((var1 == 1) && (xx <= (xx + 160))) {
_x = (_x + speed);
_xscale = (-scale);
}
if (_x >= (xx + 160)) {
var1 = 0;
}
}
if ((((this.top.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded != true)) && (_root.player.yspeed >= 2)) && (_currentframe != 3)) && (_currentframe != 4)) {
if (i == 0) {
this.gotoAndStop(3);
i++;
} else {
this.gotoAndStop(4);
}
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
_root.player.yspeed = -_root.player.jump;
}
if ((_currentframe == 4) && (var2 != 1)) {
_root.xx = _x - 80;
_root.yy = _y - 80;
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
var2 = 1;
}
if ((((this.hitTest(_root.player) && (_currentframe != 3)) && (_root.player.grounded == true)) && (_root.blink._currentframe == 1)) && (_currentframe != 4)) {
_root.blink.play();
}
}
Instance of Symbol 155 MovieClip "player" in Frame 14
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var grav = 1;
var w = (_width / 2);
var h = (_height / 2);
var scale = _xscale;
var jump = 15.2;
var cx = _x;
var cy = _y;
var croucherLookDown = 0;
var grounded = undefined;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed + grav;
_x = (_x + xspeed);
if (_currentframe != 4) {
xspeed = xspeed * 0.85;
} else if (Key.isDown(40)) {
xspeed = xspeed * 0.945;
}
if ((_currentframe == 4) && (!Key.isDown(40))) {
xspeed = xspeed * 0.85;
}
if (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
yspeed = 0;
grounded = true;
while (_root.ground.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y - 0.1);
}
} else {
grounded = false;
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 3) {
this.jumpa.play();
}
}
if (_root.ground.hitTest(_x, (_y + h) + 10, true)) {
if (_currentframe == 5) {
this.doublejump.play();
}
}
if (_root.ground.hitTest(_x - w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
}
if (_root.ground.hitTest(_x + w, _y, true)) {
xspeed = 0;
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
}
if (_root.ground.hitTest(_x, _y - h, true) && (_currentframe == 3)) {
yspeed = 3;
this.gotoAndStop(1);
while (_root.ground.hitTest(_x, _y - h, true) && (!this.hitTest(_root.ground))) {
_y = (_y + 0.1);
}
}
if (Key.isDown(39) && (_currentframe != 4)) {
xspeed = xspeed + 1.2;
_xscale = scale;
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (Key.isDown(37) && (_currentframe != 4)) {
xspeed = xspeed - 1.2;
_xscale = (-scale);
if (this.jumpa._currentframe >= 28) {
gotoAndStop (2);
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (grounded)) && (_currentframe != 4)) && (_currentframe != 3)) {
gotoAndStop (1);
}
if ((Key.isDown(38) && (grounded)) && (_currentframe != 4)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = -jump;
grounded = false;
}
if (((Key.isDown(38) && (_currentframe == 4)) && (this.crouch._currentframe >= 13)) && (this.crouch._currentframe <= 20)) {
this.gotoAndStop(1);
this.gotoAndStop(3);
yspeed = (-jump) - 4;
grounded = false;
downHold = false;
croucherLookDown = 0;
}
if ((Key.isDown(40) && (this.crouch._currentframe == 15)) && (!this.hitTest(_root.ground.land))) {
croucherLookDown++;
}
if (((Key.isDown(40) && (_currentframe != 4)) && (!downHold)) && (grounded)) {
gotoAndStop (4);
downHold = true;
}
if ((!Key.isDown(40)) && (_currentframe == 4)) {
this.crouch.play();
downHold = false;
croucherLookDown = 0;
}
cx = cx + ((_x - cx) / 5);
_root._x = (Stage.width / 2) - cx;
if (croucherLookDown >= 30) {
cy = cy + (((_y - cy) + 150) / 5);
_root._y = (Stage.height / 2) - cy;
} else {
cy = cy + ((_y - cy) / 5);
_root._y = (Stage.height / 2) - cy;
}
_root.bg._x = cx;
_root.trees3._x = cx / 2;
_root.trees2._x = cx / 4;
_root.trees1._x = cx / 6;
_root.hud._x = cx - 320;
_root.wide._x = cx;
_root.bg._y = cy;
_root.trees3._y = cy / 2;
_root.trees2._y = cy / 4;
_root.trees1._y = cy / 6;
_root.hud._y = cy - 200;
_root.wide._y = cy;
_root.screen._x = cx;
_root.screen._y = cy;
_root.gameOver._x = cx;
_root.gameOver._y = cy;
_root.fadeOut._x = cx;
_root.fadeOut._y = cy;
_root.fadeIn._x = cx;
_root.fadeOut._y = cy;
_root.rain._x = cx;
_root.rain._y = cy;
}
Instance of Symbol 159 MovieClip "orb" in Frame 14
onClipEvent (load) {
var friction = 1.05;
var yspeed = 0;
var xspeed = 0;
var i = 0;
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeeda = -10 + random(20);
yspeeda = -random(20);
drag = 0.98;
bounce = 1;
gravity = 1;
a = 0;
aa = 0;
}
onClipEvent (enterFrame) {
if ((!_root.pause) && (_name != "orb")) {
if (var1 == 0) {
a++;
_root.speed = this.xspeeda;
if (!dragging) {
_x = (_x + xspeeda);
_y = ((_y + yspeeda) - 0.29);
yspeeda = (yspeeda * drag) + gravity;
xspeeda = xspeeda * drag;
} else {
xspeeda = _x - oldx;
yspeeda = _y - oldy;
oldx = _x;
oldy = _y;
}
}
if (a >= 25) {
a = 0;
var1 = 1;
}
if (var1 == 1) {
aa++;
_y = (_y + yspeed);
_x = (_x + xspeed);
xspeed = xspeed / friction;
yspeed = yspeed / friction;
xspeed = xspeed - ((_x - _root.player._x) / (random(35) + 14));
yspeed = yspeed - ((_y - _root.player._y) / (random(35) + 14));
if (_y <= _root.player._y) {
_y = (_y + (random(4) + 1));
}
if (_y >= _root.player._y) {
_y = (_y - (random(4) + 1));
}
if ((_x >= _root.player._x) && (i == 0)) {
i++;
}
if ((_x <= _root.player._x) && (i == 1)) {
i++;
}
if ((_x >= _root.player._x) && (i == 2)) {
i++;
}
if ((i >= 3) || ((aa >= 30) && (this.hitTest(_root.player.base)))) {
gotoAndStop (2);
xspeed = 0;
yspeed = 0;
}
}
}
}
Instance of Symbol 112 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (_root.player.grounded == false)) && (_root.player.yspeed >= 2)) && (_root.ground.switch2._currentframe == 2)) {
_root.ground.switch2.spring.play();
}
}
Instance of Symbol 260 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 167 MovieClip "hud" in Frame 14
onClipEvent (enterFrame) {
this.score = _root.score;
}
Instance of Symbol 262 MovieClip "wide" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Instance of Symbol 264 MovieClip "screen" in Frame 14
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 384 MovieClip "fadeOut" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 267 MovieClip "gameOver" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(500000);
}
Instance of Symbol 196 MovieClip "fadeIn" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(1000000);
}
Frame 15
for (i in _root) {
_root[i].removeMovieClip();
}
Frame 16
stop();
_x = 0;
_y = 0;
Instance of Symbol 410 MovieClip "win" in Frame 16
onClipEvent (enterFrame) {
this.score = _root.score;
}
Frame 17
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
Frame 18
stop();
_x = 0;
_y = 0;
Instance of Symbol 427 MovieClip "go" in Frame 18
onClipEvent (enterFrame) {
this.score = _root.score;
}
Symbol 14 Button
on (press) {
_parent.play();
}
Symbol 15 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 15 MovieClip Frame 2
gotoAndPlay (1);
Symbol 15 MovieClip Frame 24
stop();
Symbol 15 MovieClip Frame 43
_root.play();
Symbol 22 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 36 MovieClip Frame 371
_root.play();
Instance of Symbol 17 MovieClip in Symbol 37 MovieClip Frame 19
on (press) {
getURL ("http://www.newgrounds.com/", "_blank");
}
Symbol 37 MovieClip Frame 206
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 18
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 18
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 18
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 18
stop();
Symbol 74 Button
on (press) {
_root.tut = true;
_root.tutorial = true;
_root.menua.firstTime.play();
_root.menua.play();
}
Symbol 77 Button
on (press) {
_root.startGame = true;
_root.menua.firstTime.play();
_root.menua.play();
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 24
stop();
Symbol 83 MovieClip Frame 127
stop();
Instance of Symbol 58 MovieClip in Symbol 83 MovieClip Frame 127
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.menua.firstTime._currentframe == 1)) {
if (_currentframe == 1) {
this.play();
}
} else if (_currentframe == 18) {
this.gotoAndStop(1);
}
}
on (press) {
if (((_root.tut != true) && (_root.menua.firstTime._currentframe == 1)) && (_root.menua.firstTime._currentframe == 1)) {
_root.menua.firstTime.play();
} else if (_root.menua.firstTime._currentframe == 1) {
_parent.play();
}
}
Instance of Symbol 62 MovieClip in Symbol 83 MovieClip Frame 127
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.menua.firstTime._currentframe == 1)) {
if (_currentframe == 1) {
this.play();
}
} else if (_currentframe == 18) {
this.gotoAndStop(1);
}
}
on (press) {
if (_root.menua.firstTime._currentframe == 1) {
_parent.play();
_root.tut = true;
_root.tutorial = true;
}
}
Instance of Symbol 66 MovieClip in Symbol 83 MovieClip Frame 127
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.menua.firstTime._currentframe == 1)) {
if (_currentframe == 1) {
this.play();
}
} else if (_currentframe == 18) {
this.gotoAndStop(1);
}
}
on (press) {
if (_root.menua.firstTime._currentframe == 1) {
getURL ("http://www.armorbot.com/mytable/?id=1671", "_blank");
}
}
Instance of Symbol 70 MovieClip in Symbol 83 MovieClip Frame 127
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.menua.firstTime._currentframe == 1)) {
if (_currentframe == 1) {
this.play();
}
} else if (_currentframe == 18) {
this.gotoAndStop(1);
}
}
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 83 MovieClip Frame 157
stopAllSounds();
if (_root.tutorial == true) {
_root.play();
}
if (_root.startGame == true) {
_root.gotoAndStop("game");
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 92 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 92 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 92 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 92 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 10
_root.player.yspeed = -50;
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
Symbol 107 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 14
stop();
_root.fadeOut.play();
Symbol 133 MovieClip Frame 1
_root.tuta.nextFrame();
Instance of Symbol 132 MovieClip in Symbol 133 MovieClip Frame 15
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 1;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
jump = 15;
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(16) + 10);
rot = random(13);
}
onClipEvent (enterFrame) {
_rotation = (_rotation - rot);
if (num4 == 0) {
xspeed = xspeed - 0.5;
}
if (num4 == 1) {
xspeed = xspeed + 0.5;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
}
Symbol 133 MovieClip Frame 29
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 25
stop();
Symbol 153 MovieClip Frame 35
_parent.gotoAndStop(1);
Symbol 154 MovieClip Frame 15
stop();
Symbol 154 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 155 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 8
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
_root.score = _root.score + 1;
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
_root.player._alpha = 50;
_root.life--;
Symbol 162 MovieClip Frame 4
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 6
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 8
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 10
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 12
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 14
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 16
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 18
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 19
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 20
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 21
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 22
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 23
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 24
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 25
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 26
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 27
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 28
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 29
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 30
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 31
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 32
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 33
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 34
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 35
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 36
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 37
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 38
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 39
_root.player._alpha = 100;
Symbol 162 MovieClip Frame 40
_root.player._alpha = 50;
Symbol 162 MovieClip Frame 41
_root.player._alpha = 100;
Instance of Symbol 164 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeed = -10 + random(20);
yspeed = -random(20);
drag = 0.98;
bounce = 1;
gravity = 0.64;
}
onClipEvent (enterFrame) {
if (_root.life == 1) {
var1 = 1;
}
if ((!_root.pause) && (var1 == 1)) {
_rotation = (_rotation + xspeed);
_root.speed = this.xspeed;
if (_y >= 600) {
this.gotoAndStop(2);
_visible = false;
}
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
}
Instance of Symbol 164 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeed = -10 + random(20);
yspeed = -random(20);
drag = 0.98;
bounce = 1;
gravity = 0.64;
}
onClipEvent (enterFrame) {
if (_root.life == 2) {
var1 = 1;
}
if ((!_root.pause) && (var1 == 1)) {
_rotation = (_rotation + xspeed);
_root.speed = this.xspeed;
if (_y >= 600) {
this.gotoAndStop(2);
_visible = false;
}
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
}
Instance of Symbol 164 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeed = -10 + random(20);
yspeed = -random(20);
drag = 0.98;
bounce = 1;
gravity = 0.64;
}
onClipEvent (enterFrame) {
if (_root.life == 3) {
var1 = 1;
}
if ((!_root.pause) && (var1 == 1)) {
_rotation = (_rotation + xspeed);
_root.speed = this.xspeed;
if (_y >= 600) {
this.gotoAndStop(2);
_visible = false;
}
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
}
Instance of Symbol 164 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeed = -10 + random(20);
yspeed = -random(20);
drag = 0.98;
bounce = 1;
gravity = 0.64;
}
onClipEvent (enterFrame) {
if (_root.life == 4) {
var1 = 1;
}
if ((!_root.pause) && (var1 == 1)) {
_rotation = (_rotation + xspeed);
_root.speed = this.xspeed;
if (_y >= 600) {
this.gotoAndStop(2);
_visible = false;
}
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
}
Instance of Symbol 164 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
var1 = 0;
h = _height / 2;
w = _width / 2;
xspeed = -10 + random(20);
yspeed = -random(20);
drag = 0.98;
bounce = 1;
gravity = 0.64;
}
onClipEvent (enterFrame) {
if (_root.life == 0) {
var1 = 1;
_root.gameOver.play();
}
if ((!_root.pause) && (var1 == 1)) {
_rotation = (_rotation + xspeed);
_root.speed = this.xspeed;
if (_y >= 600) {
this.gotoAndStop(2);
_visible = false;
}
if (!dragging) {
_x = (_x + xspeed);
_y = ((_y + yspeed) - 0.29);
yspeed = (yspeed * drag) + gravity;
xspeed = xspeed * drag;
} else {
xspeed = _x - oldx;
yspeed = _y - oldy;
oldx = _x;
oldy = _y;
}
}
}
Symbol 186 MovieClip Frame 27
stop();
Symbol 186 MovieClip Frame 38
_root.tut = false;
Symbol 186 MovieClip Frame 119
stop();
Symbol 186 MovieClip Frame 130
_root.tut = false;
Symbol 186 MovieClip Frame 229
stop();
Symbol 186 MovieClip Frame 240
stop();
Symbol 186 MovieClip Frame 242
_root.tutJump = true;
Symbol 186 MovieClip Frame 255
stop();
Symbol 186 MovieClip Frame 266
stop();
Symbol 186 MovieClip Frame 267
_root.tutJump = true;
_root.tut = true;
_root.player.gotoAndStop(1);
Symbol 186 MovieClip Frame 280
stop();
Symbol 186 MovieClip Frame 281
_root.tut = false;
Symbol 186 MovieClip Frame 291
stop();
Symbol 186 MovieClip Frame 292
stop();
Symbol 186 MovieClip Frame 293
_root.tutJump = true;
Symbol 186 MovieClip Frame 306
stop();
Symbol 186 MovieClip Frame 370
_root.tutJump = true;
Symbol 186 MovieClip Frame 383
stop();
Symbol 186 MovieClip Frame 394
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 16
stop();
stopAllSounds();
_root.nextFrame();
Symbol 196 MovieClip Frame 16
stop();
Instance of Symbol 88 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 88 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 88 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 92 MovieClip in Symbol 200 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 92 MovieClip in Symbol 200 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 92 MovieClip in Symbol 200 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 95 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 95 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 95 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 20
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 20
stop();
Symbol 212 MovieClip Frame 1
stop();
Instance of Symbol 211 MovieClip in Symbol 212 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((this.bottoma.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch2.gotoAndStop(2);
}
}
Instance of Symbol 217 MovieClip in Symbol 218 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.blink._currentframe == 1)) {
_root.player.yspeed = -10;
_root.player.xspeed = 3;
_root.blink.play();
}
}
Instance of Symbol 217 MovieClip in Symbol 218 MovieClip Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.blink._currentframe == 1)) {
_root.player.yspeed = -10;
_root.player.xspeed = 3;
_root.blink.play();
}
}
Instance of Symbol 217 MovieClip in Symbol 219 MovieClip Frame 85
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.blink._currentframe == 1)) {
_root.player.yspeed = -10;
_root.player.xspeed = 3;
_root.blink.play();
}
}
Instance of Symbol 217 MovieClip in Symbol 219 MovieClip Frame 141
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.blink._currentframe == 1)) {
_root.player.yspeed = -10;
_root.player.xspeed = 3;
_root.blink.play();
}
}
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 10
_root.player.yspeed = -40;
_root.player.gotoAndStop(1);
_root.player.gotoAndStop(3);
Symbol 226 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player._x, _root.player._y + _root.player.h, true) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 208 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch1.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 223 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Symbol 230 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 15
stop();
Instance of Symbol 132 MovieClip in Symbol 235 MovieClip Frame 15
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 1;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
jump = 15;
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(16) + 10);
rot = random(13);
}
onClipEvent (enterFrame) {
_rotation = (_rotation - rot);
if (num4 == 0) {
xspeed = xspeed - 0.5;
}
if (num4 == 1) {
xspeed = xspeed + 0.5;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
}
Symbol 235 MovieClip Frame 29
stop();
Symbol 236 MovieClip Frame 1
stop();
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 11
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 1;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
jump = 15;
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(16) + 10);
rot = random(13);
}
onClipEvent (enterFrame) {
_rotation = (_rotation - rot);
if (num4 == 0) {
xspeed = xspeed - 0.5;
}
if (num4 == 1) {
xspeed = xspeed + 0.5;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
}
Symbol 246 MovieClip Frame 29
stop();
Symbol 247 MovieClip Frame 1
stop();
Instance of Symbol 253 MovieClip in Symbol 254 MovieClip Frame 11
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 1;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
jump = 15;
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(16) + 10);
rot = random(13);
}
onClipEvent (enterFrame) {
_rotation = (_rotation - rot);
if (num4 == 0) {
xspeed = xspeed - 0.5;
}
if (num4 == 1) {
xspeed = xspeed + 0.5;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
}
Symbol 254 MovieClip Frame 29
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 3
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
Instance of Symbol 257 MovieClip in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 257 MovieClip in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 259 MovieClip in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 259 MovieClip in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 26
stop();
stopAllSounds();
_root.gotoAndPlay("gameover");
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 278 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 278 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 278 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 281 MovieClip in Symbol 282 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 281 MovieClip in Symbol 282 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 281 MovieClip in Symbol 282 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 284 MovieClip Frame 1
stop();
Instance of Symbol 208 MovieClip in Symbol 284 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch3.gotoAndStop(2);
}
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 289 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 289 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 289 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 289 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Symbol 290 MovieClip Frame 1
stop();
Instance of Symbol 208 MovieClip in Symbol 290 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch2.gotoAndStop(2);
}
}
Instance of Symbol 208 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch1.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 228 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 287 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 11
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 1;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
jump = 15;
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(16) + 10);
rot = random(13);
}
onClipEvent (enterFrame) {
_rotation = (_rotation - rot);
if (num4 == 0) {
xspeed = xspeed - 0.5;
}
if (num4 == 1) {
xspeed = xspeed + 0.5;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
}
Symbol 305 MovieClip Frame 29
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 3
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.MakeOrb();
_root.score = _root.score + (_root.life * 2);
Instance of Symbol 314 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 314 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 314 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 327 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 327 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 327 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 327 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Symbol 328 MovieClip Frame 1
stop();
Instance of Symbol 228 MovieClip in Symbol 328 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.player.grounded)) && (_root.player._y < this._y)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Symbol 329 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 228 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 208 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch1.gotoAndStop(2);
}
}
Instance of Symbol 218 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 208 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch2.gotoAndStop(2);
}
}
Instance of Symbol 219 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 329 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Symbol 342 MovieClip Frame 20
_parent.gotoAndStop(1);
Instance of Symbol 345 MovieClip in Symbol 346 MovieClip Frame 14
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 1;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
jump = 15;
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(16) + 10);
rot = random(13);
}
onClipEvent (enterFrame) {
_rotation = (_rotation - rot);
if (num4 == 0) {
xspeed = xspeed - 0.5;
}
if (num4 == 1) {
xspeed = xspeed + 0.5;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
}
Symbol 346 MovieClip Frame 27
stop();
Symbol 347 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 228 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 211 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.bottoma.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch1.gotoAndStop(2);
}
}
Instance of Symbol 219 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 366 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 372 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 372 MovieClip in Symbol 373 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 376 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 376 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 376 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 380 MovieClip Frame 1
stop();
Instance of Symbol 228 MovieClip in Symbol 380 MovieClip Frame 2
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 211 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.bottoma.hitTest(_root.player) && (_root.player.grounded == false)) && (_currentframe == 1)) {
this.play();
_root.ground.switch1.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 228 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.grounded)) {
this.play();
}
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 219 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 218 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Instance of Symbol 109 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
dy = _y;
yspeed = 0;
h = _height / 2;
}
onClipEvent (enterFrame) {
_y = (_y + yspeed);
yspeed = yspeed / 1.2;
yspeed = yspeed - ((_y - dy) / 10);
if (!this.hitTest(_root.screen)) {
_visible = false;
} else {
_visible = true;
}
if ((this.hitTest(_root.player) && (var1 != 1)) && (_root.player.grounded == true)) {
yspeed = 5;
var1 = 1;
}
if ((!this.hitTest(_root.player)) && (_root.player.grounded == false)) {
var1 = 0;
}
}
Symbol 384 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 46
stop();
stopAllSounds();
_root.play();
Symbol 394 Button
on (press) {
_root.win.play();
_root.playAgain = true;
}
Symbol 398 Button
on (press) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 401 Button
on (press) {
_root.win.gotoAndStop("submit");
}
Symbol 405 Button
on (press) {
ab20_09 = new LoadVars();
ab20_09.z = _root.go.namea;
ab20_09.x = _root.score;
ab20_09.c = 1671;
ab20_09.v = "XVNKIG";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://www.armorbot.com/mytable/?id=1671", "_blank");
_root.win.play();
}
Symbol 410 MovieClip Frame 37
stop();
Symbol 410 MovieClip Frame 74
stopAllSounds();
if (_root.playAgain == true) {
_root.gotoAndStop("game");
}
stop();
Symbol 410 MovieClip Frame 75
stop();
namea = "ENTER NAME HERE";
Symbol 410 MovieClip Frame 113
stopAllSounds();
_root.gotoAndStop("menuaa");
stop();
Symbol 417 Button
on (press) {
_root.go.play();
_root.playAgain = true;
}
Symbol 418 Button
on (press) {
_root.go.gotoAndStop("submit");
}
Symbol 421 Button
on (press) {
ab20_09 = new LoadVars();
ab20_09.z = _root.go.namea;
ab20_09.x = _root.score;
ab20_09.c = 1671;
ab20_09.v = "XVNKIG";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://www.armorbot.com/mytable/?id=1671", "_blank");
_root.go.play();
}
Symbol 427 MovieClip Frame 37
stop();
Symbol 427 MovieClip Frame 74
stopAllSounds();
if (_root.playAgain == true) {
_root.gotoAndStop("game");
}
stop();
Symbol 427 MovieClip Frame 75
stop();
namea = "ENTER NAME HERE";
Symbol 427 MovieClip Frame 113
stopAllSounds();
_root.gotoAndStop("menuaa");
stop();