Frame 1
Stage.scaleMode = "noScale";
Stage.showMenu = false;
fscommand ("trapallkeys", true);
fscommand ("showmenu", "false");
this.onEnterFrame = function () {
wczytane = getBytesLoaded();
total = getBytesTotal();
if (wczytane >= total) {
gotoAndStop ("menu");
delete this.onEnterFrame;
} else {
stop();
}
};
Frame 3
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);
}
function tracking() {
myURL = "http://gamegarage.co.uk/scripts/";
url = myURL + "tracking.php";
lv = new LoadVars();
lv.game_id = _root.game_id;
lv.user_id = _root.user_id;
lv.sendAndLoad(url, lv, "POST");
}
function scoring() {
var _local1 = _root;
myURL = "http://gamegarage.co.uk/scripts/";
url = myURL + "score.php";
lv = new LoadVars();
lv.game_id = _local1.game_id;
lv.user_id = _local1.user_id;
lv.score = score;
lv.alg = ((_local1.game_id + _local1.user_id) + score) + "a83l9xj";
lv.sendAndLoad(url, lv, "POST");
}
stop();
startujemy = false;
reset = function () {
score = 0;
granicaPrawa = 630;
granicaLewa = 30;
grawitacja = 0;
pozioma = 0;
horyzontalna = 0;
hamulec = 0.5;
krok = 4;
lvl = 1;
silaSkoku = 12;
n = 1;
A = 1;
gotoAndStop ("gra");
};
newLevel = function () {
rysunek._x = -random(600);
oldX = hero._x;
oldY = hero._y;
pushMeX = pushMe._x;
pushMeY = pushMe._y;
bad1X = bad1._x;
bad2X = bad2._x;
bad3X = bad3._x;
bad4X = bad4._x;
bad5X = bad5._x;
oldScore = score;
pozioma = 0;
};
start = function () {
startujemy = true;
};
startGry = function () {
gramy = true;
gotoAndStop ("gra");
};
quit = function () {
GameManager.getInstance().gameDone();
};
__com_mochibot__("6cc1391c", this, 10301, true);
Frame 5
stop();
reset();
newLevel();
this.onEnterFrame = function () {
levelNapis = ("level " + lvl) + "/21";
napis = "score: " + score;
if (gramy == true) {
hero._x = hero._x + pozioma;
pozioma = pozioma * hamulec;
if (Key.isDown(39) && (horyzontalna < 6)) {
pozioma = pozioma + krok;
hero._xscale = 100;
if (hero.tester.hitTest(pushMe.tester) && (hero._x <= pushMe._x)) {
pushMe._x = pushMe._x + pozioma;
stoneSound.play();
}
}
if (Key.isDown(37) && (horyzontalna > -6)) {
pozioma = pozioma - krok;
hero._xscale = -100;
if (hero.tester.hitTest(pushMe.tester) && (hero._x >= pushMe._x)) {
pushMe._x = pushMe._x + pozioma;
stoneSound.play();
}
}
if (hero._x >= granicaPrawa) {
hero._x = granicaPrawa;
}
if (hero._x <= granicaLewa) {
hero._x = granicaLewa;
}
if (grawitacja == 1) {
hero.gotoAndStop(1);
}
if (grawitacja >= 1) {
hero.gotoAndStop(3);
}
grawitacja++;
if (grawitacja >= 30) {
grawitacja = 30;
}
hero._y = hero._y + grawitacja;
i = 0;
while (i < 100) {
czek = eval ("platform" + i);
czek.onEnterFrame = function () {
var _local1 = this;
if ((_local1.tester.hitTest(hero.tester) && (grawitacja >= 0)) && (hero._y <= _local1._y)) {
grawitacja = -1;
hero._y = _local1._y - 20;
hero.gotoAndStop(1);
if (_local1._height >= 35) {
if (_local1.hitTest(hero)) {
hero._x = hero._x + _local1.velocity;
hero._y = hero._y + _local1.velocity2;
hero.gotoAndStop(1);
}
}
}
if (_local1.tester.hitTest(pushMe.tester)) {
pushMe.fall = false;
pushMe._y = _local1._y;
} else {
pushMe.fall = true;
}
if ((_local1.tester.hitTest(hero.tester) && (grawitacja < 0)) && (hero._y >= _local1._y)) {
grawitacja = 0;
}
};
i++;
}
if (Key.isDown(38) && (hero._currentframe == 1)) {
hero._y = hero._y - 15;
grawitacja = -silaSkoku;
hero.gotoAndStop(2);
}
i = 0;
while (i < 11) {
var gem = eval ("coin" + i);
gem.onEnterFrame = function () {
var _local1 = this;
if (_local1.hitTest(hero.tester) && (_local1._visible == true)) {
score = score + 125;
soundFX.gotoAndPlay("collect");
_local1._visible = false;
}
};
i++;
}
i = 0;
while (i < 11) {
var bang = eval ("bomb" + i);
bang.onEnterFrame = function () {
var _local1 = this;
if ((_local1.hitTest(hero.tester) && (_local1._visible == true)) && (_local1._currentframe == 1)) {
gramy = false;
hero.gotoAndStop("bomb");
_local1.play();
}
if (_local1.hitTest(pushMe)) {
_local1.play();
}
};
i++;
}
i = 0;
while (i < 3) {
var przel = eval ("przelacznik" + i);
przel.onEnterFrame = function () {
var _local1 = this;
if (_local1.hitTest(hero.tester) && (_local1._currentframe == 1)) {
_local1.play();
soundFX.gotoAndPlay("przelacznik");
}
};
i++;
}
if (hero._y >= 520) {
biel._visible = true;
biel.play();
hero._x = oldX;
hero._y = oldY;
score = oldScore;
bad1._x = bad1X;
bad2._x = bad2X;
bad3._x = bad3X;
bad4._x = bad4X;
bad5._x = bad5X;
pushMe._x = pushMeX;
pushMe._y = pushMeY;
platform8.jedziemy = false;
platform8._y = platform8.miejsceY;
platform8._x = platform8.miejsceX;
bomb1.gotoAndStop(1);
bomb2.gotoAndStop(1);
bomb3.gotoAndStop(1);
bomb4.gotoAndStop(1);
i = 0;
while (i < 11) {
eval ("coin" + i)._visible = true;
i++;
}
soundFX.gotoAndPlay("restart");
grawitacja = 0;
pozioma = 0;
wall.gotoAndStop(1);
przelacznik1.gotoAndStop(1);
przelacznik2.gotoAndStop(1);
gramy = false;
}
if (hero.tester.hitTest(przejscie.tester)) {
biel._visible = true;
lvl++;
biel.play();
grawitacja = 0;
pozioma = 0;
gotoAndStop(_currentframe + 2);
soundFX.gotoAndPlay("levelChange");
gramy = false;
}
if ((hero.tester.hitTest(wall.tester) && (hero._x >= wall._x)) && (pozioma < 0)) {
hero._x = hero._x - pozioma;
}
if ((hero.tester.hitTest(wall.tester) && (hero._x < wall._x)) && (pozioma > 0)) {
hero._x = hero._x - pozioma;
}
if (hero.tester.hitTest(spring)) {
hero.gotoAndStop(2);
grawitacja = (-silaSkoku) * 2;
spring.play();
}
if ((hero.tester.hitTest(pushMe.tester) && (pozioma <= 2)) && (hero._x <= pushMe._x)) {
pushMe._x = pushMe._x + 3;
stoneSound.play();
}
if ((hero.tester.hitTest(pushMe.tester) && (pozioma <= 2)) && (hero._x >= pushMe._x)) {
pushMe._x = pushMe._x - 3;
stoneSound.play();
}
}
};
Instance of Symbol 109 MovieClip "dymek" in Frame 5
onClipEvent (enterFrame) {
this._x = _parent.hero._x;
this._y = _parent.hero._y;
}
Instance of Symbol 119 MovieClip "platform8" in Frame 7
onClipEvent (load) {
velocity2 = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 300) || (y < 100)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 119 MovieClip "platform7" in Frame 7
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 132 MovieClip "bad1" in Frame 7
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 350) || (x < 250)) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 134 MovieClip "bad3" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
if (this._x >= _parent.hero._x) {
this._xscale = -100;
} else {
this._xscale = 100;
}
}
Instance of Symbol 119 MovieClip "platform8" in Frame 9
onClipEvent (load) {
velocity2 = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 400) || (y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 119 MovieClip "platform7" in Frame 9
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 200)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 132 MovieClip "bad1" in Frame 9
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 130) || (x < 15)) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 119 MovieClip "platform7" in Frame 11
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 100)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 132 MovieClip "bad1" in Frame 11
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 200)) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.tester.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 132 MovieClip "bad2" in Frame 11
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 200)) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.tester.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 132 MovieClip "bad3" in Frame 11
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 200)) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.tester.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 119 MovieClip "platform7" in Frame 13
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 119 MovieClip "platform1" in Frame 13
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 119 MovieClip "platform2" in Frame 13
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 119 MovieClip "platform8" in Frame 13
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 119 MovieClip "platform1" in Frame 15
onClipEvent (load) {
velocity = 3;
velocity2 = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 610) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
var y;
y = _y + velocity2;
if ((y > 430) || (y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 119 MovieClip "platform1" in Frame 17
onClipEvent (load) {
velocity2 = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 350) || (y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 119 MovieClip "platform7" in Frame 19
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 150)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 132 MovieClip "bad1" in Frame 19
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 180)) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 132 MovieClip "bad2" in Frame 19
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 180)) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 132 MovieClip "bad3" in Frame 19
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 180)) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 134 MovieClip "bad4" in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
if (this._x >= _parent.hero._x) {
this._xscale = -100;
} else {
this._xscale = 100;
}
}
Instance of Symbol 134 MovieClip "bad5" in Frame 19
onClipEvent (load) {
gotoAndPlay (18);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
if (this._x >= _parent.hero._x) {
this._xscale = -100;
} else {
this._xscale = 100;
}
}
Instance of Symbol 119 MovieClip "platform8" in Frame 21
onClipEvent (load) {
velocity2 = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 350) || (y < 200)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 119 MovieClip "platform7" in Frame 23
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 550) || (x < 200)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 132 MovieClip "bad1" in Frame 23
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 530) || (x < 300)) || (this.tester.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 132 MovieClip "bad2" in Frame 23
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 530) || (x < 300)) || (this.tester.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 132 MovieClip "bad3" in Frame 23
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 530) || (x < 300)) || (this.tester.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 119 MovieClip "platform8" in Frame 25
onClipEvent (load) {
velocity2 = 3;
miejsce = _y;
jedziemy = false;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 350) || (y < 50)) {
velocity2 = velocity2 * -1;
}
if (jedziemy == true) {
_y = (_y + velocity2);
}
}
Instance of Symbol 119 MovieClip "platform8" in Frame 29
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = false;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 600) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 162 MovieClip "spring" in Frame 29
onClipEvent (enterFrame) {
_x = _parent.platform8._x;
_y = (_parent.platform8._y - 20);
}
Instance of Symbol 132 MovieClip "bad1" in Frame 33
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 440) || (x < 330)) || (this.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 119 MovieClip "platform8" in Frame 33
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = false;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 119 MovieClip "platform8" in Frame 37
onClipEvent (load) {
velocity2 = 3;
miejsceX = _x;
miejsceY = _y;
jedziemy = false;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 450) || (y < 50)) {
velocity2 = velocity2 * -1;
}
if (jedziemy == true) {
_y = (_y + velocity2);
}
}
Instance of Symbol 119 MovieClip "platform8" in Frame 39
onClipEvent (load) {
velocity2 = 3;
miejsceX = _x;
miejsceY = _y;
jedziemy = false;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 400) || (y < 50)) {
velocity2 = velocity2 * -1;
}
if (jedziemy == true) {
_y = (_y + velocity2);
}
}
Instance of Symbol 132 MovieClip "bad1" in Frame 39
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 540) || (x < 400)) || (this.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
if (velocity >= 0) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 173 MovieClip "bomb1" in Frame 41
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 300) || (x < 150)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 173 MovieClip "bomb3" in Frame 41
onClipEvent (load) {
velocity = -4;
miejsceY = _y;
miejsceX = _x;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 150)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 173 MovieClip "bomb2" in Frame 41
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 350)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 173 MovieClip "bomb2" in Frame 45
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 270) || (x < 170)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 119 MovieClip "platform8" in Frame 45
onClipEvent (load) {
velocity2 = 3;
miejsceX = _x;
miejsceY = _y;
jedziemy = false;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 450) || (y < 150)) {
velocity2 = velocity2 * -1;
}
if (jedziemy == true) {
_y = (_y + velocity2);
}
}
Frame 47
napisK = ("Your final score: " + score) + " points.";
rysunek._x = -random(600);
Symbol 25 Button
on (press) {
getURL ("http://www.pastelstories.com", "_blank");
}
Symbol 33 Button
on (press) {
startGry();
tracking();
}
Symbol 39 Button
on (press) {
getURL ("http://www.gamegarage.co.uk", "_blank");
}
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 10
stop();
Symbol 48 MovieClip Frame 20
stop();
Symbol 48 MovieClip Frame 31
stop();
Symbol 48 MovieClip Frame 41
stop();
Symbol 48 MovieClip Frame 49
stop();
Symbol 48 MovieClip Frame 58
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 60 Button
on (press) {
_parent.opis = "";
_parent.hand.gotoAndStop(1);
stopAllSounds();
nextFrame();
}
on (rollOver) {
_parent.opis = "ambient on";
_parent.hand.gotoAndStop(2);
}
on (rollOut) {
_parent.opis = "";
_parent.hand.gotoAndStop(1);
}
Symbol 62 Button
on (press) {
_parent.opis = "";
_parent.hand.gotoAndStop(1);
play();
}
on (rollOver) {
_parent.opis = "ambient off";
_parent.hand.gotoAndStop(2);
}
on (rollOut) {
_parent.opis = "";
_parent.hand.gotoAndStop(1);
}
Symbol 63 MovieClip Frame 3
stop();
Symbol 65 Button
on (press) {
gotoAndStop ("win");
}
Symbol 71 MovieClip Frame 1
_parent.newLevel();
Symbol 85 MovieClip Frame 1
onEnterFrame = function () {
if (Math.abs(_parent._parent.pozioma) >= 1) {
play();
} else {
gotoAndStop (1);
}
};
Symbol 104 MovieClip Frame 25
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 15
_parent.gramy = true;
_visible = false;
gotoAndStop (1);
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
_parent.wall.play();
Symbol 140 MovieClip Frame 10
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 17
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
_parent.platform8.jedziemy = true;
Symbol 151 MovieClip Frame 10
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
_parent.soundFX.gotoAndPlay("spring");
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
_parent.soundFX.gotoAndPlay("bang");
Symbol 173 MovieClip Frame 31
stop();
if (_parent.hero._currentframe == 4) {
_parent.hero._y = 550;
_parent.hero.gotoAndStop(1);
_parent.gramy = true;
}
Symbol 175 MovieClip Frame 1
fall = true;
onEnterFrame = function () {
if (((this._y <= 550) && (fall == true)) && (_parent.gramy == true)) {
_y = (_y + 7);
}
};
Symbol 196 Button
on (press) {
reset();
}
Symbol 198 Button
on (press) {
scoring();
gotoAndStop ("menu");
}