Frame 1
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
username = "YETISPORTS 5";
top = 0;
Instance of Symbol 21 MovieClip "ysound" in Frame 1
onClipEvent (load) {
_visible = false;
schlag = new Sound(s1);
schlag.attachSound("schlag");
pfiff = new Sound(s2);
pfiff.attachSound("pfiff");
geier = new Sound(s3);
geier.attachSound("geier");
pock = new Sound(s4);
pock.attachSound("pock");
golf = new Sound(s5);
golf.attachSound("golf");
plach = new Sound(s6);
plach.attachSound("plach");
snake = new Sound(s7);
snake.attachSound("snake");
frr = new Sound(s8);
frr.attachSound("frr");
ready = new Sound(s9);
ready.attachSound("ready");
gir1 = new Sound(s10);
gir1.attachSound("gir1");
gir2 = new Sound(s11);
gir2.attachSound("gir2");
gameover = new Sound(s12);
gameover.attachSound("gameover");
juhu = new Sound(s12);
juhu.attachSound("juhu");
weee = new Sound(s12);
weee.attachSound("weee");
yeah = new Sound(s13);
yeah.attachSound("yeah");
intro = new Sound(s14);
intro.attachSound("intro");
intro.setVolume(25);
intro.start();
}
Frame 3
function playsnd(soundd, volu) {
if (_root.snd) {
_root.ysound[soundd].setVolume(volu);
_root.ysound[soundd].start();
}
}
snd = true;
Frame 5
Frame 7
gbl = getBytesLoaded();
gbt = getBytesTotal();
percent = int((gbl / gbt) * 100);
spercent = 100;
Instance of Symbol 33 MovieClip in Frame 7
onClipEvent (enterFrame) {
_xscale = _parent.percent;
}
Instance of Symbol 33 MovieClip in Frame 7
onClipEvent (enterFrame) {
_xscale = _parent.spercent;
}
Frame 8
if (percent < 100) {
gotoAndPlay(_currentframe - 1);
}
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
gotoAndPlay (28);
Instance of Symbol 66 MovieClip in Frame 28
onClipEvent (load) {
_visible = false;
}
onClipEvent (keyUp) {
if (Key.getCode() == 66) {
if (this._visible == false) {
if (_root.snd) {
_root.wassnd = true;
_root.snd = false;
_root.boss = true;
stopAllSounds();
}
this._visible = true;
} else {
if (_root.wassnd) {
_root.wassnd = false;
_root.snd = true;
_root.boss = false;
}
this._visible = false;
}
} else if (Key.getCode() == 83) {
if (_root.snd) {
_root.snd = false;
stopAllSounds();
} else {
_root.snd = true;
}
} else if (Key.getCode() == 82) {
if ((_root.world.pingu.aus == false) and _root.world.pingu.aktiv) {
_root.world.newgame();
}
}
}
Frame 30
function fadeOutSound() {
if (_root.ysound.intro.getVolume() > 0) {
_root.ysound.intro.setVolume(_root.ysound.intro.getVolume() - 2);
} else {
clearInterval(introsoundcheck);
}
}
introsoundcheck = setInterval(fadeOutSound, 100);
stop();
Instance of Symbol 20 MovieClip "s1" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s2" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s3" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s4" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s5" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s6" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s7" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s8" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s9" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s10" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s11" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s12" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s13" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 20 MovieClip "s14" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 36 Button
on (release) {
if (username.length > 1) {
username = username.toUpperCase();
if (username.length > 14) {
username = username.substr(0, 14);
}
play();
}
}
Symbol 41 Button
on (release) {
play();
}
Symbol 45 Button
on (release) {
play();
}
Symbol 49 Button
on (release) {
getURL ("http://www.yetisports.org", "_blank");
}
Symbol 50 Button
on (release) {
getURL ("http://www.sonyericsson.com/K700", "_blank");
}
Symbol 89 MovieClip Frame 10
function updateMap() {
_root.world.map.p._y = _parent.pingu._y / 7;
i = 0;
while (i < _parent.snake.xposes) {
_root.world.map["s" + i]._x = (hx + (_parent.snake.xpos[i] / 7)) - (_parent.offset / 7);
i++;
}
i = 0;
while (i < _parent.giraffe.xposes) {
_root.world.map["g" + i]._x = (hx + (_parent.giraffe.xpos[i] / 7)) - (_parent.offset / 7);
i++;
}
i = 0;
while (i < _parent.elefant.xposes) {
_root.world.map["e" + i]._x = (hx + (_parent.elefant.xpos[i] / 7)) - (_parent.offset / 7);
i++;
}
i = 0;
while (i < _parent.tree.xposes) {
_root.world.map["t" + i]._x = (hx + (_parent.tree.xpos[i] / 7)) - (_parent.offset / 7);
i++;
}
}
mapOn = true;
hx = 350;
p._x = hx + (_parent.pingu._x / 7);
i = 0;
while (i < _parent.snake.xposes) {
this.s.duplicateMovieClip("s" + i, 1000 + i);
this["s" + i]._x = hx + (_parent.snake.xpos[i] / 7);
i++;
}
i = 0;
while (i < _parent.giraffe.xposes) {
this.g.duplicateMovieClip("g" + i, 2000 + i);
this["g" + i]._x = hx + (_parent.giraffe.xpos[i] / 7);
i++;
}
i = 0;
while (i < _parent.elefant.xposes) {
this.e.duplicateMovieClip("e" + i, 3000 + i);
this["e" + i]._x = hx + (_parent.elefant.xpos[i] / 7);
i++;
}
i = 0;
while (i < _parent.tree.xposes) {
this.t.duplicateMovieClip("t" + i, 4000 + i);
this["t" + i]._x = hx + (_parent.tree.xpos[i] / 7);
i++;
}
mapInterval = setInterval(this.updateMap, 50);
stop();
Instance of Symbol 75 MovieClip "e" in Symbol 89 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_x < -20) or (_x > 570)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 78 MovieClip "g" in Symbol 89 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_x < -20) or (_x > 570)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 81 MovieClip "t" in Symbol 89 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_x < -20) or (_x > 570)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 84 MovieClip "s" in Symbol 89 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_x < -20) or (_x > 570)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 10
onClipEvent (load) {
this.swapDepths(22000);
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Instance of Symbol 102 MovieClip "hitter1" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 108 MovieClip "hitter3" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 108 MovieClip "hitter2" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 108 MovieClip "hitter4" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 169 MovieClip Frame 2
with (_parent.pingu) {
yspeed = 0;
xspeed = Math.abs(xspeed) * -1;
if (xspeed > -15) {
xspeed = -15;
}
if (xspeed < -30) {
xspeed = -30;
}
_rotation = 0;
}
stopAllSounds();
_root.playsnd("gir1", 40);
Symbol 169 MovieClip Frame 32
_parent.offset = _parent.offset + ((_x - _parent.pingu._x) / 4);
Symbol 169 MovieClip Frame 33
_parent.offset = _parent.offset + ((_x - _parent.pingu._x) / 4);
Symbol 169 MovieClip Frame 34
_parent.offset = _parent.offset + ((_x - _parent.pingu._x) / 4);
_root.playsnd("gir2", 40);
Symbol 169 MovieClip Frame 35
_parent.offset = _parent.offset + ((_x - _parent.pingu._x) / 4);
_parent.pingu.aktiv = true;
_parent.pingu.yspeed = 0;
Symbol 169 MovieClip Frame 36
_parent.pingu.x = _parent.pingu.x - 200;
_parent.pingu._visible = true;
_parent.pingu.act = "roll";
Symbol 202 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 11
rollflag = true;
Symbol 265 MovieClip Frame 22
if (act == "roll") {
gotoAndPlay ("roll");
}
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 37
_root.playsnd("pfiff", 25);
Symbol 432 MovieClip Frame 45
this._parent.flamingo.act = "go";
Symbol 432 MovieClip Frame 57
stop();
Symbol 432 MovieClip Frame 91
this._parent.engine.initOn();
_root.playsnd("ready", 20);
stop();
Symbol 432 MovieClip Frame 107
_root.playsnd("schlag", (_parent.engine.ppow / 3) + 15);
Symbol 432 MovieClip Frame 108
this._parent.pingu.y = this._parent.pingu.boden - 1;
_parent.pingu.xspeed = _parent.engine.xpow;
_parent.pingu.yspeed = _parent.engine.ypow;
_parent.pingu.aktiv = true;
_root.playsnd("golf", (_parent.engine.ppow / 3) + 15);
Symbol 432 MovieClip Frame 111
_root.playsnd("weee", 50);
Symbol 432 MovieClip Frame 137
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 25
gotoAndPlay ("walk");
Symbol 493 MovieClip Frame 32
this._parent.yeti.play();
Symbol 493 MovieClip Frame 33
this._x = this.homex;
Instance of Symbol 495 MovieClip "hitter1" in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 497 MovieClip "hitter2" in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 523 MovieClip Frame 1
if (_parent.pingu._x > _x) {
stop();
}
Symbol 523 MovieClip Frame 32
if (_parent.pingu._x < _x) {
stop();
}
Symbol 534 Button
on (press) {
_root.world.newgame();
this._visible = false;
_y = -100;
}
Symbol 539 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 16
if (act == "up") {
gotoAndPlay (5);
}
Symbol 602 MovieClip Frame 1
stop();
Symbol 613 MovieClip Frame 1
function newgame() {
dist = 0;
schuss = 0;
offset = 0;
anzeige.schlag.gotoAndStop(1);
cs = "";
franzfin.init();
tree.currentxpos = 0;
tree.homex = tree.xpos[0];
snake.currentxpos = 0;
snake.homex = snake.xpos[0];
giraffe.currentxpos = 0;
giraffe.homex = giraffe.xpos[0];
giraffe.gotoAndStop(1);
elefant.currentxpos = 0;
elefant.homex = elefant.xpos[0];
pingu.init();
yeti.init();
yeti.gotoAndPlay("yetistart");
yeti._visible = true;
grasv1.init();
engine.initOff();
franz.init();
flamingo._x = flamingo.homex;
flamingo.act = "wait";
yeti.init();
yeti.gotoAndPlay("yetistart");
yeti._visible = true;
}
function ede(aaa) {
ccc = "";
sss = "";
i = 0;
while (i < aaa.length) {
ccc = ccc + aaa.charCodeAt(i);
i++;
}
i = 0;
while (i < ccc.length) {
temp = Number("8" + ccc.substr(i, 1));
sss = sss + chr(temp);
i++;
}
return(sss);
}
_quality = "BEST";
Instance of Symbol 93 MovieClip "kili" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
homex = 100;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 100 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
homex = 0;
fr = 0;
}
onClipEvent (enterFrame) {
_x = (homex - int(_parent.offset / 1.5));
if (_x > 600) {
homex = homex - 650;
fr++;
if (fr > 2) {
fr = 0;
}
this.gotoAndStop(fr);
} else if (_x < -50) {
homex = homex + 650;
fr--;
if (fr < 0) {
fr = 2;
}
this.gotoAndStop(fr);
}
}
Instance of Symbol 169 MovieClip "giraffe" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
aktiv = true;
xpos = new Array();
xpos[0] = -100;
xpos[1] = -5500;
xpos[2] = -6750;
xpos[3] = -11000;
xpos[4] = -13000;
xpos[5] = -15000;
xpos[6] = -20100;
xpos[7] = -25500;
xpos[8] = -26750;
xpos[9] = -31000;
xpos[10] = -33000;
xpos[11] = -35500;
xpos[12] = -36750;
xpos[13] = -41000;
xpos[14] = -45000;
xpos[15] = -50100;
xpos[16] = -55500;
xpos[17] = -56750;
xpos[18] = -61000;
xpos[19] = -63000;
xposes = 20;
currentxpos = 0;
homex = xpos[0];
}
onClipEvent (enterFrame) {
ox = _parent.pingu.oldx;
oy = _parent.pingu.oldy;
if ((_x < -230) or (_x > 550)) {
_visible = false;
_parent.beine._visible = false;
} else {
_visible = true;
_parent.beine._visible = true;
}
if (aktiv) {
_x = (homex - _parent.offset);
_parent.beine._x = _x;
if (_x > 550) {
if (currentxpos < (xposes - 1)) {
currentxpos++;
homex = xpos[currentxpos];
}
} else if (_x < -230) {
if (currentxpos > 0) {
currentxpos--;
homex = xpos[currentxpos];
}
}
if ((_parent.pingu._x < (_x + _width)) and (_parent.pingu._x > _x)) {
if ((_parent.franzfin.act == "wait") and (_parent.franz.act == "wait")) {
if (hitter1.hitTest(_parent.pingu._x, _parent.pingu._y, false)) {
with (_parent.pingu) {
aktiv = false;
_visible = false;
_rotation = 0;
_xscale = 100;
y = 30;
_y = 30;
yspeed = 0;
}
this.gotoAndPlay(2);
}
}
}
}
}
Instance of Symbol 202 MovieClip "snake" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
aktiv = true;
xpos = new Array();
xpos[0] = -1800;
xpos[1] = -2800;
xpos[2] = -4100;
xpos[3] = -6800;
xpos[4] = -8000;
xpos[5] = -9500;
xpos[6] = -11850;
xpos[7] = -14000;
xpos[8] = -16000;
xpos[9] = -18500;
xpos[10] = -22300;
xpos[11] = -24000;
xpos[12] = -26800;
xpos[13] = -28000;
xpos[14] = -29500;
xpos[15] = -31000;
xpos[16] = -34000;
xpos[17] = -36000;
xpos[18] = -41800;
xpos[19] = -42800;
xpos[20] = -44100;
xpos[21] = -46800;
xpos[22] = -48000;
xpos[23] = -49500;
xpos[24] = -51850;
xpos[25] = -54000;
xpos[26] = -56000;
xpos[27] = -58500;
xpos[28] = -62300;
xpos[29] = -64000;
xpos[30] = -66800;
xpos[31] = -68000;
xpos[32] = -69500;
xposes = 33;
currentxpos = 0;
homex = xpos[0];
}
onClipEvent (enterFrame) {
if ((_x < -150) or (_x > 700)) {
_visible = false;
} else {
_visible = true;
}
if (aktiv) {
_x = (homex - _parent.offset);
if (_x > 700) {
if (currentxpos < (xposes - 1)) {
currentxpos++;
homex = xpos[currentxpos];
}
} else if (_x < -150) {
if (currentxpos > 0) {
currentxpos--;
homex = xpos[currentxpos];
}
}
if (Math.abs(_parent.pingu._x - _x) < (_width / 2)) {
if ((_parent.pingu._y > 280) and _parent.pingu.aktiv) {
this.gotoAndPlay(2);
_root.playsnd("snake", 25);
_parent.pingu.yspeed = ((Math.abs(_parent.pingu.yspeed) + (Math.abs(_parent.pingu.xspeed) / 20)) + 2.5) * -1;
if (_parent.pingu.yspeed < -10) {
_root.playsnd("plach", 20);
}
_parent.pingu.xspeed = _parent.pingu.xspeed + ((_parent.pingu._x - _x) / 100);
}
}
}
}
Instance of Symbol 265 MovieClip "sch" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
p = _parent.pingu;
_y = p.boden;
aktiv = true;
}
onClipEvent (enterFrame) {
if (aktiv) {
_x = p._x;
_y = (p.boden + 5);
_xscale = (p._xscale - (Math.abs(p._rotation) / 3));
this.gotoAndStop(p._currentframe);
_alpha = (50 - ((_y - p._y) / 4));
}
}
Instance of Symbol 432 MovieClip "yeti" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
function init() {
newoffset = _parent.offset;
_x = _parent.pingu._x;
gotoAndPlay ("yetistart");
}
homex = _parent.pingu._x;
this._x = homex;
this.init();
}
onClipEvent (enterFrame) {
_x = ((homex - _parent.offset) + newoffset);
if ((_x > 600) or (_x < -50)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 493 MovieClip "flamingo" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
homex = _x;
act = "wait";
}
onClipEvent (enterFrame) {
if ((act == "go") and (this._currentframe == 1)) {
play();
} else if (act == "walkout") {
gotoAndPlay ("walkout");
act = "wait";
}
if (act == "go") {
this._x = this._x - 2.5;
if (this._x <= _parent.pingu._x) {
act = "walkout";
}
}
}
Instance of Symbol 500 MovieClip "tree" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
function checkHit1() {
if (Math.abs(_parent.pingu._x - _x) < (Math.abs(_parent.pingu.xspeed) + 10)) {
if (_parent.pingu._y > (_y - hitter1._height)) {
_parent.pingu.x = _parent.pingu.oldx;
_parent.pingu._y = _parent.pingu.oldy;
_parent.pingu.xspeed = _parent.pingu.xspeed * -0.5;
_parent.pingu.act = "roll";
_root.playsnd("pock", Math.abs(_parent.pingu.xspeed) * 3);
}
}
}
function checkHit2() {
hpointy = _y + this.hitter2._y;
hpointx = _x + this.hitter2._x;
if ((_parent.pingu._x < (hpointx + (this.hitter2._width / 2))) and (_parent.pingu._x > (hpointx - (this.hitter2._width / 2)))) {
if ((_parent.pingu._y < (hpointy + (this.hitter2._height / 2))) and (_parent.pingu._y > (hpointy - (this.hitter2._height / 2)))) {
_parent.pingu.x = _parent.pingu.oldx;
_parent.pingu._y = _parent.pingu.oldy;
if (_parent.pingu.yspeed >= 0) {
_parent.pingu.yspeed = _parent.pingu.yspeed * -0.4;
} else {
_parent.pingu.yspeed = _parent.pingu.yspeed - (Math.random() * 0.5);
}
if (_parent.pingu.xspeed > -2) {
_parent.pingu.xspeed = -2;
}
if (!treesnd) {
_root.playsnd("frr", 20);
treesnd = true;
_root.ysound.frr.onSoundComplete = function () {
_root.world.tree.treesnd = false;
};
}
}
} else {
_root.ysound.frr.stop();
treesnd = false;
}
}
xpos = new Array();
xpos[0] = -3000;
xpos[1] = -10000;
xpos[2] = -12500;
xpos[3] = -43000;
xpos[4] = -52500;
xpos[5] = -65500;
xposes = 6;
currentxpos = 0;
skip1frame = false;
homex = xpos[currentxpos];
aktiv = true;
if (this.hitTest(_parent.pingu) and (!skip1frame)) {
if (this.hitter1.hitTest(this._parent.pingu._x, this._parent.pingu._y, false)) {
_parent.pingu.x = _parent.pingu.oldx;
_parent.pingu._y = _parent.pingu.oldy;
_parent.pingu.xspeed = _parent.pingu.xspeed * -0.5;
_parent.pingu.act = "roll";
skip1frame = true;
}
} else if (skip1frame) {
skip1frame = false;
}
}
onClipEvent (enterFrame) {
if ((_x < -150) or (_x > 700)) {
_visible = false;
_parent.ftree._visible = false;
} else {
_visible = true;
_parent.ftree._visible = true;
}
if (aktiv) {
_x = (homex - _parent.offset);
_parent.ftree._x = _x;
if (_x > 700) {
if (currentxpos < (xposes - 1)) {
currentxpos++;
homex = xpos[currentxpos];
}
} else if (_x < -150) {
if (currentxpos > 0) {
currentxpos--;
homex = xpos[currentxpos];
}
}
checkHit2();
checkHit1();
}
}
Instance of Symbol 265 MovieClip "pingu" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
function init() {
_visible = true;
x = homex;
_x = homex;
_xscale = 100;
aus = false;
xspeed = 0;
yspeed = 0;
act = "noroll";
_y = boden;
y = boden;
aktiv = false;
_rotation = 0;
_parent.offset = 0;
oldoffset = 0;
wasair = false;
}
function detectStop() {
if ((Math.abs(xspeed) < 1) and (Math.abs(yspeed) < 1)) {
if (Math.abs(_x - _parent.tree._x) < 50) {
if ((_parent.tree._x - _x) <= 0) {
xspeed = 3;
x = x + 5;
} else {
xspeed = -3;
x = x - 5;
}
} else if (((_parent.giraffe._x - _x) > -170) and ((_parent.giraffe._x - _x) < 50)) {
xspeed = xspeed * 5;
} else if (_parent.elefant.hitTest(this)) {
xspeed = (this._x - _parent.elefant._x) / 15;
} else {
aktiv = false;
_rotation = 0;
gotoAndStop (1);
if (_parent.schuss < 5) {
this._parent.yeti.init();
this._parent.yeti.gotoAndPlay("yetistart");
} else {
aus = true;
_root.playsnd("gameover", 25);
if (_parent.dist < 0) {
_parent.dist = 0;
this._parent.showfin.points = 0;
this._parent.anzeige.weite = 0;
}
if (_parent.dist > _root.top) {
_root.top = _parent.dist;
}
dblp = _parent.dist * 2;
_root.world.cs = _root.world.cs + (("," + dblp.toString()) + ",");
this._parent.franzfin.aktiv = true;
this._parent.franzfin.act = "down";
this._parent.franzfin._visible = true;
this._parent.showfin._visible = true;
}
}
}
}
homex = _x;
boden = 300;
x = _x;
_y = boden;
y = boden;
aus = false;
aktiv = false;
geier = false;
xspeed = 0;
yspeed = 0;
xboden = 300;
grav = 0.25;
rollreibung = 0.98;
rutschreibung = 0.95;
act = "noroll";
reibung = rollreibung;
}
onClipEvent (enterFrame) {
if (aktiv) {
x = x + xspeed;
if (!geier) {
yspeed = yspeed + grav;
y = y + yspeed;
if (y < -5) {
if ((oldspeedy < 0) and (yspeed > 0)) {
if (xspeed < -8) {
if (random(2) == 1) {
_root.playsnd("yeah", 30);
} else {
_root.playsnd("juhu", 30);
}
}
}
}
if (_parent.giraffe.hitTest(this)) {
if (_parent.giraffe.hitter3.hitTest(_x, _y, false)) {
_root.playsnd("pock", Math.abs(xspeed) + (Math.abs(yspeed) * 2));
hx = _parent.giraffe._x + _parent.giraffe.hitter3._x;
hy = _parent.giraffe._y + _parent.giraffe.hitter3._y;
hw = _parent.giraffe.hitter3._width / 2;
hh = _parent.giraffe.hitter3._height / 2;
this.x = this.soldx;
this.y = this.soldy;
_parent.offset = oldoffset;
if ((soldy > (hy + hh)) or (soldy < (hy - hh))) {
yspeed = yspeed * -0.3;
xspeed = xspeed - 1;
} else {
xspeed = xspeed * -0.1;
}
} else if (_parent.giraffe.hitter2.hitTest(_x, _y, true)) {
_root.playsnd("pock", Math.abs(xspeed) + (Math.abs(yspeed) * 2));
this.x = this.soldx - 30;
this.y = this.soldy - 10;
xspeed = xspeed * -0.5;
if (xspeed > -3) {
xspeed = -3;
}
yspeed = -2;
_parent.offset = oldoffset;
act = "roll";
} else if (_parent.giraffe.hitter4.hitTest(_x, _y, true)) {
_root.playsnd("pock", Math.abs(xspeed) + (Math.abs(yspeed) * 2));
this.x = this.soldx + 30;
this.y = this.soldy + 10;
xspeed = xspeed * -0.5;
if (xspeed < 2) {
xspeed = 2;
}
yspeed = yspeed / 2;
_parent.offset = oldoffset;
act = "roll";
} else {
(soldx = _x);
(soldy = _y);
}
}
if (y >= boden) {
y = boden;
yspeed = yspeed * -0.5;
if (Math.abs(yspeed) > 1) {
_root.playsnd("pock", Math.abs(yspeed) * 4);
}
} else if (y < -50) {
yspeed = 0;
xspeed = xspeed / 1.5;
y = -50;
_root.playsnd("geier", 30);
_parent.franz.act = "down";
_parent.franz._visible = true;
_parent.franz.aktiv = true;
geier = true;
} else if (y > (boden - 5)) {
_rotation = 0;
}
if (_xscale == 100) {
_rotation = ((Math.atan2(oldy - y, oldx - x) * 180) / Math.PI);
} else {
_rotation = (((Math.atan2(oldy - y, oldx - x) * 180) / Math.PI) - 180);
}
if (y != boden) {
if ((y > 220) and (Math.abs(yspeed) > 4)) {
if (act == "noroll") {
act = "roll";
gotoAndPlay ("rollin");
}
} else if (act == "roll") {
act = "noroll";
if (rollflag) {
gotoAndPlay ("rollout");
rollflag = false;
}
}
} else {
detectStop();
if (wasair) {
wasair = false;
}
xspeed = xspeed * reibung;
if (Math.abs(xspeed) < 5) {
if (act == "roll") {
act = "noroll";
reibung = rutschreibung;
if (rollflag) {
gotoAndPlay ("rollout");
rollflag = false;
}
}
} else if (act == "noroll") {
act = "roll";
reibung = rollreibung;
gotoAndPlay ("rollin");
}
}
oldoffset = _parent.offset;
_parent.offset = _parent.offset + xspeed;
_y = y;
if (y < boden) {
wasair = true;
} else {
wasair = false;
}
if (xspeed > 0) {
_xscale = -100;
}
if (xspeed < 0) {
_xscale = 100;
}
} else {
oldoffset = _parent.offset;
_parent.offset = _parent.offset + xspeed;
}
}
oldspeedx = xspeed;
oldspeedy = yspeed;
oldx = x;
oldy = _y;
if (!aus) {
if (((_parent.offset + _x) / -10) >= 0) {
_parent.dist = Math.round((_parent.offset + _x) / -10);
_parent.anzeige.weite = _parent.dist;
_parent.showfin.points = _parent.dist;
} else {
_parent.anzeige.weite = "TEE";
_parent.showfin.points = 0;
_parent.dist = 0;
}
}
}
Instance of Symbol 523 MovieClip "elefant" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
aktiv = true;
xpos = new Array();
xpos[0] = 1000;
xpos[1] = -2200;
xpos[2] = -19000;
xpos[3] = -22850;
xpos[4] = -28300;
xpos[5] = -42200;
xpos[6] = -59000;
xpos[7] = -62850;
xpos[8] = -68300;
xposes = 9;
currentxpos = 0;
homex = xpos[0];
}
onClipEvent (enterFrame) {
if ((_x < -100) or (_x > 650)) {
_visible = false;
} else {
_visible = true;
}
if (aktiv) {
if (_visible) {
if (random(100) == 1) {
this.play();
}
}
_x = (homex - _parent.offset);
if (_x > 700) {
if (currentxpos < (xposes - 1)) {
currentxpos++;
homex = xpos[currentxpos];
}
} else if (_x < -150) {
if (currentxpos > 0) {
currentxpos--;
homex = xpos[currentxpos];
}
}
if (Math.abs(_parent.pingu._x - _x) < (_width / 4)) {
if (_parent.pingu._y > (this._y - 150)) {
play();
if (_parent.pingu._y < (this._y - 120)) {
_parent.pingu.yspeed = (Math.abs(_parent.pingu.yspeed) + (Math.abs(_parent.pingu.xspeed) / 3)) * -0.6;
_parent.pingu.y = this._y - 151;
if (_parent.pingu._x > _x) {
_parent.pingu.xspeed = _parent.pingu.xspeed + (5 + (Math.abs(_parent.pingu.xspeed) / 3));
if (_parent.pingu.xspeed > 20) {
_parent.pingu.xspeed = 20;
}
} else {
_parent.pingu.xspeed = _parent.pingu.xspeed - (5 + (Math.abs(_parent.pingu.xspeed) / 3));
if (_parent.pingu.xspeed < -20) {
_parent.pingu.xspeed = -20;
}
}
} else {
_parent.pingu.xspeed = _parent.pingu.xspeed * -0.3;
if (_parent.pingu._x > _x) {
_parent.offset = _parent.offset + (((this._width / 4) - Math.abs(_parent.pingu._x - _x)) + 1);
} else {
_parent.offset = _parent.offset - (((this._width / 4) - Math.abs(_parent.pingu._x - _x)) + 1);
}
}
_root.playsnd("pock", Math.abs(_parent.pingu.xspeed + _parent.pingu.yspeed) * 2);
_parent.pingu.act = "roll";
}
}
}
}
Instance of Symbol 537 MovieClip "showfin" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 582 MovieClip "franz" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
function init() {
_visible = false;
aktiv = false;
act = "wait";
targetydown = 100;
_y = homey;
_parent.pingu.geier = false;
}
_x = _parent.pingu._x;
homey = _y;
init();
}
onClipEvent (enterFrame) {
if (aktiv) {
play();
if (act == "down") {
_y = (_y + ((targetydown - _y) / 30));
_parent.pingu.xspeed = -5;
_parent.pingu.y = (_parent.pingu._y = _y + hitter._y);
_parent.pingu._rotation = 5;
_parent.pingu.yspeed = 0;
_parent.pingu.xscale = 100;
if (((targetydown - _y) < 5) and (this.hitTest(_parent.giraffe) == false)) {
_parent.pingu.geier = false;
act = "up";
}
} else if (act == "up") {
_y = (_y - 2);
if (_y <= homey) {
_y = homey;
act = "wait";
_visible = false;
aktiv = false;
}
}
}
}
Instance of Symbol 582 MovieClip "franzfin" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
function init() {
_visible = false;
aktiv = false;
act = "wait";
targetydown = 200;
_y = homey;
}
homey = _y;
init();
}
onClipEvent (enterFrame) {
if (aktiv) {
play();
if (act == "down") {
_y = (_y + ((targetydown - _y) / 30));
_parent.showfin._x = _x;
_parent.showfin._y = _y + this.hitter._y;
}
}
}
Instance of Symbol 585 MovieClip "grasv1" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
function init() {
homex = 0;
_parent.grasv2.homex = 550;
_x = homex;
_parent.grasv2._x = _parent.grasv2.homex;
}
homex = _x;
_parent.grasv2.homex = _parent.grasv2._x;
}
onClipEvent (enterFrame) {
_x = (homex - (_parent.offset * 1.1));
_parent.grasv2._x = _parent.grasv2.homex - (_parent.offset * 1.1);
if (_x > 550) {
homex = homex - 1100;
_x = (homex - (_parent.offset * 1.1));
} else if (_x < -550) {
homex = homex + 1100;
_x = (homex - (_parent.offset * 1.1));
}
if (_parent.grasv2._x > 550) {
_parent.grasv2.homex = _parent.grasv2.homex - 1100;
_parent.grasv2._x = _parent.grasv2.homex - (_parent.offset * 1.1);
} else if (_parent.grasv2._x < -550) {
_parent.grasv2.homex = _parent.grasv2.homex + 1100;
_parent.grasv2._x = _parent.grasv2.homex - (_parent.offset * 1.1);
}
}
Instance of Symbol 589 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
homex = 0;
}
onClipEvent (enterFrame) {
_x = (((homex - int(_parent.offset)) * 1.2) - 80);
if (_x > 960) {
homex = homex - 1000;
} else if (_x < -240) {
homex = homex + 1000;
}
distance = homex / -10;
}
Instance of Symbol 589 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
homex = 500;
}
onClipEvent (enterFrame) {
_x = (((homex - int(_parent.offset)) * 1.2) - 80);
if (_x > 960) {
homex = homex - 1000;
} else if (_x < -240) {
homex = homex + 1000;
}
distance = homex / -10;
if (distance == -50) {
distance = "TEE";
}
}
Instance of Symbol 612 MovieClip "engine" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
function initOff() {
_x = this._parent.pingu._x;
_y = this._parent.pingu._y;
this.aktiv = false;
this._visible = false;
}
function initOn() {
_x = this._parent.pingu._x;
_y = this._parent.pingu._y;
this.pfeil._rotation = 0;
this.rr = 3 + Math.random();
this.rp = 3 + Math.random();
this.balk._yscale = 10;
ppow = 1;
parc = 0;
this.aktiv = true;
this._visible = true;
act = "arc";
}
initOff();
}
onClipEvent (enterFrame) {
if (this.aktiv) {
if (act == "arc") {
this.pfeil._rotation = this.pfeil._rotation + this.rr;
if (this.pfeil._rotation >= 90) {
this.pfeil._rotation = 90;
this.rr = this.rr * -1;
}
if (this.pfeil._rotation <= 0) {
this.pfeil._rotation = 0;
this.rr = this.rr * -1;
}
} else if (act == "power") {
this.balk._yscale = this.balk._yscale + this.rp;
if (this.balk._yscale >= 100) {
this.balk._yscale = 100;
this.rp = this.rp * -1;
}
if (this.balk._yscale <= 1) {
this.balk._yscale = 1;
this.rp = this.rp * -1;
}
}
}
}
onClipEvent (mouseDown) {
if (this.aktiv) {
if (act == "arc") {
parc = this.pfeil._rotation;
act = "power";
} else if (act == "power") {
ppow = this.balk._yscale;
temppow = (ppow / 90) + 0.5;
xpow = ((91 - parc) * temppow) / -4;
ypow = (parc * temppow) / -5;
_parent.schuss++;
_parent.anzeige.schlag.gotoAndStop(_parent.schuss + 1);
if (_parent.schuss == 5) {
_root.world.cs = _root.world.cs + (_parent.pingu.x.toString() + ",");
_root.world.cs = _root.world.cs + (xpow.toString() + ",");
_root.world.cs = _root.world.cs + ypow.toString();
}
this._parent.yeti.gotoAndPlay("schlag");
initOff();
}
}
}
Symbol 613 MovieClip Frame 2
newgame();
stop();