Frame 91 (321 B)
stop();
gameOn = false;
savedVars_so = SharedObject.getLocal("JozeWorldUserData");
highScore = savedVars_so.data.highScore_planet;
if (highScore == undefined) {
highScore = 1;
}
play_btn.onRelease = function () {
gotoAndStop (94);
gameOn = true;
};
how_btn.onRelease = function () {
gotoAndStop (93);
};
Frame 92 (175 B)
gameOn = false;
play_btn.onRelease = function () {
delete onEnterFrame;
gotoAndStop (94);
gameOn = true;
};
how_btn.onRelease = function () {
gotoAndStop (93);
};
Frame 93 (94 B)
stopAllSounds();
play_btn.onRelease = function () {
gotoAndStop (94);
gameOn = true;
};
Frame 94 (0.99 KiB)
man_mc.speed = 0;
man_mc.acceleration = 2;
man_mc.friction = 0.75;
level = 1;
timer = 0;
man_mc.onEnterFrame = function () {
level_txt.text = level;
if (Key.isDown(39)) {
this.man_mc.play();
this.speed = this.speed + this.acceleration;
this._xscale = -100;
}
if (Key.isDown(37)) {
this.man_mc.play();
this.speed = this.speed - this.acceleration;
this._xscale = 100;
}
if (timer >= 390) {
level = level + 5;
var _local3 = missile_mc.duplicateMovieClip(("missile" + level) + "_mc", _root.getNextHighestDepth());
_local3.onEnterFrame = function () {
if (gameOn == false) {
this.removeMovieClip();
}
};
timer = 0;
}
timer = timer + 1;
this.speed = this.speed * this.friction;
this._rotation = this._rotation + this.speed;
};
onEnterFrame = function () {
highScore_txt.text = highScore;
if (level > highScore) {
highScore = level;
savedVars_so.data.highScore_planet = highScore;
savedVars_so.flush();
newTop_mc.play();
}
};
Symbol 37 MovieClip Frame 1 (26 B)
_rotation = random(360);
Symbol 37 MovieClip Frame 92 (128 B)
_root.level = _root.level + 1;
if (this.hitTest(_parent.man_mc.hitArea_mc)) {
_root.gotoAndStop(_root._currentframe - 2);
}
Symbol 45 MovieClip Frame 1 (8 B)
stop();
Symbol 51 MovieClip Frame 2 (55 B)
_root._x = random(10) - 5;
_root._y = random(10) - 5;
Symbol 52 MovieClip Frame 1 (8 B)
stop();
Symbol 58 MovieClip Frame 1 (78 B)
stop();
onRelease = function () {
gotoAndStop (2);
delete onRelease;
};
Symbol 58 MovieClip Frame 2 (145 B)
onEnterFrame = function () {
stopAllSounds();
};
onRelease = function () {
gotoAndStop (1);
delete onEnterFrame;
delete onRelease;
};