Frame 1
if (_framesloaded >= _totalframes) {
gotoAndStop (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
duplicateMovieClip (_root.rahmen, rahmen2, 100);
hoehle = false;
musikan = false;
Frame 4
stop();
musikan = true;
hoehle = true;
score = 0;
pause = true;
gameover = false;
letztery = 190;
letzterx = -24;
letztedif = 0;
blockgroesse = 10;
depthCounter = 1;
Instance of Symbol 22 MovieClip "streifen" in Frame 4
onClipEvent (load) {
function reset() {
differenz1 = random(15) + 1;
zufall = random(2);
if (zufall == 0) {
if (_root.letztery <= 220) {
richtung = 1;
} else {
richtung = -1;
}
} else if (zufall == 1) {
if (_root.letztery >= 160) {
richtung = -1;
} else {
richtung = 1;
}
}
differenz2 = differenz1 * richtung;
if (differenz2 > 0) {
rundung1.gotoAndStop(1);
rundung2.gotoAndStop(1);
setProperty(rundung1, _height , differenz2);
setProperty(rundung2, _height , differenz2);
setProperty(streifen_u, _height , 100);
setProperty(streifen_o, _height , 100 - differenz2);
} else {
rundung1.gotoAndStop(2);
rundung2.gotoAndStop(2);
setProperty(rundung1, _height , -differenz2);
setProperty(rundung2, _height , -differenz2);
setProperty(streifen_u, _height , 100 + differenz2);
setProperty(streifen_o, _height , 100);
}
hoehe = _root.letztery + differenz2;
_y = hoehe;
_root.letztery = hoehe;
}
if (_name == "streifen") {
setProperty(this, _visible , false);
}
_x = (_root.letzterx + 16);
dublizieren = true;
if ((dublizieren == true) && (_root.depthCounter <= 32)) {
_root.streifen.duplicateMovieClip("streifen" + _root.depthCounter, _root.depthCounter);
_root.depthCounter++;
dublizieren = false;
_root.letzterx = _x;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = (_x - 16);
if (_x == -8) {
_x = 504;
reset();
}
}
if (_root.hoehle == false) {
this.removeMovieClip();
}
}
Instance of Symbol 34 MovieClip "heli" in Frame 4
onClipEvent (load) {
stop();
steigen = false;
zerstoert = false;
}
onClipEvent (enterFrame) {
this.onMouseDown = function () {
steigen = true;
if (_root.gameover == false) {
_root.pause = false;
}
};
this.onMouseUp = function () {
steigen = false;
};
if (_root.pause == false) {
if ((steigen == true) && (auftrieb < 12)) {
auftrieb = auftrieb + 3;
}
if (auftrieb > -8) {
auftrieb--;
}
_y = (_y + (5 - auftrieb));
}
i = 1;
while (i <= 32) {
if (zerstoert == false) {
if (((_root["streifen" + i].streifen_o.hitTest(hitbereich) || (_root["streifen" + i].streifen_u.hitTest(hitbereich))) || (hitbereich.hitTest(_root.block1))) || (hitbereich.hitTest(_root.block2))) {
gotoAndPlay (2);
_root.pause = true;
_root.gameover = true;
zerstoert = true;
_root.gotoAndStop("gameover");
}
}
i++;
}
}
Instance of Symbol 47 MovieClip "block1" in Frame 4
onClipEvent (load) {
function reset() {
_y = ((random(32) + 22) * 5);
if (_root.blockgroesse < 120) {
groesser = _root.blockgroesse + 5;
} else {
groesser = _root.blockgroesse;
}
setProperty(this, _height , groesser);
_root.blockgroesse = groesser;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = (_x - 16);
if (_x == -96) {
_x = 592;
reset();
}
}
}
Instance of Symbol 47 MovieClip "block2" in Frame 4
onClipEvent (load) {
function reset() {
_y = ((random(32) + 22) * 5);
groesser = _root.blockgroesse;
setProperty(this, _height , groesser);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = (_x - 16);
if (_x == -96) {
_x = 592;
reset();
}
}
}
Instance of Symbol 50 MovieClip "abgas" in Frame 4
onClipEvent (load) {
_rotation = (random(90) * 4);
depthCounter = 110;
counter = 0;
if (_name == "abgas") {
_x = -10;
} else {
_x = 140;
}
_y = (_root.heli._y + 1);
}
onClipEvent (enterFrame) {
counter++;
if ((counter == 2) && (_root.gameover == false)) {
this.duplicateMovieClip("rauch" + depthCounter, depthCounter);
depthCounter++;
counter = 0;
}
if ((_name != "abgas") && (_root.pause == false)) {
_x = (_x - 16);
} else {
_x = (_x - 2);
}
}
Instance of Symbol 52 MovieClip in Frame 4
onClipEvent (load) {
scorebetrag = 0;
scoreanzeige = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_root.score++;
}
scorebetrag = _root.score;
if (length(scorebetrag) < 2) {
scoreanzeige = "0000000" + scorebetrag;
} else if (length(scorebetrag) < 3) {
scoreanzeige = "000000" + scorebetrag;
} else if (length(scorebetrag) < 4) {
scoreanzeige = "00000" + scorebetrag;
} else if (length(scorebetrag) < 5) {
scoreanzeige = "0000" + scorebetrag;
} else if (length(scorebetrag) < 6) {
scoreanzeige = "000" + scorebetrag;
} else if (length(scorebetrag) < 7) {
scoreanzeige = "00" + scorebetrag;
} else if (length(scorebetrag) < 8) {
scoreanzeige = "0" + scorebetrag;
} else {
scoreanzeige = scorebetrag;
}
}
Instance of Symbol 57 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
gotoAndStop (1);
} else if (_root.pause == true) {
gotoAndStop (2);
}
}
Instance of Symbol 58 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.musikan == true) {
gotoAndStop (1);
} else if (_root.musikan == false) {
gotoAndStop (2);
}
}
Frame 5
vpaver = "100B2";
action = "gameover";
hashoffset = 5;
subhash1 = gamehash.substr(0, hashoffset);
subhash2 = gamehash.substr(hashoffset);
newhash = subhash2.concat(subhash1);
musikan = false;
stop();
Symbol 14 Button
on (release) {
nextFrame();
}
Instance of Symbol 26 MovieClip "rundung1" in Symbol 22 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 35 MovieClip Frame 10
gotoAndPlay (1);
Symbol 34 MovieClip Frame 21
stop();
Symbol 50 MovieClip Frame 20
this.removeMovieClip();
stop();
Symbol 51 Button
on (release) {
nextFrame();
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 59 Button
on (release) {
if (score >= 1) {
changes = new LoadVars();
changes.score = score;
changes.game_name = "capeglide";
changes.send("newscore.php", "_self", "POST");
} else {
_root.gotoand.stop(3);
}
}
Symbol 60 Button
on (release) {
_root.gotoandstop(3);
}