Frame 1
MochiAd.showPreGameAd({id:"526af2a07d3a8e41", res:"550x400", background:16316654, color:0, outline:0, no_bg:true});
stop();
Frame 2
Stage.showMenu = false;
Stage.showMenu = false;
Stage.showMenu = false;
Stage.showMenu = false;
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:1});
stage = 14;
Stage.showMenu = false;
stop();
stage = 1;
_root.kongregateStats.submit("SimpleMode", stage);
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:9});
Instance of Symbol 12 MovieClip "ret" in Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (Key.isDown(87)) {
stage = 0;
_root.gotoAndStop(62);
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 2
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.012;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 411;
_y = 297;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 411;
_y = 297;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 411;
_y = 297;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 411;
_y = 297;
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(3);
Nonoba.api.NonobaAPI.SubmitScore("stage", 1, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
}
}
Frame 3
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:7});
stop();
stage = 2;
_root.kongregateStats.submit("SimpleMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 3
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.012;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 287;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 287;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 287;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 287;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(4);
}
}
Frame 4
stage = 3;
_root.kongregateStats.submit("SimpleMode", stage);
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:3});
stop();
Instance of Symbol 31 MovieClip "mover" in Frame 4
onClipEvent (load) {
dir = 2;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_x = (_x + dir);
if (_x > 332) {
dir = -1.5;
}
if (_x < 209) {
dir = 1.5;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 4
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.012;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 448;
_y = 69;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 448;
_y = 69;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 448;
_y = 69;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 448;
_y = 69;
}
if (_root.mover.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 448;
_y = 69;
}
if (_root.mover.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 448;
_y = 69;
}
if (_root.mover.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 448;
_y = 69;
}
if (_root.mover.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 448;
_y = 69;
}
if (_root.door.hitTest(this)) {
Nonoba.api.NonobaAPI.AwardAchievement("novice", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
_root.gotoAndPlay(5);
}
}
Frame 5
stage = 4;
NonobaAPI.AwardAchievement("novice", function (response, count) {
switch (response) {
case NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case NonobaAPI.ERROR :
trace("An error occurred.");
}
});
_root.kongregateStats.submit("SimpleMode", stage);
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:7});
stop();
Instance of Symbol 38 MovieClip "mover" in Frame 5
onClipEvent (load) {
dir = 2;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 94) {
dir = -2;
}
if (_y < 34) {
dir = 2;
}
}
}
Instance of Symbol 31 MovieClip "mover2" in Frame 5
onClipEvent (load) {
dir = 2;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 169) {
dir = -2;
}
if (_y < 34) {
dir = 2;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 5
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.012;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.mover.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.mover.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.mover.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.mover.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.mover2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.mover2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.mover2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.mover2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 91;
_y = 275;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(6);
}
}
Frame 6
stage = 5;
_root.kongregateStats.submit("SimpleMode", stage);
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:9});
stop();
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 6
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
pauser = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 423;
_y = 277;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 423;
_y = 277;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 423;
_y = 277;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
__x = 423;
_y = 277;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(19);
}
}
Frame 7
stage = 6;
_root.kongregateStats.submit("SimpleMode", stage);
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:3});
stop();
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 7
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.mover.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.mover.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.mover.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.mover.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.mover2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.mover2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.mover2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.mover2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (moving == 1) {
_x = 58;
_y = 75;
} else {
_x = 439;
_y = 71;
}
}
if (_root.key.hitTest(this)) {
moving = 1;
_root.key._x = -110;
_root.key._y = -110;
}
if (_root.door.hitTest(this)) {
if (moving == 1) {
_root.gotoAndPlay(8);
}
}
}
Frame 8
stage = 7;
_root.kongregateStats.submit("SimpleMode", stage);
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:7});
stop();
Instance of Symbol 69 MovieClip "rotator" in Frame 8
onClipEvent (enterFrame) {
if (_root.hero.coin >= 7) {
} else {
_rotation = ((_rotation + 1.2) + (_root.hero.coin * 0.18));
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 8
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
key = 0;
pausador = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.coin.hitTest(this)) {
if (coin == 7) {
coin++;
_root.coin._y = (Math.random() * 300) + 50;
_root.key._x = 108;
_root.key._y = 211;
} else {
_root.coin._y = (Math.random() * 300) + 50;
coin++;
if (coin == 7) {
_root.key._x = 108;
_root.key._y = 211;
}
}
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 88;
_y = 258;
key = 0;
coin = 0;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 88;
_y = 258;
key = 0;
coin = 0;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 88;
_y = 258;
key = 0;
coin = 0;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 88;
_y = 258;
key = 0;
coin = 0;
}
if (_root.rotator.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 88;
_y = 258;
key = 0;
coin = 0;
}
if (_root.rotator.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 88;
_y = 258;
key = 0;
coin = 0;
}
if (_root.rotator.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 88;
_y = 258;
key = 0;
coin = 0;
}
if (_root.rotator.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 88;
_y = 258;
key = 0;
coin = 0;
}
if (_root.key.hitTest(this)) {
key = 1;
_root.key._x = -110;
_root.key._y = -110;
}
if (_root.door.hitTest(this)) {
if (key == 1) {
Nonoba.api.NonobaAPI.AwardAchievement("cadet", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
_root.gotoAndPlay(9);
}
}
}
Frame 9
stage = 8;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:4});
_root.kongregateStats.submit("SimpleMode", stage);
stop();
Instance of Symbol 69 MovieClip "r" in Frame 9
onClipEvent (enterFrame) {
_rotation = (_rotation - 2.7);
}
Instance of Symbol 69 MovieClip "rotator" in Frame 9
onClipEvent (enterFrame) {
_rotation = (_rotation + 2.7);
}
Instance of Symbol 69 MovieClip "r3" in Frame 9
onClipEvent (enterFrame) {
_rotation = (_rotation - 2.7);
}
Instance of Symbol 69 MovieClip "r4" in Frame 9
onClipEvent (enterFrame) {
_rotation = (_rotation + 1.5);
}
Instance of Symbol 69 MovieClip "rotator" in Frame 9
onClipEvent (enterFrame) {
_rotation = (_rotation + 2.2);
}
Instance of Symbol 69 MovieClip "r2" in Frame 9
onClipEvent (enterFrame) {
_rotation = (_rotation + 2.7);
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 9
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r3.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r3.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r3.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r3.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r4.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r4.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r4.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.r4.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 86;
_y = 182;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(10);
}
}
Frame 10
stage = 9;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:6});
_root.kongregateStats.submit("SimpleMode", stage);
maxWidth = 515;
maxHeight = 208;
stop();
Instance of Symbol 76 MovieClip "needle" in Frame 10
onClipEvent (load) {
gravidade = 3;
restituicao = 1.00000001;
raio = this._width / 2;
vx = 90;
vy = 90;
}
onClipEvent (enterFrame) {
if (_root.hero.coin > 4) {
vx = 0;
vy = 0;
} else {
oldx = x;
oldy = y;
x = this._x;
y = this._y;
if (arrastando) {
vx = x - oldx;
vy = y - oldy;
} else {
vy = vy + gravidade;
x = x + (vx / 10);
y = y + (vy / 10);
if (y < raio) {
y = raio;
vx = vx * restituicao;
vy = vy * (-restituicao);
}
if (y > (_root.maxHeight - raio)) {
y = _root.maxHeight - raio;
vx = vx * restituicao;
vy = vy * (-restituicao);
}
if (x < raio) {
x = raio;
vx = vx * (-restituicao);
vy = vy * restituicao;
}
if (x > (_root.maxWidth - raio)) {
x = _root.maxWidth - raio;
vx = vx * (-restituicao);
vy = vy * restituicao;
}
this._x = x;
this._y = y;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 10
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.coin.hitTest(this)) {
if (coin == 4) {
_root.key._x = 191;
_root.key._y = 158;
_root.coin._x = -1000;
coin++;
} else {
_root.coin._x = (Math.random() * 300) + 50;
coin++;
}
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 441;
_y = 170;
coin = 0;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 441;
_y = 170;
coin = 0;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 441;
_y = 170;
coin = 0;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 441;
_y = 170;
coin = 0;
}
if (_root.needle.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 441;
_y = 170;
coin = 0;
}
if (_root.needle.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 441;
_y = 170;
coin = 0;
}
if (_root.needle.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 444;
_y = 162;
coin = 0;
}
if (_root.needle.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 441;
_y = 170;
coin = 0;
}
if (_root.key.hitTest(this)) {
key = 1;
_root.key._x = -110;
_root.key._y = -110;
}
if (_root.door.hitTest(this)) {
if (key == 1) {
_root.gotoAndPlay(11);
}
}
}
Frame 11
stage = 10;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:4});
_root.key._x = 475.3;
_root.key._y = 210.6;
stop();
_root.kongregateStats.submit("SimpleMode", stage);
Instance of Symbol 84 MovieClip "rotator" in Frame 11
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
}
Instance of Symbol 85 MovieClip "lift" in Frame 11
onClipEvent (load) {
dir = 2;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 84) {
dir = -2;
}
if (_y < 15) {
dir = 2;
}
}
}
Instance of Symbol 86 MovieClip "lift2" in Frame 11
onClipEvent (load) {
dir = 1.3;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 297) {
dir = -1.3;
}
if (_y < 247) {
dir = 1.3;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 11
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.rotator.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.rotator.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.rotator.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.rotator.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.lift.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.lift.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.lift.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.lift.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.lift2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.lift2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.lift2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.lift2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 92;
_y = 146;
Crash++;
key = 0;
_root.key._x = 475.3;
_root.key._y = 210.6;
}
if (_root.key.hitTest(this)) {
key = 1;
_root.key._x = -191;
_root.key._y = -158;
}
if (_root.door.hitTest(this)) {
if (key == 1) {
_root.gotoAndPlay(56);
}
}
}
Frame 12
stage = 11;
key = 0;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:7});
stop();
_root.kongregateStats.submit("SimpleMode", stage);
Instance of Symbol 86 MovieClip "mover2" in Frame 12
onClipEvent (load) {
dir = 2.3;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 176) {
dir = -1.3;
}
if (_y < 70) {
dir = 2.3;
}
}
}
Instance of Symbol 86 MovieClip "mover" in Frame 12
onClipEvent (load) {
dir = 2.1;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 139) {
dir = -1.1;
}
if (_y < 64) {
dir = 2.1;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 12
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
key = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.keys.hitTest(this)) {
key = 1;
_root.keys._x = -191;
_root.keys._y = -158;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.mover.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.mover.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.mover.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.mover2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.mover2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.mover2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.mover2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
if (key == 1) {
_x = 67;
_y = 86;
} else {
_x = 79;
_y = 263;
}
}
if (_root.door.hitTest(this)) {
if (key == 1) {
_root.gotoAndPlay(13);
}
}
}
Frame 13
stage = 12;
key = 0;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:8});
stop();
_root.kongregateStats.submit("SimpleMode", stage);
Instance of Symbol 97 MovieClip "r" in Frame 13
onClipEvent (enterFrame) {
_rotation = (_rotation + 1.2);
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 13
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
key = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 4));
_x = (_x + (xspeed / 2.2));
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 131;
_y = 294;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 131;
_y = 294;
}
if (_root.r.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 131;
_y = 294;
}
if (_root.r.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 131;
_y = 294;
}
if (_root.r.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 131;
_y = 294;
}
if (_root.r.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 131;
_y = 294;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.door.hitTest(this)) {
Nonoba.api.NonobaAPI.AwardAchievement("scadet", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
_root.gotoAndPlay(14);
}
}
Frame 14
stage = 13;
key = 0;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:3});
stop();
_root.kongregateStats.submit("SimpleMode", stage);
Instance of Symbol 105 MovieClip "smasher" in Frame 14
onClipEvent (load) {
dir = 0.6;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 900) {
dir = -1.3;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 14
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
key = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 5));
_x = (_x + (xspeed / 3));
}
if (_root.walls.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 422;
_y = 69;
_root.smasher._x = 29;
_root.smasher._y = -313;
}
if (_root.walls.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 422;
_y = 69;
_root.smasher._x = 29;
_root.smasher._y = -313;
}
if (_root.walls.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 422;
_y = 69;
_root.smasher._x = 29;
_root.smasher._y = -313;
}
if (_root.walls.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 422;
_y = 69;
_root.smasher._x = 29;
_root.smasher._y = -313;
}
if (_root.smasher.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 422;
_y = 69;
_root.smasher._x = 29;
_root.smasher._y = -313;
}
if (_root.smasher.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 422;
_y = 69;
_root.smasher._x = 29;
_root.smasher._y = -313;
}
if (_root.smasher.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 422;
_y = 69;
_root.smasher._x = 29;
_root.smasher._y = -313;
}
if (_root.smasher.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 422;
_y = 69;
Crash++;
_root.smasher._x = 29;
_root.smasher._y = -313;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(20);
}
}
Frame 15
stage = 20;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:7});
stop();
_root.kongregateStats.submit("SimpleMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 15
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
key = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 5));
_x = (_x + (xspeed / 3));
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 101;
_y = 261;
Crash++;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 101;
_y = 261;
Crash++;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(16);
}
}
Frame 16
stage = 20;
key = 0;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:9});
stop();
Instance of Symbol 105 MovieClip "smasher" in Frame 16
onClipEvent (load) {
dir = 39.8;
}
onClipEvent (enterFrame) {
if (_root.hero.moving == 1) {
_y = (_y + dir);
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 16
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
key = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 375;
_y = 295;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 375;
_y = 295;
}
if (_root.smasher.hitTest(_x, _y, true)) {
_root.gotoAndPlay(17);
}
if (_root.smasher.hitTest(25 + _x, 25 + _y, true)) {
_root.gotoAndPlay(17);
}
if (_root.trap.hitTest(25 + _x, 25 + _y, true)) {
moving = 1;
}
if (_root.trap.hitTest(_x, _y, true)) {
moving = 1;
}
if (_root.sensor3.hitTest(this)) {
_root.gotoAndPlay(28);
}
if (_root.sensor3.hitTest(this)) {
_root.gotoAndPlay(28);
}
}
Frame 17
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:8, easing:mx.transitions.easing.None.easeNone});
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:7, easing:mx.transitions.easing.None.easeNone, startPoint:3});
stop();
stopAllSounds();
_root.kongregateStats.submit("SimpleMode", 20);
stop();
Frame 18
Stage.showMenu = false;
var cont = new Number();
var cont2 = new Number();
var cont3 = new Number();
cont = 0;
stop();
count2 = 0;
count3 = 0;
var dir = new Number();
var sSh = new Number();
dir = 0;
sSh = 0;
Stage.showMenu = false;
onEnterFrame = function () {
if (_root.hero2.colidiu == 1) {
if (_root.hero2._alpha > 0) {
_root.hero2._alpha = _root.hero2._alpha - 5;
} else {
_root.returnb._x = 225;
_root.returnb._y = 300;
}
}
if (_root.hero2.colidiu == 0) {
if (Key.isDown(38) && (hero2._y > 223)) {
hero2._y = hero2._y - 4;
}
if (Key.isDown(40) && (hero2._y < 326)) {
hero2._y = hero2._y + 4;
}
if (Key.isDown(37) && (hero2._x > 62)) {
hero2._x = hero2._x - 4;
}
if (Key.isDown(39) && (hero2._x < 462)) {
hero2._x = hero2._x + 4;
}
if (Key.isDown(65)) {
dir = 1;
}
if (Key.isDown(68)) {
dir = 2;
}
if (_root.rel._alpha > 99) {
if (dir == 2) {
_root.cont3++;
_root.tiro2.duplicateMovieClip("tiro2" + _root.cont3, _root.cont3, _root.cont3);
_root["tiro2" + _root.cont3]._y = hero2._y + 12;
_root["tiro2" + _root.cont3]._x = hero2._x + 26;
_root.rel._alpha = 0;
}
if (dir == 1) {
_root.cont++;
_root.tiro.duplicateMovieClip("tiro" + _root.cont, _root.cont, _root.cont);
_root["tiro" + _root.cont]._y = hero2._y + 12;
_root["tiro" + _root.cont]._x = hero2._x;
_root.rel._alpha = 0;
}
}
if (_root.rel._alpha < 99) {
_root.rel._alpha = _root.rel._alpha + _root.relor.relo;
}
}
};
Instance of Symbol 149 MovieClip "coin" in Frame 18
onClipEvent (load) {
coval = 5;
}
onClipEvent (enterFrame) {
if (_alpha <= 98) {
this._alpha = this._alpha + 0.5;
_x = (1900 + _root.inimigo5.kills);
this._x = 1900 + _root.inimigo5.kills;
} else {
this._x = (this._x - 6) - (_root.inimigo5.kills * 0.002);
if (this._x < 0) {
_x = (1900 + _root.inimigo5.kills);
this._x = 1900 + _root.inimigo5.kills;
}
}
}
Instance of Symbol 154 MovieClip "relor" in Frame 18
onClipEvent (enterFrame) {
if (_alpha <= 98) {
_root.s1.text = "Fast shoot activated!";
relo = 27;
_x = (1900 + _root.inimigo5.kills);
this._alpha = this._alpha + 0.5;
} else {
_root.s1.text = "";
relo = 18;
this._x = (this._x - 6) - (_root.inimigo5.kills * 0.002);
if (this._x < 0) {
_x = (1900 + _root.inimigo5.kills);
this._x = 1900 + _root.inimigo5.kills;
}
}
}
Instance of Symbol 161 MovieClip "supershoot" in Frame 18
onClipEvent (enterFrame) {
if (_alpha <= 99) {
_root.s2.text = "Power shoot activated!";
sSh = 10;
_x = (-1500 - _root.inimigo5.kills);
this._alpha = this._alpha + 0.5;
} else {
_root.s2.text = "";
this._x = (this._x + 8) + (_root.inimigo5.kills * 0.002);
if (this._x > 550) {
this._x = -1500 - _root.inimigo5.kills;
}
}
}
Instance of Symbol 163 MovieClip "inimigo10" in Frame 18
onClipEvent (load) {
kills = 0;
}
onClipEvent (enterFrame) {
if (_x < 0) {
yhis._x = 883;
this.life = 100 + (_root.inimigo5.kills * 0.005);
}
if (life <= 0) {
this._x = 883;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.005);
} else {
this._x = (this._x - 4) - (_root.inimigo5.kills * 0.001);
}
}
Instance of Symbol 163 MovieClip "inimigo9" in Frame 18
onClipEvent (enterFrame) {
if (_x > 550) {
this._x = -287;
this.life = 100 + (_root.inimigo5.kills * 0.007);
}
if (life <= 0) {
this._x = -287;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.007);
} else {
this._x = (this._x + 1) + (_root.inimigo5.kills * 0.002);
}
}
Instance of Symbol 163 MovieClip "inimigo8" in Frame 18
onClipEvent (enterFrame) {
if (_x < 0) {
this._x = 666;
this.life = 100 + (_root.inimigo5.kills * 0.005);
}
if (life <= 0) {
this._x = 666;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.005);
} else {
this._x = (this._x - 4) - (_root.inimigo5.kills * 0.001);
}
}
Instance of Symbol 163 MovieClip "inimigo5" in Frame 18
onClipEvent (load) {
kills = 0;
}
onClipEvent (enterFrame) {
if (_x < 0) {
this._x = 580;
this.life = 100 + (_root.inimigo5.kills * 0.005);
}
if (life <= 0) {
this._x = 580;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.005);
} else {
this._x = (this._x - 3) - (_root.inimigo5.kills * 0.001);
}
}
Instance of Symbol 163 MovieClip "inimigo6" in Frame 18
onClipEvent (enterFrame) {
if (_x < 0) {
this._x = 719;
this.life = 100 + (_root.inimigo5.kills * 0.005);
}
if (life <= 0) {
this._x = 719;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.5);
} else {
this._x = (this._x - 3) - (_root.inimigo5.kills * 0.001);
}
}
Instance of Symbol 163 MovieClip "inimigo7" in Frame 18
onClipEvent (enterFrame) {
if (_x < 0) {
this._x = 784;
this.life = 100 + (_root.inimigo5.kills * 0.005);
}
if (life <= 0) {
this._x = 784;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.005);
} else {
this._x = (this._x - 2) - (_root.inimigo5.kills * 0.001);
}
}
Instance of Symbol 163 MovieClip "inimigo1" in Frame 18
onClipEvent (enterFrame) {
if (_x > 550) {
this._x = -104;
this.life = 100 + (_root.inimigo5.kills * 0.005);
}
if (life <= 0) {
this._x = -104;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.005);
} else {
this._x = (this._x + 3) + (_root.inimigo5.kills * 0.001);
}
}
Instance of Symbol 163 MovieClip "inimigo4" in Frame 18
onClipEvent (enterFrame) {
if (_x > 550) {
this._x = -349;
this.life = 100 + (_root.inimigo5.kills * 0.007);
}
if (life <= 0) {
this._x = -349;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.007);
} else {
this._x = (this._x + 3) + (_root.inimigo5.kills * 0.005);
}
}
Instance of Symbol 163 MovieClip "inimigo3" in Frame 18
onClipEvent (enterFrame) {
if (_x > 550) {
this._x = -140;
this.life = 100 + (_root.inimigo5.kills * 0.5);
}
if (life <= 0) {
this._x = -140;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.5);
} else {
this._x = (this._x + 3) + (_root.inimigo5.kills * 0.001);
}
}
Instance of Symbol 163 MovieClip "inimigo2" in Frame 18
onClipEvent (enterFrame) {
if (_x > 550) {
this._x = -53;
this.life = 100 + (_root.inimigo5.kills * 0.005);
}
if (life <= 0) {
this._x = -53;
_root.inimigo5.kills++;
this.life = 100 + (_root.inimigo5.kills * 0.005);
} else {
this._x = (this._x + 3) + (_root.inimigo5.kills * 0.001);
}
}
Instance of Symbol 165 MovieClip "tiro2" in Frame 18
onClipEvent (enterFrame) {
if (_name != "tiro2") {
this._x = this._x + 14;
if (_root.supershoot.sSh == 10) {
if (_root.supershoot._alpha < 99) {
_width = 12;
_height = 10;
}
} else {
_width = 2;
_height = 2;
}
if (this.hitTest(_root.relor)) {
_root.relor._alpha = 0;
_root.inimigo5.kills = _root.inimigo5.kills + 10;
this.removeMovieClip();
}
if (this.hitTest(_root.supershoot)) {
_root.supershoot._alpha = 0;
_root.inimigo5.kills = _root.inimigo5.kills + 10;
this.removeMovieClip();
}
if (this.hitTest(_root.coin)) {
_root.coin._alpha = 0;
_root.inimigo5.kills = _root.inimigo5.kills + 5;
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
if (this._x > 550) {
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo5)) {
_root.inimigo5.life = _root.inimigo5.life - (40 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo6)) {
_root.inimigo6.life = _root.inimigo6.life - (34 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo7)) {
_root.inimigo7.life = _root.inimigo7.life - (25 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo8)) {
_root.inimigo8.life = _root.inimigo8.life - (20 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo10)) {
_root.inimigo10.life = _root.inimigo10.life - (20 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo1)) {
_root.inimigo1.life = _root.inimigo1.life - (40 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo2)) {
_root.inimigo2.life = _root.inimigo2.life - (34 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo3)) {
_root.inimigo3.life = _root.inimigo3.life - (25 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo4)) {
_root.inimigo4.life = _root.inimigo4.life - (20 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo9)) {
_root.inimigo9.life = _root.inimigo9.life - (20 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
}
}
Instance of Symbol 165 MovieClip "tiro" in Frame 18
onClipEvent (enterFrame) {
if (_name != "tiro") {
this._x = this._x - 14;
if (_root.supershoot.sSh == 10) {
if (_root.supershoot._alpha < 99) {
_width = 12;
_height = 10;
} else {
_root.supershoot.sSh = 0;
}
} else {
_width = 2;
_height = 2;
}
if (this.hitTest(_root.relor)) {
_root.inimigo5.kills = _root.inimigo5.kills + 10;
_root.relor._alpha = 0;
this.removeMovieClip();
}
if (this.hitTest(_root.supershoot)) {
_root.supershoot._alpha = 0;
_root.inimigo5.kills = _root.inimigo5.kills + 10;
this.removeMovieClip();
}
if (this.hitTest(_root.coin)) {
_root.coin._alpha = 0;
_root.inimigo5.kills = _root.inimigo5.kills + 5;
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
if (this._x > 550) {
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo1)) {
_root.inimigo1.life = _root.inimigo1.life - (40 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo2)) {
_root.inimigo2.life = _root.inimigo2.life - (34 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo3)) {
_root.inimigo3.life = _root.inimigo3.life - (25 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo4)) {
_root.inimigo4.life = _root.inimigo4.life - (20 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo9)) {
_root.inimigo9.life = _root.inimigo9.life - (20 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo5)) {
_root.inimigo5.life = _root.inimigo5.life - (40 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo6)) {
_root.inimigo6.life = _root.inimigo6.life - (34 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo7)) {
_root.inimigo7.life = _root.inimigo7.life - (25 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo8)) {
_root.inimigo8.life = _root.inimigo8.life - (20 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo10)) {
_root.inimigo10.life = _root.inimigo10.life - (20 + (_root.supershoot.sSh * 100));
this.removeMovieClip();
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero2" in Frame 18
onClipEvent (load) {
colidiu = 0;
}
onClipEvent (enterFrame) {
if (colidiu == 0) {
if (this.hitTest(_root.coin)) {
_root.coin._alpha = 0;
_root.inimigo5.kills = _root.inimigo5.kills + 5;
this.removeMovieClip();
}
if (this.hitTest(_root.relor)) {
_root.inimigo5.kills = _root.inimigo5.kills + 10;
_root.relor._alpha = 0;
this.removeMovieClip();
}
if (this.hitTest(_root.supershoot)) {
_root.supershoot._alpha = 0;
_root.inimigo5.kills = _root.inimigo5.kills + 10;
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo1)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo2)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo3)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo4)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo5)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo6)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo7)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo8)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo9)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
if (this.hitTest(_root.inimigo10)) {
_root.kongregateStats.submit("Surviveblocs", _root.inimigo5.kills);
colidiu = 1;
}
}
}
Frame 19
Stage.showMenu = false;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, numStrips:6, dimension:0});
_root.ret.checkpoint = 1;
_root.kongregateStats.submit("SimpleMode", 5);
NonobaAPI.SubmitScore("SimpleMode", 5, function (response) {
switch (response) {
case NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case NonobaAPI.ERROR :
trace("An error occurred.");
}
});
stop();
Frame 20
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:7});
stage = 14;
_root.kongregateStats.submit("SimpleMode", stage);
stop();
Instance of Symbol 176 MovieClip "rotator4" in Frame 20
onClipEvent (enterFrame) {
_rotation = (_rotation - 2.3);
}
Instance of Symbol 178 MovieClip "rotator3" in Frame 20
onClipEvent (enterFrame) {
_rotation = (_rotation + 1.2);
}
Instance of Symbol 69 MovieClip "rotator2" in Frame 20
onClipEvent (enterFrame) {
_rotation = (_rotation + 4.7);
}
Instance of Symbol 69 MovieClip "rotator6" in Frame 20
onClipEvent (enterFrame) {
_rotation = (_rotation - 4.7);
}
Instance of Symbol 69 MovieClip "rotator" in Frame 20
onClipEvent (enterFrame) {
_rotation = (_rotation + 4.7);
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 20
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.9555;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator3.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator3.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator3.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator3.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator4.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator4.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator4.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator4.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator6.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator6.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator6.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.rotator6.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 100;
_y = 248;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(21);
}
}
Frame 21
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:1});
stage = 15;
_root.kongregateStats.submit("SimpleMode", stage);
stop();
Instance of Symbol 188 MovieClip "gate" in Frame 21
onClipEvent (load) {
dir = 0;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_x = (_x + dir);
if (_x > 296) {
dir = 0;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 21
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.9555;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 6));
_x = (_x + (xspeed / 4));
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.gate.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.gate.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.gate.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.gate.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.motion.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.motion.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.motion.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.motion.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 96;
_y = 116;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(23);
}
}
Instance of Symbol 196 MovieClip "b1" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
if (_root.gate._x > 182) {
_root.gate._x = _root.gate._x - 4;
} else {
_root.gate.dir = 0.11;
}
}
}
Frame 22
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:4});
stage = 16;
_root.kongregateStats.submit("SimpleMode", stage);
stop();
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 22
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
fase = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 289;
_y = 197;
fase = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 289;
_y = 197;
fase = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 289;
_y = 197;
fase = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 289;
_y = 197;
fase = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
}
if (_root.gate.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 289;
_y = 197;
fase = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
}
if (_root.gate.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 289;
_y = 197;
fase = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
}
if (_root.gate.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 289;
_y = 197;
fase = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
}
if (_root.gate.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 289;
_y = 197;
fase = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(24);
}
}
Instance of Symbol 196 MovieClip "b9" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b14" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b8" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b13" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b12" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b11" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b15" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b10" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b6" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 202 MovieClip "gate" in Frame 22
onClipEvent (load) {
dir = 0.2;
}
onClipEvent (enterFrame) {
if (_root.hero.fase == 15) {
_x = (_x + dir);
if (_y > 540) {
dir = 0;
}
}
}
Instance of Symbol 196 MovieClip "b7" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b5" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b4" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b2" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b3" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Instance of Symbol 196 MovieClip "b1" in Frame 22
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
}
Frame 23
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, numStrips:6, dimension:0});
_root.ret.checkpoint = 3;
_root.kongregateStats.submit("SimpleMode", 15);
stop();
Frame 24
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:3});
stage = 17;
_root.kongregateStats.submit("SimpleMode", stage);
stop();
Instance of Symbol 207 MovieClip "m4" in Frame 24
onClipEvent (load) {
dir = 2;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_x = (_x + dir);
if (_x > 106) {
dir = -1;
}
if (_x < 47) {
dir = 1;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 24
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.gate.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.gate.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.gate.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.gate.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m3.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m3.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m3.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m3.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m4.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m4.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m4.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.m4.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 445;
_y = 74;
_root.gate._x = 234;
_root.gate.dir = 0;
}
if (_root.door.hitTest(this)) {
Nonoba.api.NonobaAPI.AwardAchievement("hero", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
_root.gotoAndPlay(25);
}
}
Instance of Symbol 196 MovieClip "b1" in Frame 24
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
if (_root.gate._x < 320) {
_root.gate._x = _root.gate._x + 4;
} else {
_root.gate.dir = 0.15;
}
}
}
Instance of Symbol 202 MovieClip "gate" in Frame 24
onClipEvent (load) {
dir = 0;
}
onClipEvent (enterFrame) {
_x = (_x - dir);
if (_x < 250) {
dir = 0;
}
}
Frame 25
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:2});
stage = 18;
_root.kongregateStats.submit("SimpleMode", stage);
stop();
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 25
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 264;
_y = 73;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 264;
_y = 73;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 264;
_y = 73;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 264;
_y = 73;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(26);
}
}
Frame 26
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:1});
stage = 19;
_root.kongregateStats.submit("SimpleMode", stage);
stop();
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 26
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.ba1.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.ba1.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.ba1.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.ba1.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.ba2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.ba2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.ba2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.ba2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.bo1.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.bo1.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.bo1.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.bo1.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.bo2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.bo2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.bo2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.bo2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 84;
_y = 84;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(27);
}
}
Frame 27
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:9});
stage = 20;
stop();
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 27
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 433;
_y = 310;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 433;
_y = 310;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 433;
_y = 310;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 433;
_y = 310;
}
if (_root.s.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 433;
_y = 310;
}
if (_root.s.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 433;
_y = 310;
}
if (_root.s.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 433;
_y = 310;
}
if (_root.s.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 433;
_y = 310;
}
if (_root.door.hitTest(this)) {
_root.gotoAndPlay(15);
}
}
Frame 28
_root.kongregateStats.submit("SimpleMode", 20);
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:3, easing:mx.transitions.easing.None.easeNone, startPoint:2});
stage = 21;
stop();
Instance of Symbol 280 MovieClip "s1" in Frame 28
onClipEvent (enterFrame) {
_rotation = (_rotation + 3.2);
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 28
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s1.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s1.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s3.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s3.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s4.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s4.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s5.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s5.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s6.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s6.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s7.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s7.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s8.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s8.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s9.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.s9.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 446;
_y = 5;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(54);
}
}
Frame 29
stop();
stop();
Frame 30
Stage.showMenu = false;
stop();
Instance of Symbol 308 MovieClip "R1" in Frame 30
onClipEvent (enterFrame) {
if (_root.hero.coin == 0) {
_rotation = (_rotation + 0.3);
} else {
_rotation = (((_rotation + 1.2) - _root.hero.lent) + (_root.hero.coin * 0.011));
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 30
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
coin = 0;
lent = 0;
colisou = 0;
}
onClipEvent (enterFrame) {
if (colisou == 0) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = (yspeed + gravity) * friction;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 2.5));
_x = (_x + (xspeed / 1.5));
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
_root.kongregateStats.submit("SurviveCoins", coin);
colisou = 1;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
__root.kongregateStats.submit("SurviveCoins", coin);
colisou = 1;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
_root.kongregateStats.submit("SurviveCoins", coin);
colisou = 1;
}
if (_root.wall.hitTest(_x, _y, true)) {
_root.kongregateStats.submit("SurviveCoins", coin);
colisou = 1;
}
if (_root.R1.hitTest(25 + _x, 25 + _y, true)) {
_root.kongregateStats.submit("SurviveCoins", coin);
colisou = 1;
}
if (_root.R1.hitTest(_x, 25 + _y, true)) {
_root.kongregateStats.submit("SurviveCoins", coin);
colisou = 1;
}
if (_root.R1.hitTest(25 + _x, _y, true)) {
_root.kongregateStats.submit("SurviveCoins", coin);
colisou = 1;
}
if (_root.R1.hitTest(_x, _y, true)) {
_root.kongregateStats.submit("SurviveCoins", coin);
colisou = 1;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.coin.hitTest(this)) {
_root.coin._y = (Math.random() * 300) + 50;
coin++;
}
if (_root.coins.hitTest(this)) {
_root.coins._y = (Math.random() * 300) + 50;
coin++;
}
if (_root.lent.hitTest(this)) {
if ((_root.lent._alpha = 100)) {
_root.lent._alpha = 0;
_root.lent.t = 0;
coin = coin + 5;
lent = lent + 0.1;
}
}
}
if (colisou == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
_root.returnb._x = 237;
_root.returnb._y = 91;
}
}
}
Instance of Symbol 312 MovieClip "lent" in Frame 30
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (_alpha <= 99) {
this._alpha = this._alpha + 0.5;
t = 0;
_x = 600;
}
if (_alpha > 99) {
if (t == 0) {
_x = 430;
_y = ((Math.random() * 300) + 50);
t = 1;
}
}
}
Frame 31
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone});
stop();
_root.kongregateStats.submit("StoryMode", 1);
Instance of Symbol 316 MovieClip in Frame 31
onClipEvent (load) {
dir = 1;
}
onClipEvent (enterFrame) {
_x = (_x - dir);
if (_x < -956) {
dir = 0;
}
}
Instance of Symbol 316 MovieClip in Frame 31
onClipEvent (load) {
dir = 1;
}
onClipEvent (enterFrame) {
_x = (_x - dir);
if (_x < -956) {
dir = 0;
}
}
Instance of Symbol 316 MovieClip in Frame 31
onClipEvent (load) {
dir = 1;
}
onClipEvent (enterFrame) {
_x = (_x - dir);
if (_x < -956) {
dir = 0;
}
}
Frame 32
stop();
stage = 1;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:2});
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 32
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
angle = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 103;
_y = 55;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 103;
_y = 55;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 103;
_y = 55;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 103;
_y = 55;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(34);
}
}
Frame 33
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone});
stop();
Frame 34
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:4});
stage = 2;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 34
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
angle = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator3.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator3.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator3.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator3.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator4.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator4.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator4.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.rotator4.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(35);
}
}
Instance of Symbol 69 MovieClip "rotator4" in Frame 34
onClipEvent (enterFrame) {
_rotation = (_rotation + 1.1);
}
Instance of Symbol 69 MovieClip "rotator3" in Frame 34
onClipEvent (enterFrame) {
_rotation = (_rotation + 1.1);
}
Instance of Symbol 343 MovieClip "rotator" in Frame 34
onClipEvent (enterFrame) {
_rotation = (_rotation + 1.1);
}
Instance of Symbol 69 MovieClip "rotator2" in Frame 34
onClipEvent (enterFrame) {
_rotation = (_rotation + 1.1);
}
Frame 35
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:4});
stage = 3;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 348 MovieClip "mover" in Frame 35
onClipEvent (load) {
dir = 2;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 14) {
dir = -1;
}
if (_y < -77) {
dir = 1;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 35
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.mover.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.mover.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.mover.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.mover.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 31;
_y = 172;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(36);
}
}
Frame 36
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:2});
stage = 4;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 36
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = -0.11;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(37);
}
}
Frame 37
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:2});
stage = 5;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 37
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.072;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.key.hitTest(this)) {
key = key + 1;
_root.key._x = -110;
_root.key._y = -110;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(38);
}
}
Frame 38
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:2});
stage = 6;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 38
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0.08;
gravity = 0.052;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 458;
_y = 28;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(39);
}
}
Frame 39
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:2});
stage = 7;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 373 MovieClip "R" in Frame 39
onClipEvent (enterFrame) {
_rotation = (_rotation + 7.1);
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 39
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 5;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 5;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 5;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 5;
}
if (_root.R.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 5;
}
if (_root.R.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 5;
}
if (_root.R.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 5;
}
if (_root.R.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 5;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Frame 40
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:4});
_root.kongregateStats.submit("StoryMode", 8);
Frame 41
stop();
var cont = new Number();
var cont2 = new Number();
var cont3 = new Number();
stage = 8;
cont = 0;
count2 = 0;
count3 = 0;
Stage.showMenu = false;
stop();
onEnterFrame = function () {
if (Key.isDown(38) && (hero2._y > 253)) {
hero2._y = hero2._y - 2;
}
if (Key.isDown(40) && (hero2._y < 304)) {
hero2._y = hero2._y + 2;
}
if (Key.isDown(37)) {
dir = 1;
}
if (Key.isDown(39)) {
dir = 2;
}
if (dir == 2) {
_root.cont3++;
_root.tiro2.duplicateMovieClip("tiro2" + _root.cont3, _root.cont3, _root.cont3);
_root["tiro2" + _root.cont3]._y = hero2._y + 12;
_root["tiro2" + _root.cont3]._x = hero2._x + 25;
}
if (dir == 1) {
_root.cont++;
_root.tiro.duplicateMovieClip("tiro" + _root.cont, _root.cont, _root.cont);
_root["tiro" + _root.cont]._y = hero2._y + 12;
_root["tiro" + _root.cont]._x = hero2._x;
}
if (_root.inimigo4.kills == 60) {
_root.gotoAndPlay(42);
}
};
Instance of Symbol 163 MovieClip "inimigo8" in Frame 41
onClipEvent (enterFrame) {
if (life <= 0) {
this._x = 621;
_root.inimigo4.kills++;
this.life = 100;
} else {
this._x = this._x - 1;
if (this._x < 240) {
_root.gotoAndPlay(40);
}
}
}
Instance of Symbol 163 MovieClip "inimigo5" in Frame 41
onClipEvent (enterFrame) {
if (life <= 0) {
this._x = 580;
_root.inimigo4.kills++;
this.life = 100;
} else {
this._x = this._x - 3;
if (this._x < 240) {
_root.gotoAndPlay(40);
}
}
}
Instance of Symbol 163 MovieClip "inimigo6" in Frame 41
onClipEvent (enterFrame) {
if (life <= 0) {
this._x = 639;
_root.inimigo4.kills++;
this.life = 100;
} else {
this._x = this._x - 3;
if (this._x < 240) {
_root.gotoAndPlay(40);
}
}
}
Instance of Symbol 163 MovieClip "inimigo7" in Frame 41
onClipEvent (enterFrame) {
if (life <= 0) {
this._x = 751;
_root.inimigo4.kills++;
this.life = 100;
} else {
this._x = this._x - 2;
if (this._x < 240) {
_root.gotoAndPlay(40);
}
}
}
Instance of Symbol 163 MovieClip "inimigo1" in Frame 41
onClipEvent (enterFrame) {
if (life <= 0) {
this._x = -84;
_root.inimigo4.kills++;
this.life = 100;
} else {
this._x = this._x + 3;
if (this._x > 275) {
_root.gotoAndPlay(40);
}
}
}
Instance of Symbol 163 MovieClip "inimigo4" in Frame 41
onClipEvent (load) {
kills = 0;
}
onClipEvent (enterFrame) {
if (life <= 0) {
this._x = -182;
kills++;
this.life = 100;
} else {
this._x = this._x + 1;
if (this._x > 275) {
_root.gotoAndPlay(40);
}
}
}
Instance of Symbol 163 MovieClip "inimigo3" in Frame 41
onClipEvent (enterFrame) {
if (life <= 0) {
this._x = -96;
_root.inimigo4.kills++;
this.life = 100;
} else {
this._x = this._x + 2;
if (this._x > 275) {
_root.gotoAndPlay(40);
}
}
}
Instance of Symbol 163 MovieClip "inimigo2" in Frame 41
onClipEvent (enterFrame) {
if (life <= 0) {
this._x = -67;
_root.inimigo4.kills++;
this.life = 100;
} else {
this._x = this._x + 3;
if (this._x > 275) {
_root.gotoAndPlay(40);
}
}
}
Instance of Symbol 165 MovieClip "tiro2" in Frame 41
onClipEvent (enterFrame) {
if (_name != "tiro2") {
this._x = this._x + 14;
if (this._x < 0) {
this.removeMovieClip();
}
if (this._x > 550) {
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo5)) {
_root.inimigo5.life = _root.inimigo5.life - 40;
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo6)) {
_root.inimigo6.life = _root.inimigo6.life - 34;
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo7)) {
_root.inimigo7.life = _root.inimigo7.life - 25;
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo8)) {
_root.inimigo8.life = _root.inimigo8.life - 20;
this.removeMovieClip();
}
}
}
Instance of Symbol 165 MovieClip "tiro" in Frame 41
onClipEvent (enterFrame) {
if (_name != "tiro") {
this._x = this._x - 14;
if (this._x < 0) {
this.removeMovieClip();
}
if (this._x > 550) {
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo1)) {
_root.inimigo1.life = _root.inimigo1.life - 40;
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo2)) {
_root.inimigo2.life = _root.inimigo2.life - 34;
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo3)) {
_root.inimigo3.life = _root.inimigo3.life - 25;
this.removeMovieClip();
}
if (this.hitTest(_root.inimigo4)) {
_root.inimigo4.life = _root.inimigo4.life - 20;
this.removeMovieClip();
}
}
}
Frame 42
stop();
Frame 43
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:8});
stage = 9;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 43
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(45);
}
}
Frame 44
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:8});
stage = 9;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 44
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 274;
_y = 295;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 274;
_y = 295;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 274;
_y = 295;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 274;
_y = 295;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(45);
}
}
Frame 45
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:9});
stage = 10;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 397 MovieClip "mover" in Frame 45
onClipEvent (load) {
dir = 2.3;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 336) {
dir = -1.3;
}
if (_y < 68) {
dir = 2.2;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 45
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 491;
_y = 342;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 491;
_y = 342;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 491;
_y = 342;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 491;
_y = 342;
}
if (_root.mover.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 491;
_y = 342;
}
if (_root.mover.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 491;
_y = 342;
}
if (_root.mover.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 491;
_y = 342;
}
if (_root.mover.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 491;
_y = 342;
}
if (_root.key.hitTest(this)) {
key = key + 1;
_root.key._x = -110;
_root.key._y = -110;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(46);
}
}
Frame 46
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:1});
stage = 11;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 400 MovieClip "rotator2" in Frame 46
onClipEvent (load) {
dir = 1.8;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_x = (_x + dir);
_rotation = (_rotation + dir);
if (_x > 420) {
dir = -1.8;
}
if (_x < 96) {
dir = 1.8;
}
}
}
Instance of Symbol 400 MovieClip "rotator" in Frame 46
onClipEvent (load) {
dir = 1.8;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_x = (_x + dir);
_rotation = (_rotation + dir);
if (_x > 420) {
dir = -1.8;
}
if (_x < 96) {
dir = 1.8;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 46
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.rotator.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.rotator.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.rotator2.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.rotator2.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.rotator.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.rotator2.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.rotator2.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.rotator.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 18;
_y = 87;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(47);
}
}
Frame 47
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:3});
stage = 12;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 400 MovieClip "rotator" in Frame 47
onClipEvent (load) {
dir = 1.8;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_rotation = (_rotation + dir);
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 47
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
_root.dark._rotation = angle;
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.grow.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.grow.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.grow.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.grow.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.rotator.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.rotator.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.rotator.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.rotator.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 372;
_y = 3;
}
if (_root.key.hitTest(this)) {
key = key + 1;
_root.key._x = -110;
_root.key._y = -110;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(48);
}
}
Frame 48
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:3});
stage = 13;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 48
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 2));
_x = (_x + (xspeed / 1.2));
}
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 455;
_y = 31;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 455;
_y = 31;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 455;
_y = 31;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 455;
_y = 31;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.sensor2.hitTest(this)) {
_root.gotoAndPlay(49);
}
}
Frame 49
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:4});
stage = 14;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 425 MovieClip "mover" in Frame 49
onClipEvent (load) {
dir = 2.5;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_x = (_x + dir);
if (_x > 165) {
dir = -2.5;
}
if (_x < 18) {
dir = 2.5;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 49
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 2));
_x = (_x + (xspeed / 1.2));
}
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 326;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 326;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 326;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 326;
}
if (_root.mover.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 326;
}
if (_root.mover.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 326;
}
if (_root.mover.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 326;
}
if (_root.mover.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 16;
_y = 326;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(50);
}
}
Frame 50
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:1});
stage = 15;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 432 MovieClip "elevator" in Frame 50
onClipEvent (load) {
dir = 1.5;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > -1) {
dir = -1.5;
}
if (_y < -273) {
dir = 1.5;
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 50
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
sunken = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
angle = Math.atan(yspeed / xspeed) / (Math.PI/180);
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 2));
_x = (_x + (xspeed / 1.2));
}
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.elevator.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.elevator.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.elevator.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.elevator.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.orange.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.orange.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.orange.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.orange.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 6;
_y = 34;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(51);
}
}
Frame 51
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, startPoint:1});
stage = 16;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 51
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
sunken = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
if (sunken == 0) {
_y = (_y + yspeed);
_x = (_x + xspeed);
} else {
_y = (_y + (yspeed / 2));
_x = (_x + (xspeed / 1.2));
}
if (xspeed < 0) {
angle = angle + 180;
}
if ((xspeed >= 0) && (yspeed < 0)) {
angle = angle + 360;
}
this.hero_dir._rotation = angle - _rotation;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 3;
_y = 35;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 3;
_y = 35;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 3;
_y = 35;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 3;
_y = 35;
}
if (_root.danger.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 3;
_y = 35;
}
if (_root.danger.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 3;
_y = 35;
}
if (_root.danger.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 3;
_y = 35;
}
if (_root.danger.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 3;
_y = 35;
}
if (_root.water.hitTest(_x, _y, true)) {
sunken = 1;
} else {
sunken = 0;
}
if (_root.se.hitTest(this)) {
_root.gotoAndPlay(52);
}
}
Frame 52
stop();
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone, startPoint:9});
stage = 17;
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 449 MovieClip "gate" in Frame 52
onClipEvent (load) {
dir = 0.2;
}
onClipEvent (enterFrame) {
if (_root.hero.fase == 18) {
_x = (_x + dir);
if (_y > 200) {
dir = 0;
}
}
}
Instance of Symbol 282 MovieClip "dark" in Frame 52
onClipEvent (enterFrame) {
this._alpha = 80 - (_root.hero.fase * 5);
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 52
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
dir = 0;
fase = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
dir = 1;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
dir = 2;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
dir = 3;
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
dir = 4;
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
_y = (_y + yspeed);
_x = (_x + xspeed);
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 465;
_y = 357;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b12.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
_root.b16.t = 0;
_root.b17.t = 0;
_root.b18.t = 0;
_root.b19.t = 0;
_root.b20.t = 0;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 465;
_y = 357;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b12.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
_root.b16.t = 0;
_root.b17.t = 0;
_root.b18.t = 0;
_root.b19.t = 0;
_root.b20.t = 0;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 465;
_y = 357;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b12.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
_root.b16.t = 0;
_root.b17.t = 0;
_root.b18.t = 0;
_root.b19.t = 0;
_root.b20.t = 0;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 465;
_y = 357;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b12.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
_root.b16.t = 0;
_root.b17.t = 0;
_root.b18.t = 0;
_root.b19.t = 0;
_root.b20.t = 0;
}
if (_root.gate.hitTest(this)) {
xspeed = 0;
yspeed = 0;
_x = 465;
_y = 357;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b12.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b13.t = 0;
_root.b14.t = 0;
_root.b15.t = 0;
_root.b16.t = 0;
_root.b17.t = 0;
_root.b18.t = 0;
_root.b19.t = 0;
_root.b20.t = 0;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(57);
}
}
Instance of Symbol 196 MovieClip "b2" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b1" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b20" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b19" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b16" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b15" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b14" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b13" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b11" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b12" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b9" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b10" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b8" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b7" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b6" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b5" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b4" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b3" in Frame 52
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (t == 0) {
t = 1;
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Frame 53
stop();
var cont = new Number();
cont = 0;
var cont2 = new Number();
cont2 = 0;
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone, startPoint:1});
stage = 19;
_root.kongregateStats.submit("StoryMode", stage);
stop();
onEnterFrame = function () {
if (_root.timer._alpha > 99) {
_root.cont++;
_root.tiro.duplicateMovieClip("tiro" + _root.cont, _root.cont, _root.cont);
_root["tiro" + _root.cont]._y = camera._y + 18.5;
_root["tiro" + _root.cont]._x = camera._x;
_root.tiro2.duplicateMovieClip("tiro2" + _root.cont2, _root.cont2, _root.cont2);
_root["tiro2" + _root.cont2]._y = camera2._y + 18.5;
_root["tiro2" + _root.cont2]._x = camera2._x + 21.5;
_root.timer._alpha = 0;
} else {
_root.timer._alpha = _root.timer._alpha + 2.75;
}
};
Instance of Symbol 457 MovieClip "camera2" in Frame 53
onClipEvent (load) {
dir = 1.5;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_x = (_x + dir);
if (_x > 495) {
dir = -1.5;
}
if (_x < 410) {
dir = 1.5;
}
}
}
Instance of Symbol 165 MovieClip "tiro2" in Frame 53
onClipEvent (enterFrame) {
if (_name != "tiro2") {
this._y = this._y + 8;
if (this.hitTest(_root.hero)) {
_root.hero.xspeed = 0;
_root.hero.yspeed = 0;
_root.hero._x = 59;
_root.hero._y = 75;
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
if (this._x > 550) {
this.removeMovieClip();
}
}
}
Instance of Symbol 457 MovieClip "camera" in Frame 53
onClipEvent (load) {
dir = 1.3;
moving = 1;
}
onClipEvent (enterFrame) {
if (moving) {
_y = (_y + dir);
if (_y > 340) {
dir = -1.3;
}
if (_y < 294) {
dir = 1.3;
}
}
}
Instance of Symbol 165 MovieClip "tiro" in Frame 53
onClipEvent (enterFrame) {
if (_name != "tiro") {
this._x = this._x - 8;
if (this.hitTest(_root.hero)) {
_root.hero.xspeed = 0;
_root.hero.yspeed = 0;
_root.hero._x = 59;
_root.hero._y = 75;
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
if (this._x > 550) {
this.removeMovieClip();
}
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 53
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
_y = (_y + yspeed);
_x = (_x + xspeed);
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 59;
_y = 75;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 59;
_y = 75;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 59;
_y = 75;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 59;
_y = 75;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 59;
_y = 75;
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(58);
}
}
Frame 54
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone, startPoint:8});
stage = 21;
stop();
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 54
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
}
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 261;
_y = 357;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 261;
_y = 357;
}
if (_root.sensor.hitTest(this)) {
Nonoba.api.NonobaAPI.AwardAchievement("legend", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
_root.gotoAndPlay(55);
}
}
Frame 55
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:10, easing:mx.transitions.easing.None.easeNone, startPoint:8});
stage = 21;
_root.kongregateStats.submit("SimpleMode", 21);
stop();
Instance of Symbol 469 MovieClip in Frame 55
on (release) {
_root.gotoAndPlay(16);
}
Frame 56
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone, startPoint:8});
_root.ret.checkpoint = 2;
_root.kongregateStats.submit("SimpleMode", 10);
stop();
Frame 57
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone, startPoint:7});
stage = 18;
stop();
_root.kongregateStats.submit("StoryMode", stage);
Instance of Symbol 449 MovieClip "gate" in Frame 57
onClipEvent (load) {
dir = 0.2;
}
onClipEvent (enterFrame) {
this._alpha = 100 - (_root.hero.fase * 8);
if (_root.hero.fase == 12) {
this.removeMovieClip();
}
}
Instance of Symbol 7 MovieClip [hero] "hero" in Frame 57
onClipEvent (load) {
power = 0.35;
yspeed = 0;
xspeed = 0;
wind = 0;
gravity = 0.022;
upconstant = 0.45;
friction = 0.995;
dir = 0;
fase = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
xspeed = xspeed - power;
dir = 1;
}
if (Key.isDown(39)) {
xspeed = xspeed + power;
dir = 2;
}
if (Key.isDown(38)) {
yspeed = yspeed - (power * upconstant);
dir = 3;
}
if (Key.isDown(40)) {
yspeed = yspeed + (power * upconstant);
dir = 4;
}
speed = Math.sqrt(((yspeed * yspeed) + (xspeed * xspeed)) + 2);
xspeed = (xspeed + wind) * friction;
yspeed = yspeed + gravity;
_root.dark._x = 12 + _x;
_root.dark._y = 12 + _y;
_y = (_y + yspeed);
_x = (_x + xspeed);
if (xspeed > 15) {
xspeed = 15;
}
if (xspeed < -15) {
xspeed = -15;
}
if (this.yspeed > 15) {
this.yspeed = 15;
}
if (yspeed < -15) {
yspeed = -15;
}
if (_root.wall.hitTest(25 + _x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 154;
_y = 364;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 154;
_y = 364;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
}
if (_root.wall.hitTest(_x, 25 + _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 154;
_y = 364;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b12.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
}
if (_root.wall.hitTest(25 + _x, _y, true)) {
xspeed = 0;
yspeed = 0;
_x = 154;
_y = 364;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
}
if (_root.gate.hitTest(this)) {
if (fase < 12) {
xspeed = 0;
yspeed = 0;
_x = 154;
_y = 364;
fase = 0;
_root.b1.t = 0;
_root.b1.t = 0;
_root.b2.t = 0;
_root.b3.t = 0;
_root.b4.t = 0;
_root.b5.t = 0;
_root.b6.t = 0;
_root.b7.t = 0;
_root.b8.t = 0;
_root.b9.t = 0;
_root.b10.t = 0;
_root.b11.t = 0;
_root.b12.t = 0;
}
}
if (_root.sensor.hitTest(this)) {
_root.gotoAndPlay(53);
}
}
Instance of Symbol 196 MovieClip "b12" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b11" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b10" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b9" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b8" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b7" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b6" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b5" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b4" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b3" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b2" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip "b1" in Frame 57
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
if (t == 0) {
_alpha = 30;
if (_root.hero.hitTest(this)) {
if (_root.hero.speed > 5) {
if (t == 0) {
t = 1;
}
}
}
if (t == 1) {
_root.hero.fase = _root.hero.fase + 1;
t = 2;
}
if (t > 1) {
_alpha = 100;
}
}
}
Frame 58
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.None.easeNone});
stop();
stage = 20;
Stage.showMenu = false;
Frame 59
stop();
Frame 60
stop();
Frame 61
mx.transitions.TransitionManager.start(this, {type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:4, easing:mx.transitions.easing.None.easeNone});
stop();
_root.kongregateStats.submit("StoryMode", 20);
Frame 62
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("1d6bf282", this, 10301, true);
stopAllSounds();
_root.kongregateServices.connect();
stage = 0;
b = new Sound();
b.attachSound("b");
b.start(0, 999);
Stage.showMenu = false;
stop();
Instance of Symbol 511 MovieClip "cli" in Frame 62
onClipEvent (load) {
clic = 0;
clic2 = 0;
}
Frame 63
stop();
Frame 64
Nonoba.api.NonobaAPI.AwardAchievement("stage5", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace(("The achievement was awarded, the user has now recived this achievement " + count) + " times");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
stop();
Frame 65
stop();
NonobaAPI.AwardAchievement("novice", function (response, count) {
switch (response) {
case NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Symbol 3 MovieClip Frame 1
Instance of Symbol 3 MovieClip "trail_sprite" in Symbol 4 MovieClip [trail_sprite] Frame 1
/* no clip actions */
Symbol 7 MovieClip [hero] Frame 1
stop();
Symbol 529 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.2");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.gotoAndStop(62);
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.gotoAndStop(64);
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 530 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 531 MovieClip [__Packages.mx.transitions.TransitionManager] Frame 0
class mx.transitions.TransitionManager
{
var _transitions, removeEventListener, _content, addEventListener, _contentAppearance, _innerBounds, _outerBounds, _width, _height, _triggerEvent, dispatchEvent;
function TransitionManager (content) {
this.content = (content);
_transitions = {};
}
function set content(c) {
removeEventListener("allTransitionsInDone", _content);
removeEventListener("allTransitionsOutDone", _content);
_content = c;
saveContentAppearance();
addEventListener("allTransitionsInDone", _content);
addEventListener("allTransitionsOutDone", _content);
//return(content);
}
function get content() {
return(_content);
}
function get transitionsList() {
return(_transitions);
}
function get numTransitions() {
var _local2 = 0;
for (var _local3 in _transitions) {
_local2++;
}
return(_local2);
}
function get numInTransitions() {
var _local3 = 0;
var _local2 = _transitions;
for (var _local4 in _local2) {
if (!_local2[_local4].direction) {
_local3++;
}
}
return(_local3);
}
function get numOutTransitions() {
var _local3 = 0;
var _local2 = _transitions;
for (var _local4 in _local2) {
if (_local2[_local4].direction) {
_local3++;
}
}
return(_local3);
}
function get contentAppearance() {
return(_contentAppearance);
}
static function start(content, transParams) {
if (content.__transitionManager == undefined) {
content.__transitionManager = new mx.transitions.TransitionManager(content);
}
if (transParams.direction == 1) {
content.__transitionManager._triggerEvent = "hide";
} else {
content.__transitionManager._triggerEvent = "reveal";
}
return(content.__transitionManager.startTransition(transParams));
}
function startTransition(transParams) {
removeTransition(findTransition(transParams));
var _local3 = transParams.type;
var _local2 = new _local3[undefined](_content, transParams, this);
addTransition(_local2);
_local2.start();
return(_local2);
}
function addTransition(trans) {
trans.ID = ++IDCount;
_transitions[trans.ID] = trans;
return(trans);
}
function removeTransition(trans) {
if (_transitions[trans.ID] == undefined) {
return(false);
}
trans.cleanUp();
return(delete _transitions[trans.ID]);
}
function findTransition(transParams) {
var _local2;
for (var _local4 in _transitions) {
_local2 = _transitions[_local4];
if (_local2.type == transParams.type) {
return(_local2);
}
}
return(undefined);
}
function removeAllTransitions() {
for (var _local2 in _transitions) {
_transitions[_local2].cleanUp();
removeTransition(_transitions[_local2]);
}
}
function saveContentAppearance() {
var _local2 = _content;
if (_contentAppearance == undefined) {
var _local3 = (_contentAppearance = {});
for (var _local4 in _visualPropList) {
_local3[_local4] = _local2[_local4];
}
_local3.colorTransform = new Color(_local2).getTransform();
}
_innerBounds = _local2.getBounds(targetPath(_local2));
_outerBounds = _local2.getBounds(targetPath(_local2._parent));
_width = _local2._width;
_height = _local2._height;
}
function restoreContentAppearance() {
var _local2 = _content;
var _local3 = _contentAppearance;
for (var _local4 in _visualPropList) {
_local2[_local4] = _local3[_local4];
}
new Color(_local2).setTransform(_local3.colorTransform);
}
function transitionInDone(e) {
removeTransition(e.target);
if (numInTransitions == 0) {
var _local2;
_local2 = _content._visible;
if ((_triggerEvent == "hide") || (_triggerEvent == "hideChild")) {
_content._visible = false;
}
if (_local2) {
dispatchEvent({type:"allTransitionsInDone", target:this});
}
}
}
function transitionOutDone(e) {
removeTransition(e.target);
if (numOutTransitions == 0) {
restoreContentAppearance();
var _local2;
_local2 = _content._visible;
if (_local2 && ((_triggerEvent == "hide") || (_triggerEvent == "hideChild"))) {
_content._visible = false;
}
updateAfterEvent();
if (_local2) {
dispatchEvent({type:"allTransitionsOutDone", target:this});
}
}
}
function toString() {
return("[TransitionManager]");
}
static var version = "1.1.0.52";
static var IDCount = 0;
var type = mx.transitions.TransitionManager;
var className = "TransitionManager";
var _visualPropList = {_x:null, _y:null, _xscale:null, _yscale:null, _alpha:null, _rotation:null};
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.TransitionManager.prototype);
}
Symbol 532 MovieClip [__Packages.mx.transitions.Transition] Frame 0
class mx.transitions.Transition
{
var _manager, removeEventListener, addEventListener, _content, _twn, _easing, _progress, dispatchEvent, _innerBounds, _outerBounds, _width, _height;
function Transition (content, transParams, manager) {
if (!arguments.length) {
return;
}
init(content, transParams, manager);
}
function set manager(mgr) {
if (_manager != undefined) {
removeEventListener("transitionInDone", _manager);
removeEventListener("transitionOutDone", _manager);
removeEventListener("transitionProgress", _manager);
}
_manager = mgr;
addEventListener("transitionInDone", _manager);
addEventListener("transitionOutDone", _manager);
addEventListener("transitionProgress", _manager);
//return(manager);
}
function get manager() {
return(_manager);
}
function set content(c) {
if (typeof(c) == "movieclip") {
_content = c;
_twn.obj = c;
}
//return(content);
}
function get content() {
return(_content);
}
function set direction(direction) {
_direction = (direction ? 1 : 0);
//return(this.direction);
}
function get direction() {
return(_direction);
}
function set duration(d) {
if (d) {
_duration = d;
_twn.duration = d;
}
//return(duration);
}
function get duration() {
return(_duration);
}
function set easing(e) {
if (typeof(e) == "string") {
e = eval (e);
} else if (e == undefined) {
e = _noEase;
}
_easing = e;
_twn.easing = e;
//return(easing);
}
function get easing() {
return(_easing);
}
function set progress(p) {
if (_progress == p) {
return;
}
_progress = p;
if (_direction) {
_render(1 - p);
} else {
_render(p);
}
dispatchEvent({type:"transitionProgress", target:this, progress:p});
//return(progress);
}
function get progress() {
return(_progress);
}
function init(content, transParams, manager) {
this.content = (content);
direction = (transParams.direction);
duration = (transParams.duration);
easing = (transParams.easing);
this.manager = (manager);
_innerBounds = this.manager._innerBounds;
_outerBounds = this.manager._outerBounds;
_width = this.manager._width;
_height = this.manager._height;
_resetTween();
}
function toString() {
return(("[Transition " + className) + "]");
}
function start() {
content._visible = true;
_twn.start();
}
function stop() {
_twn.fforward();
_twn.stop();
}
function cleanUp() {
removeEventListener("transitionInDone", _manager);
removeEventListener("transitionOutDone", _manager);
removeEventListener("transitionProgress", _manager);
stop();
}
function getNextHighestDepthMC(mc) {
var _local4 = mc.getNextHighestDepth();
if (_local4 != undefined) {
return(_local4);
}
_local4 = -1;
var _local3;
var _local1;
for (var _local5 in mc) {
_local1 = mc[_local5];
if ((typeof(_local1) == "movieclip") && (_local1._parent == mc)) {
_local3 = _local1.getDepth();
if (_local3 > _local4) {
_local4 = _local3;
}
}
}
return(_local4 + 1);
}
function drawBox(mc, x, y, w, h) {
mc.moveTo(x, y);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
}
function drawCircle(mc, x, y, r) {
mc.moveTo(x + r, y);
mc.curveTo(r + x, (0.414213562373095 * r) + y, (0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((0.414213562373095 * r) + x, r + y, x, r + y);
mc.curveTo((-0.414213562373095 * r) + x, r + y, (-0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((-r) + x, (0.414213562373095 * r) + y, (-r) + x, y);
mc.curveTo((-r) + x, (-0.414213562373095 * r) + y, (-0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo((-0.414213562373095 * r) + x, (-r) + y, x, (-r) + y);
mc.curveTo((0.414213562373095 * r) + x, (-r) + y, (0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo(r + x, (-0.414213562373095 * r) + y, r + x, y);
}
function _render(p) {
}
function _resetTween() {
_twn.stop();
_twn.removeListener(this);
_twn = new mx.transitions.Tween(this, null, easing, 0, 1, duration, true);
_twn.stop();
_twn.prop = "progress";
_twn.addListener(this);
}
function _noEase(t, b, c, d) {
return(((c * t) / d) + b);
}
function onMotionFinished(src) {
if (direction) {
dispatchEvent({type:"transitionOutDone", target:this});
} else {
dispatchEvent({type:"transitionInDone", target:this});
}
}
static var version = "1.1.0.52";
static var IN = 0;
static var OUT = 1;
var type = mx.transitions.Transition;
var className = "Transition";
var _direction = 0;
var _duration = 2;
static var __mixinFED = mx.events.EventDispatcher.initialize(mx.transitions.Transition.prototype);
}
Symbol 533 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 534 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 535 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 536 MovieClip [__Packages.mx.transitions.Wipe] Frame 0
class mx.transitions.Wipe extends mx.transitions.Transition
{
var _content, _mask, getNextHighestDepthMC, __get__direction, _innerMask, drawBox, _cornerMode, _innerBounds;
function Wipe (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
super.init(content, transParams, manager);
if (transParams.startPoint) {
_startPoint = transParams.startPoint;
}
_initMask();
}
function start() {
_content.setMask(_mask);
super.start();
}
function cleanUp() {
_mask.removeMovieClip();
super.cleanUp();
}
function _initMask() {
var _local5 = _content;
var _local6 = getNextHighestDepthMC(_local5);
var _local4 = (_mask = _local5.createEmptyMovieClip("__mask_Wipe_" + __get__direction(), _local6));
var _local2 = (_innerMask = _mask.createEmptyMovieClip("innerMask", 0));
_local2._x = (_local2._y = 50);
_local4._visible = false;
_local2.beginFill(16711680);
drawBox(_local2, -50, -50, 100, 100);
_local2.endFill();
switch (_startPoint) {
case 3 :
case 2 :
_local2._rotation = 90;
break;
case 1 :
case 4 :
_local2._rotation = 0;
break;
case 9 :
case 6 :
_local2._rotation = 180;
break;
case 7 :
case 8 :
_local2._rotation = -90;
break;
}
if (_startPoint % 2) {
_cornerMode = true;
}
var _local3 = _innerBounds;
_local4._x = _local3.xMin;
_local4._y = _local3.yMin;
_local4._width = _local3.xMax - _local3.xMin;
_local4._height = _local3.yMax - _local3.yMin;
}
function _render(p) {
_innerMask.clear();
_innerMask.beginFill(16711680);
if (_cornerMode) {
_drawSlant(_innerMask, p);
} else {
drawBox(_innerMask, -50, -50, p * 100, 100);
}
_innerMask.endFill();
}
function _drawSlant(mc, p) {
mc.moveTo(-50, -50);
if (p <= 0.5) {
mc.lineTo(200 * (p - 0.25), -50);
mc.lineTo(-50, 200 * (p - 0.25));
} else {
mc.lineTo(50, -50);
mc.lineTo(50, 200 * (p - 0.75));
mc.lineTo(200 * (p - 0.75), 50);
mc.lineTo(-50, 50);
}
mc.lineTo(-50, -50);
}
static var version = "1.1.0.52";
var type = mx.transitions.Wipe;
var className = "Wipe";
var _startPoint = 4;
}
Symbol 537 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 538 MovieClip [__Packages.Nonoba.api.NonobaAPI] Frame 0
class Nonoba.api.NonobaAPI
{
static var api;
function NonobaAPI () {
throw new Error("ERROR!: You cannot create an instance of the NonobaAPI class!");
}
static function SubmitScore(key, score, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.SubmitScore)) {
api.SubmitScore(key, score, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.SubmitScore(key, score, callback);
});
}
}
static function AwardAchievement(key, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, 0);
}
return(undefined);
}
if (api && (api.AwardAchievement)) {
api.AwardAchievement(key, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.AwardAchievement(key, callback);
});
}
}
static function SetUserData(key, value, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.SetUserData)) {
api.SetUserData(key, value, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.SetUserData(key, value, callback);
});
}
}
static function GetUserData(key, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, "");
}
return(undefined);
}
if (api && (api.GetUserData)) {
api.GetUserData(key, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.GetUserData(key, callback);
});
}
}
static function GetUsername(callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, "");
}
return(undefined);
}
if (api && (api.GetUsername)) {
api.GetUsername(callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.GetUsername(callback);
});
}
}
static function Init(container) {
function emptyCache() {
var _local1 = 0;
while (_local1 < Nonoba.api.NonobaAPI.cachedRequests.length) {
Nonoba.api.NonobaAPI.cachedRequests[_local1]();
_local1++;
}
Nonoba.api.NonobaAPI.cachedRequests = [];
}
if (isInited) {
throw new Error("NonobaAPI can not be re-initialized!");
}
isInited = true;
var _local3 = _root.nonoba$apicodeas2;
if (!_local3) {
failed = true;
emptyCache();
}
System.security.allowDomain("*");
container = container || _root;
api = container.createEmptyMovieClip("___NonobaAPI__loader", container.getNextHighestDepth());
var _local5 = new MovieClipLoader();
_local5.addListener({onLoadComplete:function () {
var loadTimer = setInterval(mx.utils.Delegate.create(Nonoba.api.NonobaAPI, function () {
if (!(Nonoba.api.NonobaAPI.api.SubmitScore === undefined)) {
clearInterval(loadTimer);
emptyCache();
}
}), 500);
}, onLoadError:function () {
Nonoba.api.NonobaAPI.failed = true;
emptyCache();
}});
_local5.loadClip(_local3, api);
}
static var SUCCESS = "SUCCESS";
static var NOT_LOGGED_IN = "user not logged in";
static var ERROR = "error";
static var isInited = false;
static var loading = false;
static var cachedRequests = [];
static var failed = false;
}
Symbol 539 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 540 MovieClip [__Packages.mx.transitions.Fade] Frame 0
class mx.transitions.Fade extends mx.transitions.Transition
{
var _alphaFinal, __get__manager, _content;
function Fade (content, transParams, manager) {
super();
init(content, transParams, manager);
}
function init(content, transParams, manager) {
super.init(content, transParams, manager);
_alphaFinal = __get__manager().__get__contentAppearance()._alpha;
}
function _render(p) {
_content._alpha = _alphaFinal * p;
}
static var version = "1.1.0.52";
var type = mx.transitions.Fade;
var className = "Fade";
}
Symbol 18 Button
on (release) {
if (b.getVolume() > 0) {
b.setVolume(0);
} else {
b.setVolume(100);
}
}
Symbol 131 Button
on (release) {
t = 0;
coin = 0;
key = 0;
_root.gotoAndPlay(62);
}
Symbol 135 Button
on (release) {
_root.gotoAndPlay(16);
}
Symbol 144 Button
on (release) {
if (_root.inimigo5.kills >= 300) {
Nonoba.api.NonobaAPI.AwardAchievement("destroyer", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
}
_root.gotoAndPlay(29);
}
Symbol 163 MovieClip Frame 1
var life = 100;
Symbol 171 Button
on (release) {
if (_root.ret.checkpoint == 1) {
_root.gotoAndPlay(7);
}
if (_root.ret.checkpoint == 2) {
_root.gotoAndPlay(12);
}
if (_root.ret.checkpoint == 3) {
_root.gotoAndPlay(22);
}
if (_root.ret.checkpoint == 4) {
_root.gotoAndPlay(12);
}
}
Symbol 196 MovieClip Frame 1
life = 10;
Symbol 203 Button
on (release) {
if (_root.ret.checkpoint == 1) {
_root.gotoAndPlay(7);
}
if (_root.ret.checkpoint == 2) {
_root.gotoAndPlay(12);
}
if (_root.ret.checkpoint == 3) {
_root.gotoAndPlay(22);
}
}
Symbol 289 Button
on (rollOver) {
_root.dif.text = " ";
_root.descr.text = "See who did this game.";
}
on (rollOut) {
_root.dif.text = " ";
_root.descr.text = "";
}
on (release) {
_root.gotoAndPlay(65);
}
Symbol 293 Button
on (rollOver) {
_root.dif.text = " Difficulty: 10%";
_root.descr.text = "Destroy all the blocks that you can without colision. Coins give you extra points. Uses arrow keys to move and A and D to shoot.";
_root.po.text = "Power Ups: Super Shoot, Fast Shoot and five points coin.";
}
on (rollOut) {
_root.dif.text = " ";
_root.descr.text = "\t";
_root.po.text = "";
}
on (release) {
_root.gotoAndPlay(18);
}
Symbol 298 Button
on (rollOver) {
_root.dif.text = " Difficulty: 15%";
_root.descr.text = "Try to catch all the coins that you can, but without colisions. Use arrows to move";
_root.po.text = "Power Ups: -Speed";
}
on (rollOut) {
_root.dif.text = " ";
_root.descr.text = "\t";
_root.po.text = "";
}
on (release) {
_root.gotoAndPlay(30);
}
Symbol 302 Button
on (rollOver) {
_root.dif.text = " ";
_root.descr.text = "Return to main menu";
}
on (rollOut) {
_root.dif.text = " ";
_root.descr.text = "\t";
}
on (release) {
stage = 0;
_root.gotoAndPlay(62);
}
Symbol 306 Button
on (release) {
_root.gotoAndPlay(29);
}
Symbol 322 Button
on (release) {
_root.gotoAndPlay(33);
}
Symbol 338 Button
on (release) {
_root.gotoAndPlay(32);
}
Symbol 379 Button
on (release) {
_root.gotoAndPlay(41);
}
Symbol 384 Button
on (release) {
_root.gotoAndPlay(44);
}
Instance of Symbol 134 MovieClip in Symbol 469 MovieClip Frame 1
on (release) {
_root.gotoAndPlay(16);
}
Symbol 479 Button
on (release) {
_root.gotoAndPlay(59);
}
Symbol 487 Button
on (release) {
_root.gotoAndPlay(60);
}
Symbol 495 Button
on (release) {
_root.gotoAndPlay(61);
}
Symbol 502 Button
on (release) {
t = 0;
coin = 0;
key = 0;
stage = 0;
_root.gotoAndPlay(62);
}
Symbol 508 Button
on (rollOver) {
_root.dif.text = " Difficulty: 20%";
_root.descr.text = "Extra things to do like: Survives and credits.";
}
on (rollOut) {
_root.dif.text = " ";
_root.descr.text = "\t";
}
on (release) {
stage = 0;
_root.gotoAndPlay(29);
}
Symbol 518 Button
on (rollOver) {
_root.dif.text = " Difficulty: 70%";
_root.descr.text = "Mode medium, recommeded for great players.\t";
}
on (rollOut) {
_root.dif.text = " ";
_root.descr.text = "\t";
}
on (release) {
stage = 1;
_root.gotoAndPlay(63);
}
Symbol 522 Button
on (rollOver) {
_root.dif.text = " Difficulty: 50%";
_root.descr.text = "Sort of easy, recomended for novice players";
}
on (rollOut) {
_root.dif.text = " ";
_root.descr.text = "\t";
}
on (release) {
stage = 0;
_root.gotoAndPlay(31);
}
Symbol 524 Button
on (release) {
_root.gotoAndPlay(2);
}
Symbol 525 Button
on (release) {
_root.hero.coin = 0;
stage = 0;
_root.gotoAndPlay(29);
}