Symbol 19 Button
on (release) {
if (false) {
}
if (_parent.bgsok) {
_parent.bgsok = false;
stopAllSounds();
gotoAndStop (2);
} else {
_parent.bgsok = true;
_parent.bgsound.gotoAndPlay(1);
gotoAndStop (1);
}
}
Symbol 22 MovieClip Frame 1
if (false) {
}
stop();
Symbol 31 Button
on (release) {
if (false) {
}
if (bgsok) {
bgsound.loadMovie("rudi.swf");
}
ok.start();
play();
}
Symbol 45 MovieClip Frame 1
if (false) {
}
stop();
Instance of Symbol 71 MovieClip "hitter" in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 104 MovieClip Frame 1
if (false) {
}
stop();
Instance of Symbol 98 MovieClip "zip" in Symbol 201 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.hat._x;
_y = _parent.hat._y;
}
Symbol 201 MovieClip Frame 28
if (false) {
}
if (_parent.action == "walk") {
gotoAndPlay (10);
} else {
gotoAndStop (89);
}
Symbol 201 MovieClip Frame 37
if (false) {
}
stop();
Symbol 201 MovieClip Frame 64
if (false) {
}
zip._rotation = zip._rotation + 20;
Symbol 201 MovieClip Frame 65
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 66
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 67
if (false) {
}
zip._rotation = zip._rotation + 40;
Symbol 201 MovieClip Frame 68
if (false) {
}
zip._rotation = zip._rotation + 40;
Symbol 201 MovieClip Frame 69
if (false) {
}
zip._rotation = zip._rotation + 40;
Symbol 201 MovieClip Frame 70
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 71
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 72
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 73
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 74
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 75
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 76
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 77
if (false) {
}
zip._rotation = zip._rotation + 30;
Symbol 201 MovieClip Frame 86
if (false) {
}
gotoAndStop (89);
Symbol 201 MovieClip Frame 97
if (false) {
}
if (random(2) == 1) {
stop();
}
Symbol 201 MovieClip Frame 105
if (false) {
}
_parent.action = "";
gotoAndStop (89);
Symbol 201 MovieClip Frame 115
if (false) {
}
stop();
Symbol 205 Button
on (release, keyPress "<Enter>") {
if (false) {
}
stopAllSounds();
if (bgsok) {
bgsound.gotoAndPlay(1);
}
play();
}
Instance of Symbol 67 MovieClip "hitter" in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 224 Button
on (release, keyPress "<Enter>") {
if (false) {
}
stopAllSounds();
if (bgsok) {
bgsound.gotoAndPlay(1);
}
play();
}
Symbol 245 Button
on (release) {
if (false) {
}
gotoAndPlay (54);
}
Symbol 297 Button
on (release, keyPress "<Enter>") {
if (false) {
}
gotoAndPlay (1);
}
Symbol 301 MovieClip Frame 1
if (false) {
}
jump = new Sound(snd2);
jump.attachSound("jump");
jump.setVolume(40);
land = new Sound(snd2);
land.attachSound("land");
enemyhit = new Sound(this);
enemyhit.attachSound("enemyhit");
fress = new Sound(this);
fress.attachSound("fress");
ok = new Sound(this);
ok.attachSound("ok");
rot = new Sound(snd);
rot.attachSound("rot");
jingle = new Sound(bgsctrl);
jingle.attachSound("jingle");
jingle.setVolume(60);
jingle.onSoundComplete = function () {
gotoAndStop(_currentframe + 1);
};
bgsok = true;
rudis = 5;
goodies = 0;
ebene = 1;
points = 0;
bgsctrl._visible = false;
rudi.removeMovieClip();
Instance of Symbol 17 MovieClip "snd" in Symbol 301 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 17 MovieClip "snd2" in Symbol 301 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 17 MovieClip "bgsound" in Symbol 301 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 301 MovieClip Frame 4
if (false) {
}
jingle.start();
stop();
Symbol 301 MovieClip Frame 6
if (false) {
}
ifFrameLoaded (10) {
gotoAndPlay(_currentframe + 2);
}
Symbol 301 MovieClip Frame 7
if (false) {
}
gotoAndPlay(_currentframe - 1);
Symbol 301 MovieClip Frame 8
if (false) {
}
rudis = 5;
bgsctrl._visible = true;
if ((_parent.username == "") or (_parent.username == null)) {
username = "GUEST";
} else {
username = _parent.username;
}
Instance of Symbol 37 MovieClip "snd" in Symbol 301 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 37 MovieClip "snd2" in Symbol 301 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
}
Symbol 301 MovieClip Frame 10
if (false) {
}
anzahlblks = 4;
r.gotoAndStop(rudis);
goodies = 0;
yhome = 370;
rudi._y = yhome;
rudi.ystart = 370;
rudi.xstart = rudi._x;
shadow._y = yhome;
ymax = yhome;
sprungkraft = 12;
zeit = 120;
var zeitID;
zeitID = setInterval(function () {
if ((!pause) and (zeit > 0)) {
zeit--;
}
}, 1000);
g.gotoAndStop(goodies + 1);
ruditot = function () {
rudis--;
if (rudis == 0) {
clearInterval(eis1.eisID1);
clearInterval(eis2.eisID2);
clearInterval(zeitID);
clearInterval(sballID);
this._rotation = 0;
this._x = 0;
this._y = 0;
gotoAndPlay (54);
} else {
r.gotoAndStop(rudis);
}
};
addgoodie = function () {
goodies++;
points = points + 50;
g.gotoAndStop(goodies + 1);
};
this.onEnterFrame = function () {
if (rot.getVolume() > 0) {
rot.setVolume(rot.getVolume() - 1);
}
if (Key.isDown(32)) {
clearInterval(intervallID);
}
shadow._y = yhome;
if (action != "rotate") {
cc = 0;
i = 1;
while (i <= anzahlblks) {
if (this["blk" + i].yaktiv) {
cc++;
}
i++;
}
if (cc == 0) {
yhome = ymax;
}
if ((yhome > rudi._y) and (action != "jump")) {
yaktiv = true;
}
if (yaktiv) {
yspeed = yspeed - 0.6;
if ((yspeed < 0) and (action != "jump")) {
rudi.zip._rotation = rudi.zip._rotation + 30;
}
rudi._y = rudi._y - yspeed;
rudi._x = rudi._x + (xspeed * (rudi._xscale / 100));
if (rudi._y > yhome) {
rudi._y = yhome;
yaktiv = false;
yspeed = 0;
land.start();
rot.stop();
}
}
if ((rudi._currentframe > 38) and (rudi._currentframe < 87)) {
action = "jump";
} else if (action == "jump") {
action = "";
}
zipdecr = rudi.zip._rotation / 1.2;
rudi.zip._rotation = zipdecr;
if ((Key.isDown(38) and (action != "jump")) and (rudi._y == yhome)) {
rudi.gotoAndPlay("jump");
action = "jump";
yspeed = sprungkraft;
jump.start();
yaktiv = true;
}
if (Key.isDown(40)) {
if ((action != "duck") and (!yaktiv)) {
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
rudi.gotoAndPlay("die");
action = "duck";
rudi.zip._rotation = rudi.zip._rotation + 60;
}
}
}
if (Key.isDown(39)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = 100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
} else if (Key.isDown(37)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = -100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
}
if (((((((!Key.isDown(37)) and (!Key.isDown(39))) and (action != "jump")) and (!Key.isDown(38))) and (action != "look")) and (action != "duck")) and (action != "rotate")) {
action = "";
lookcount++;
if (lookcount > (random(150) + 60)) {
rudi.gotoAndPlay("look");
lookcount = 0;
action = "look";
}
} else {
lookcount = 0;
}
if (action == "") {
rudi.gotoAndStop("look");
xspeed = 0;
}
} else {
yhome = rudi.ystart;
rudi._x = rudi._x + ((rudi.xstart - rudi._x) / 10);
rudi._y = rudi._y + ((rudi.ystart - rudi._y) / 10);
if ((Math.abs(rudi.ystart - rudi._y) < 2) and (Math.abs(rudi.xstart - rudi._x) < 2)) {
rudi._x = rudi.xstart;
rudi._y = rudi.ystart;
rudi.gotoAndStop("look");
xspeed = 0;
yspeed = 0;
action = "";
}
}
if (rudi._x > 550) {
ok.start();
rudi._x = 550;
rudi._xscale = -100;
} else if (rudi._x < 0) {
ok.start();
rudi._x = 0;
rudi._xscale = 100;
}
};
stop();
Instance of Symbol 67 MovieClip "blk1" in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk2" in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk3" in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 72 MovieClip "blk4" in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
xmove = true;
if (!xmove) {
_visible = false;
}
xmovespeed = 3;
xmin = 10;
xmax = 390;
xstart = 350;
ystart = 170;
_x = xstart;
_y = ystart;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitter.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if (xmove) {
_parent.rudi._x = _parent.rudi._x + xmovespeed;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
if (xmove) {
_x = (_x + xmovespeed);
if (_x > xmax) {
_x = xmax;
xmovespeed = xmovespeed * -1;
}
if (_x < xmin) {
_x = xmin;
xmovespeed = xmovespeed * -1;
}
}
}
Instance of Symbol 74 MovieClip "shadow" in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
_y = _parent.rudi._y;
}
onClipEvent (enterFrame) {
_x = _parent.rudi._x;
}
Instance of Symbol 76 MovieClip "eis2" in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
this._x = random(550);
clearInterval(eisID2);
eisID2 = setInterval(function () {
aktiv = true;
yspeed = 0;
}, 3000);
}
onClipEvent (enterFrame) {
if (aktiv) {
yspeed = yspeed + 0.3;
_y = (_y + yspeed);
if (_parent.rudi.hitTest(_x, _y, false) and (_parent.action != "rotate")) {
_parent.ruditot();
if (_parent.rot.getVolume() == 0) {
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
if (_y > 400) {
aktiv = false;
_y = -5;
_x = random(550);
while ((_x < 350) and (_x > 200)) {
_x = random(550);
}
}
}
}
Instance of Symbol 76 MovieClip "eis1" in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
this._x = random(550);
clearInterval(eisID1);
eisID1 = setInterval(function () {
aktiv = true;
yspeed = 0;
}, 4000);
}
onClipEvent (enterFrame) {
if (aktiv) {
yspeed = yspeed + 0.3;
_y = (_y + yspeed);
if (_parent.rudi.hitTest(_x, _y, false) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
if (_y > 400) {
aktiv = false;
_y = -5;
_x = random(550);
while ((_x < 350) and (_x > 200)) {
_x = random(550);
}
}
}
}
Instance of Symbol 96 MovieClip in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
_yscale = 1;
_xscale = 1;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + (((100 - _xscale) / 20) + 1));
_yscale = (_xscale + (((100 - _xscale) / 20) + 1));
}
_rotation = (_rotation - 3);
if (_parent.rudi.hitTest(_x, _y, true)) {
_parent.addgoodie();
_parent.fress.start();
_x = (random(500) + 25);
_y = (random(330) + 25);
_yscale = 5;
_xscale = 5;
}
if (_parent.goodies == 10) {
clearInterval(_parent.eis1.eisID1);
clearInterval(_parent.eis2.eisID2);
_parent.points = _parent.points + _parent.zeit;
clearInterval(_parent.zeitID);
_parent.play();
}
}
Instance of Symbol 201 MovieClip "rudi" in Symbol 301 MovieClip Frame 10
onClipEvent (load) {
this.swapDepths(300);
}
Symbol 301 MovieClip Frame 11
if (false) {
}
ifFrameLoaded (15) {
gotoAndStop(_currentframe + 2);
}
Symbol 301 MovieClip Frame 12
if (false) {
}
gotoAndPlay(_currentframe - 1);
Symbol 301 MovieClip Frame 13
if (false) {
}
stopAllSounds();
bgsctrl._visible = false;
if (bgsok) {
jingle.setVolume(80);
} else {
jingle.setVolume(0);
}
jingle.start(4, 1);
stop();
Symbol 301 MovieClip Frame 15
if (false) {
}
rudi._x = rudi.xstart;
rudi._y = 200;
ebene = 2;
goodies = 0;
g.gotoAndStop(goodies + 1);
zeit = 120;
var zeitID;
zeitID = setInterval(function () {
if ((!pause) and (zeit > 0)) {
zeit--;
}
}, 1000);
bgsctrl._visible = true;
anzahlblks = 4;
r.gotoAndStop(rudis);
yhome = 370;
rudi._y = yhome;
shadow._y = yhome;
ymax = yhome;
sprungkraft = 12;
this.onEnterFrame = function () {
if (rot.getVolume() > 0) {
rot.setVolume(rot.getVolume() - 1);
}
if (Key.isDown(32)) {
clearInterval(intervallID);
}
shadow._y = yhome;
if (action != "rotate") {
cc = 0;
i = 1;
while (i <= anzahlblks) {
if (this["blk" + i].yaktiv) {
cc++;
}
i++;
}
if (cc == 0) {
yhome = ymax;
}
if ((yhome > rudi._y) and (action != "jump")) {
yaktiv = true;
}
if (yaktiv) {
yspeed = yspeed - 0.6;
if ((yspeed < 0) and (action != "jump")) {
rudi.zip._rotation = rudi.zip._rotation + 30;
}
rudi._y = rudi._y - yspeed;
rudi._x = rudi._x + (xspeed * (rudi._xscale / 100));
if (rudi._y > yhome) {
rudi._y = yhome;
yaktiv = false;
yspeed = 0;
land.start();
rot.stop();
}
}
if ((rudi._currentframe > 38) and (rudi._currentframe < 87)) {
action = "jump";
} else if (action == "jump") {
action = "";
}
zipdecr = rudi.zip._rotation / 1.2;
rudi.zip._rotation = zipdecr;
if ((Key.isDown(38) and (action != "jump")) and (rudi._y == yhome)) {
rudi.gotoAndPlay("jump");
action = "jump";
yspeed = sprungkraft;
jump.start();
yaktiv = true;
}
if (Key.isDown(40)) {
if ((action != "duck") and (!yaktiv)) {
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
rudi.gotoAndPlay("die");
action = "duck";
rudi.zip._rotation = rudi.zip._rotation + 60;
}
}
}
if (Key.isDown(39)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = 100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
} else if (Key.isDown(37)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = -100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
}
if (((((((!Key.isDown(37)) and (!Key.isDown(39))) and (action != "jump")) and (!Key.isDown(38))) and (action != "look")) and (action != "duck")) and (action != "rotate")) {
action = "";
lookcount++;
if (lookcount > (random(150) + 60)) {
rudi.gotoAndPlay("look");
lookcount = 0;
action = "look";
}
} else {
lookcount = 0;
}
if (action == "") {
rudi.gotoAndStop("look");
xspeed = 0;
}
} else {
yhome = rudi.ystart;
rudi._x = rudi._x + ((rudi.xstart - rudi._x) / 10);
rudi._y = rudi._y + ((rudi.ystart - rudi._y) / 10);
if ((Math.abs(rudi.ystart - rudi._y) < 2) and (Math.abs(rudi.xstart - rudi._x) < 2)) {
rudi._x = rudi.xstart;
rudi._y = rudi.ystart;
rudi.gotoAndStop("look");
xspeed = 0;
yspeed = 0;
action = "";
}
}
if (rudi._x > 550) {
ok.start();
rudi._x = 550;
rudi._xscale = -100;
} else if (rudi._x < 0) {
ok.start();
rudi._x = 0;
rudi._xscale = 100;
}
};
stop();
Instance of Symbol 210 MovieClip "blk3" in Symbol 301 MovieClip Frame 15
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = (_x - 3);
if (_x < (-_width)) {
_x = 550;
}
if (_parent.yspeed < 0) {
if (hitter.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 3;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
} else {
_parent.rudi._x = _parent.rudi._x - 3;
}
}
}
Instance of Symbol 210 MovieClip "blk4" in Symbol 301 MovieClip Frame 15
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = (_x - 3);
if (_x < (-_width)) {
_x = 550;
}
if (_parent.yspeed < 0) {
if (hitter.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 3;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
} else {
_parent.rudi._x = _parent.rudi._x - 3;
}
}
}
Instance of Symbol 210 MovieClip "blk1" in Symbol 301 MovieClip Frame 15
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = (_x + 3);
if (_x > 550) {
_x = (-_width);
}
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
} else {
_parent.rudi._x = _parent.rudi._x + 3;
}
}
}
Instance of Symbol 210 MovieClip "blk2" in Symbol 301 MovieClip Frame 15
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = (_x + 3);
if (_x > 550) {
_x = (-_width);
}
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
} else {
_parent.rudi._x = _parent.rudi._x + 3;
}
}
}
Instance of Symbol 219 MovieClip "bird1" in Symbol 301 MovieClip Frame 15
onClipEvent (enterFrame) {
if (random(40) == 1) {
newspeedx = random(550);
}
speedx = int(newspeedx - this._x) / 50;
this._x = this._x + speedx;
if (speedx < 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
if (this.hitTest(_parent.rudi) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
}
Instance of Symbol 96 MovieClip in Symbol 301 MovieClip Frame 15
onClipEvent (load) {
_yscale = 1;
_xscale = 1;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + (((100 - _xscale) / 20) + 1));
_yscale = (_xscale + (((100 - _xscale) / 20) + 1));
}
_rotation = (_rotation - 3);
if (_parent.rudi.hitTest(_x, _y, true)) {
_parent.addgoodie();
catchedgoodies++;
_parent.fress.start();
_x = (random(500) + 25);
_y = (random(330) + 25);
_yscale = 5;
_xscale = 5;
}
if (_parent.goodies == 10) {
clearInterval(_parent.eis1.eisID1);
clearInterval(_parent.eis2.eisID2);
_parent.points = _parent.points + _parent.zeit;
clearInterval(_parent.zeitID);
_parent.play();
}
}
Symbol 301 MovieClip Frame 16
if (false) {
}
ifFrameLoaded (20) {
gotoAndStop(_currentframe + 2);
}
Symbol 301 MovieClip Frame 17
if (false) {
}
gotoAndPlay(_currentframe - 1);
Symbol 301 MovieClip Frame 18
if (false) {
}
stopAllSounds();
bgsctrl._visible = false;
if (bgsok) {
jingle.setVolume(80);
} else {
jingle.setVolume(0);
}
jingle.start(4, 1);
stop();
Symbol 301 MovieClip Frame 20
if (false) {
}
rudi._x = rudi.xstart;
rudi._y = 200;
ebene = 3;
goodies = 0;
g.gotoAndStop(goodies + 1);
zeit = 120;
var zeitID;
zeitID = setInterval(function () {
if ((!pause) and (zeit > 0)) {
zeit--;
}
}, 1000);
bgsctrl._visible = true;
anzahlblks = 2;
r.gotoAndStop(rudis);
yhome = 370;
rudi._y = yhome;
shadow._y = yhome;
ymax = yhome;
sprungkraft = 12;
this.onEnterFrame = function () {
if (rot.getVolume() > 0) {
rot.setVolume(rot.getVolume() - 1);
}
if (Key.isDown(32)) {
clearInterval(intervallID);
}
shadow._y = yhome;
if (action != "rotate") {
cc = 0;
i = 1;
while (i <= anzahlblks) {
if (this["blk" + i].yaktiv) {
cc++;
}
i++;
}
if (cc == 0) {
yhome = ymax;
}
if ((yhome > rudi._y) and (action != "jump")) {
yaktiv = true;
}
if (yaktiv) {
yspeed = yspeed - 0.6;
if ((yspeed < 0) and (action != "jump")) {
rudi.zip._rotation = rudi.zip._rotation + 30;
}
rudi._y = rudi._y - yspeed;
rudi._x = rudi._x + (xspeed * (rudi._xscale / 100));
if (rudi._y > yhome) {
rudi._y = yhome;
yaktiv = false;
yspeed = 0;
land.start();
rot.stop();
}
}
if ((rudi._currentframe > 38) and (rudi._currentframe < 87)) {
action = "jump";
} else if (action == "jump") {
action = "";
}
zipdecr = rudi.zip._rotation / 1.2;
rudi.zip._rotation = zipdecr;
if ((Key.isDown(38) and (action != "jump")) and (rudi._y == yhome)) {
rudi.gotoAndPlay("jump");
action = "jump";
yspeed = sprungkraft * 2;
jump.start();
yaktiv = true;
}
if (Key.isDown(40)) {
if ((action != "duck") and (!yaktiv)) {
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
rudi.gotoAndPlay("die");
action = "duck";
rudi.zip._rotation = rudi.zip._rotation + 60;
}
}
}
if (Key.isDown(39)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = 100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
} else if (Key.isDown(37)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = -100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
}
if (((((((!Key.isDown(37)) and (!Key.isDown(39))) and (action != "jump")) and (!Key.isDown(38))) and (action != "look")) and (action != "duck")) and (action != "rotate")) {
action = "";
lookcount++;
if (lookcount > (random(150) + 60)) {
rudi.gotoAndPlay("look");
lookcount = 0;
action = "look";
}
} else {
lookcount = 0;
}
if (action == "") {
rudi.gotoAndStop("look");
xspeed = 0;
}
} else {
yhome = rudi.ystart;
rudi._x = rudi._x + ((rudi.xstart - rudi._x) / 10);
rudi._y = rudi._y + ((rudi.ystart - rudi._y) / 10);
if ((Math.abs(rudi.ystart - rudi._y) < 2) and (Math.abs(rudi.xstart - rudi._x) < 2)) {
rudi._x = rudi.xstart;
rudi._y = rudi.ystart;
rudi.gotoAndStop("look");
xspeed = 0;
yspeed = 0;
action = "";
}
}
if (rudi._x > 550) {
ok.start();
rudi._x = 550;
rudi._xscale = -100;
} else if (rudi._x < 0) {
ok.start();
rudi._x = 0;
rudi._xscale = 100;
}
};
stop();
Instance of Symbol 67 MovieClip "blk2" in Symbol 301 MovieClip Frame 20
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk1" in Symbol 301 MovieClip Frame 20
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 219 MovieClip "bird1" in Symbol 301 MovieClip Frame 20
onClipEvent (enterFrame) {
if (random(40) == 1) {
newspeedx = random(550);
}
speedx = int(newspeedx - this._x) / 50;
this._x = this._x + speedx;
if (speedx < 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
if (this.hitTest(_parent.rudi) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
}
Instance of Symbol 219 MovieClip "bird2" in Symbol 301 MovieClip Frame 20
onClipEvent (enterFrame) {
if (random(40) == 1) {
newspeedx = random(550);
}
speedx = int(newspeedx - this._x) / 50;
this._x = this._x + speedx;
if (speedx < 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
if (this.hitTest(_parent.rudi) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
}
Instance of Symbol 96 MovieClip in Symbol 301 MovieClip Frame 20
onClipEvent (load) {
_yscale = 1;
_xscale = 1;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + (((100 - _xscale) / 20) + 1));
_yscale = (_xscale + (((100 - _xscale) / 20) + 1));
}
_rotation = (_rotation - 3);
if (_parent.rudi.hitTest(_x, _y, true)) {
_parent.addgoodie();
catchedgoodies++;
_parent.fress.start();
_x = (random(500) + 25);
_y = (random(330) + 25);
_yscale = 5;
_xscale = 5;
}
if (_parent.goodies == 10) {
clearInterval(_parent.eis1.eisID1);
clearInterval(_parent.eis2.eisID2);
_parent.points = _parent.points + _parent.zeit;
clearInterval(_parent.zeitID);
_parent.play();
}
}
Symbol 301 MovieClip Frame 21
if (false) {
}
ifFrameLoaded (25) {
gotoAndStop(_currentframe + 2);
}
Symbol 301 MovieClip Frame 22
if (false) {
}
gotoAndPlay(_currentframe - 1);
Symbol 301 MovieClip Frame 23
if (false) {
}
stopAllSounds();
bgsctrl._visible = false;
if (bgsok) {
jingle.setVolume(80);
} else {
jingle.setVolume(0);
}
jingle.start(4, 1);
stop();
Symbol 301 MovieClip Frame 25
if (false) {
}
rudi._x = rudi.xstart;
rudi._y = rudi.ystart;
sballlev = 100;
sball.lev = 2;
anzahlblks = 3;
ebene = 4;
goodies = 0;
g.gotoAndStop(goodies + 1);
zeit = 120;
bgsctrl._visible = true;
var zeitID;
zeitID = setInterval(function () {
if ((!pause) and (zeit > 0)) {
zeit--;
}
}, 1000);
var sballID;
sballID = setInterval(function () {
sballlev++;
sball.duplicateMovieClip("sball" + sballlev, sballlev);
}, 4000);
this.onEnterFrame = function () {
if (rot.getVolume() > 0) {
rot.setVolume(rot.getVolume() - 1);
}
if (Key.isDown(32)) {
clearInterval(intervallID);
}
shadow._y = yhome;
if (action != "rotate") {
cc = 0;
i = 1;
while (i <= anzahlblks) {
if (this["blk" + i].yaktiv) {
cc++;
}
i++;
}
if (cc == 0) {
yhome = ymax;
}
if ((yhome > rudi._y) and (action != "jump")) {
yaktiv = true;
}
if (yaktiv) {
yspeed = yspeed - 0.6;
if ((yspeed < 0) and (action != "jump")) {
rudi.zip._rotation = rudi.zip._rotation + 30;
}
rudi._y = rudi._y - yspeed;
rudi._x = rudi._x + (xspeed * (rudi._xscale / 100));
if (rudi._y > yhome) {
rudi._y = yhome;
yaktiv = false;
yspeed = 0;
land.start();
rot.stop();
}
}
if ((rudi._currentframe > 38) and (rudi._currentframe < 87)) {
action = "jump";
} else if (action == "jump") {
action = "";
}
zipdecr = rudi.zip._rotation / 1.2;
rudi.zip._rotation = zipdecr;
if ((Key.isDown(38) and (action != "jump")) and (rudi._y == yhome)) {
rudi.gotoAndPlay("jump");
action = "jump";
yspeed = sprungkraft;
jump.start();
yaktiv = true;
}
if (Key.isDown(40)) {
if ((action != "duck") and (!yaktiv)) {
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
rudi.gotoAndPlay("die");
action = "duck";
rudi.zip._rotation = rudi.zip._rotation + 60;
}
}
}
if (Key.isDown(39)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = 100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
} else if (Key.isDown(37)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = -100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
}
if (((((((!Key.isDown(37)) and (!Key.isDown(39))) and (action != "jump")) and (!Key.isDown(38))) and (action != "look")) and (action != "duck")) and (action != "rotate")) {
action = "";
lookcount++;
if (lookcount > (random(150) + 60)) {
rudi.gotoAndPlay("look");
lookcount = 0;
action = "look";
}
} else {
lookcount = 0;
}
if (action == "") {
rudi.gotoAndStop("look");
xspeed = 0;
}
} else {
yhome = rudi.ystart;
rudi._x = rudi._x + ((rudi.xstart - rudi._x) / 10);
rudi._y = rudi._y + ((rudi.ystart - rudi._y) / 10);
if ((Math.abs(rudi.ystart - rudi._y) < 2) and (Math.abs(rudi.xstart - rudi._x) < 2)) {
rudi._x = rudi.xstart;
rudi._y = rudi.ystart;
rudi.gotoAndStop("look");
xspeed = 0;
yspeed = 0;
action = "";
}
}
if (rudi._x > 550) {
ok.start();
rudi._x = 550;
rudi._xscale = -100;
} else if (rudi._x < 0) {
ok.start();
rudi._x = 0;
rudi._xscale = 100;
}
};
stop();
Instance of Symbol 67 MovieClip "blk1" in Symbol 301 MovieClip Frame 25
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk2" in Symbol 301 MovieClip Frame 25
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk3" in Symbol 301 MovieClip Frame 25
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 229 MovieClip "sball" in Symbol 301 MovieClip Frame 25
onClipEvent (load) {
startx = 0;
starty = 0;
xspeed = 3;
yspeed = -3;
_x = startx;
_y = starty;
if ((lev == null) or (lev == "")) {
lev = 1;
}
}
onClipEvent (enterFrame) {
if (_parent._currentframe > 25) {
this.removeMovieClip();
}
if (!inaktiv) {
if (_parent.rudi.hitTest(_x, _y - _height, true) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
if ((_parent.rudi._y - _y) < 100) {
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
}
yspeed = yspeed + 0.5;
oldx = _x;
oldy = _y;
_x = (_x + xspeed);
_y = (_y + yspeed);
i = 1;
while (i <= 3) {
if (_parent["blk" + i].hitTest(this)) {
if ((_x < (_parent["blk" + i]._x + _parent["blk" + i]._width)) and (_x > _parent["blk" + i]._x)) {
_y = oldy;
yspeed = -3;
} else if (_x < _parent["blk" + i]._x) {
xspeed = -3;
} else {
xspeed = 3;
}
}
i++;
}
if ((_x > 550) or (_x < 0)) {
xspeed = xspeed * -1;
}
if (_y > 450) {
if (lev == 1) {
this.removeMovieClip();
} else {
inaktiv = true;
}
}
}
}
Instance of Symbol 96 MovieClip in Symbol 301 MovieClip Frame 25
onClipEvent (load) {
_yscale = 1;
_xscale = 1;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + (((100 - _xscale) / 20) + 1));
_yscale = (_xscale + (((100 - _xscale) / 20) + 1));
}
_rotation = (_rotation - 3);
if (_parent.rudi.hitTest(_x, _y, true)) {
_parent.addgoodie();
catchedgoodies++;
_parent.fress.start();
_x = (random(500) + 25);
_y = (random(330) + 25);
_yscale = 5;
_xscale = 5;
}
if (_parent.goodies == 10) {
clearInterval(_parent.sballID);
_parent.points = _parent.points + _parent.zeit;
clearInterval(_parent.zeitID);
_parent.play();
}
}
Symbol 301 MovieClip Frame 26
if (false) {
}
ifFrameLoaded (30) {
gotoAndStop(_currentframe + 2);
}
Symbol 301 MovieClip Frame 27
if (false) {
}
gotoAndPlay(_currentframe - 1);
Symbol 301 MovieClip Frame 28
if (false) {
}
stopAllSounds();
bgsctrl._visible = false;
if (bgsok) {
jingle.setVolume(80);
} else {
jingle.setVolume(0);
}
jingle.start(4, 1);
stop();
Symbol 301 MovieClip Frame 30
if (false) {
}
rudi._x = rudi.xstart;
rudi._y = 200;
ebene = 5;
goodies = 0;
g.gotoAndStop(goodies + 1);
zeit = 120;
var zeitID;
zeitID = setInterval(function () {
if ((!pause) and (zeit > 0)) {
zeit--;
}
}, 1000);
bgsctrl._visible = true;
anzahlblks = 5;
r.gotoAndStop(rudis);
yhome = 370;
rudi._y = yhome;
shadow._y = yhome;
ymax = yhome;
sprungkraft = 12;
this.onEnterFrame = function () {
if (rot.getVolume() > 0) {
rot.setVolume(rot.getVolume() - 1);
}
if (Key.isDown(32)) {
clearInterval(intervallID);
}
shadow._y = yhome;
if (action != "rotate") {
cc = 0;
i = 1;
while (i <= anzahlblks) {
if (this["blk" + i].yaktiv) {
cc++;
}
i++;
}
if (cc == 0) {
yhome = ymax;
}
if ((yhome > rudi._y) and (action != "jump")) {
yaktiv = true;
}
if (yaktiv) {
yspeed = yspeed - 0.6;
if ((yspeed < 0) and (action != "jump")) {
rudi.zip._rotation = rudi.zip._rotation + 30;
}
rudi._y = rudi._y - yspeed;
rudi._x = rudi._x + (xspeed * (rudi._xscale / 100));
if (rudi._y > yhome) {
rudi._y = yhome;
yaktiv = false;
yspeed = 0;
land.start();
rot.stop();
}
}
if ((rudi._currentframe > 38) and (rudi._currentframe < 87)) {
action = "jump";
} else if (action == "jump") {
action = "";
}
zipdecr = rudi.zip._rotation / 1.2;
rudi.zip._rotation = zipdecr;
if ((Key.isDown(38) and (action != "jump")) and (rudi._y == yhome)) {
rudi.gotoAndPlay("jump");
action = "jump";
yspeed = sprungkraft;
jump.start();
yaktiv = true;
}
if (Key.isDown(40)) {
if ((action != "duck") and (!yaktiv)) {
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
rudi.gotoAndPlay("die");
action = "duck";
rudi.zip._rotation = rudi.zip._rotation + 60;
}
}
}
if (Key.isDown(39)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = 100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
} else if (Key.isDown(37)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = -100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
}
if (((((((!Key.isDown(37)) and (!Key.isDown(39))) and (action != "jump")) and (!Key.isDown(38))) and (action != "look")) and (action != "duck")) and (action != "rotate")) {
action = "";
lookcount++;
if (lookcount > (random(150) + 60)) {
rudi.gotoAndPlay("look");
lookcount = 0;
action = "look";
}
} else {
lookcount = 0;
}
if (action == "") {
rudi.gotoAndStop("look");
xspeed = 0;
}
} else {
yhome = rudi.ystart;
rudi._x = rudi._x + ((rudi.xstart - rudi._x) / 10);
rudi._y = rudi._y + ((rudi.ystart - rudi._y) / 10);
if ((Math.abs(rudi.ystart - rudi._y) < 2) and (Math.abs(rudi.xstart - rudi._x) < 2)) {
rudi._x = rudi.xstart;
rudi._y = rudi.ystart;
rudi.gotoAndStop("look");
xspeed = 0;
yspeed = 0;
action = "";
}
}
if (rudi._x > 550) {
ok.start();
rudi._x = 550;
rudi._xscale = -100;
} else if (rudi._x < 0) {
ok.start();
rudi._x = 0;
rudi._xscale = 100;
}
};
stop();
Instance of Symbol 234 MovieClip "blk1" in Symbol 301 MovieClip Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_visible = true;
_alpha = 100;
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
_visible = false;
}
}
if (this.hitTest(_parent.eis1) or this.hitTest(_parent.eis2)) {
_visible = true;
_alpha = 100;
}
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_visible = false;
}
}
Instance of Symbol 234 MovieClip "blk2" in Symbol 301 MovieClip Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_visible = true;
_alpha = 100;
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
_visible = false;
}
}
if (this.hitTest(_parent.eis1) or this.hitTest(_parent.eis2)) {
_visible = true;
_alpha = 100;
}
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_visible = false;
}
}
Instance of Symbol 234 MovieClip "blk3" in Symbol 301 MovieClip Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_visible = true;
_alpha = 100;
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
_visible = false;
}
}
if (this.hitTest(_parent.eis1) or this.hitTest(_parent.eis2)) {
_visible = true;
_alpha = 100;
}
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_visible = false;
}
}
Instance of Symbol 234 MovieClip "blk4" in Symbol 301 MovieClip Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_visible = true;
_alpha = 100;
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
_visible = false;
}
}
if (this.hitTest(_parent.eis1) or this.hitTest(_parent.eis2)) {
_visible = true;
_alpha = 100;
}
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_visible = false;
}
}
Instance of Symbol 234 MovieClip "blk5" in Symbol 301 MovieClip Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_visible = true;
_alpha = 100;
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
_visible = false;
}
}
if (this.hitTest(_parent.eis1) or this.hitTest(_parent.eis2)) {
_visible = true;
_alpha = 100;
}
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_visible = false;
}
}
Instance of Symbol 76 MovieClip "eis2" in Symbol 301 MovieClip Frame 30
onClipEvent (load) {
this._x = random(550);
clearInterval(eisID2);
eisID2 = setInterval(function () {
aktiv = true;
yspeed = 0;
}, 3000);
}
onClipEvent (enterFrame) {
if (aktiv) {
yspeed = yspeed + 0.3;
_y = (_y + yspeed);
if (_parent.rudi.hitTest(_x, _y, false) and (_parent.action != "rotate")) {
_parent.ruditot();
if (_parent.rot.getVolume() == 0) {
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
if (_y > 400) {
aktiv = false;
_y = -5;
_x = random(550);
while ((_x < 350) and (_x > 200)) {
_x = random(550);
}
}
}
}
Instance of Symbol 76 MovieClip "eis1" in Symbol 301 MovieClip Frame 30
onClipEvent (load) {
this._x = random(550);
clearInterval(eisID1);
eisID1 = setInterval(function () {
aktiv = true;
yspeed = 0;
}, 4000);
}
onClipEvent (enterFrame) {
if (aktiv) {
yspeed = yspeed + 0.3;
_y = (_y + yspeed);
if (_parent.rudi.hitTest(_x, _y, false) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
if (_y > 400) {
aktiv = false;
_y = -5;
_x = random(550);
while ((_x < 350) and (_x > 200)) {
_x = random(550);
}
}
}
}
Instance of Symbol 96 MovieClip in Symbol 301 MovieClip Frame 30
onClipEvent (load) {
_yscale = 1;
_xscale = 1;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + (((100 - _xscale) / 20) + 1));
_yscale = (_xscale + (((100 - _xscale) / 20) + 1));
}
_rotation = (_rotation - 3);
if (_parent.rudi.hitTest(_x, _y, true)) {
_parent.addgoodie();
catchedgoodies++;
_parent.fress.start();
_x = (random(500) + 25);
_y = (random(330) + 25);
_yscale = 5;
_xscale = 5;
}
if (_parent.goodies == 10) {
clearInterval(_parent.eis1.eisID1);
clearInterval(_parent.eis2.eisID2);
_parent.points = _parent.points + _parent.zeit;
clearInterval(_parent.zeitID);
_parent.play();
}
}
Symbol 301 MovieClip Frame 31
if (false) {
}
ifFrameLoaded (35) {
gotoAndStop(_currentframe + 2);
}
Symbol 301 MovieClip Frame 32
if (false) {
}
gotoAndPlay(_currentframe - 1);
Symbol 301 MovieClip Frame 33
if (false) {
}
stopAllSounds();
bgsctrl._visible = false;
if (bgsok) {
jingle.setVolume(80);
} else {
jingle.setVolume(0);
}
jingle.start(4, 1);
stop();
Symbol 301 MovieClip Frame 35
if (false) {
}
this._rotation = 180;
this._x = 550;
this._y = 400;
rudi._x = rudi.xstart;
rudi._y = 200;
ebene = 6;
goodies = 0;
g.gotoAndStop(goodies + 1);
zeit = 120;
bgsctrl._visible = true;
var zeitID;
zeitID = setInterval(function () {
if ((!pause) and (zeit > 0)) {
zeit--;
}
}, 1000);
anzahlblks = 4;
r.gotoAndStop(rudis);
yhome = 370;
rudi._y = yhome;
shadow._y = yhome;
ymax = yhome;
sprungkraft = 12;
this.onEnterFrame = function () {
if (rot.getVolume() > 0) {
rot.setVolume(rot.getVolume() - 1);
}
if (Key.isDown(32)) {
clearInterval(intervallID);
}
shadow._y = yhome;
if (action != "rotate") {
cc = 0;
i = 1;
while (i <= anzahlblks) {
if (this["blk" + i].yaktiv) {
cc++;
}
i++;
}
if (cc == 0) {
yhome = ymax;
}
if ((yhome > rudi._y) and (action != "jump")) {
yaktiv = true;
}
if (yaktiv) {
yspeed = yspeed - 0.6;
if ((yspeed < 0) and (action != "jump")) {
rudi.zip._rotation = rudi.zip._rotation + 30;
}
rudi._y = rudi._y - yspeed;
rudi._x = rudi._x + (xspeed * (rudi._xscale / 100));
if (rudi._y > yhome) {
rudi._y = yhome;
yaktiv = false;
yspeed = 0;
land.start();
rot.stop();
}
}
if ((rudi._currentframe > 38) and (rudi._currentframe < 87)) {
action = "jump";
} else if (action == "jump") {
action = "";
}
zipdecr = rudi.zip._rotation / 1.2;
rudi.zip._rotation = zipdecr;
if ((Key.isDown(38) and (action != "jump")) and (rudi._y == yhome)) {
rudi.gotoAndPlay("jump");
action = "jump";
yspeed = sprungkraft;
jump.start();
yaktiv = true;
}
if (Key.isDown(40)) {
if ((action != "duck") and (!yaktiv)) {
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
rudi.gotoAndPlay("die");
action = "duck";
rudi.zip._rotation = rudi.zip._rotation + 60;
}
}
}
if (Key.isDown(39)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = 100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
} else if (Key.isDown(37)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = -100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
}
if (((((((!Key.isDown(37)) and (!Key.isDown(39))) and (action != "jump")) and (!Key.isDown(38))) and (action != "look")) and (action != "duck")) and (action != "rotate")) {
action = "";
lookcount++;
if (lookcount > (random(150) + 60)) {
rudi.gotoAndPlay("look");
lookcount = 0;
action = "look";
}
} else {
lookcount = 0;
}
if (action == "") {
rudi.gotoAndStop("look");
xspeed = 0;
}
} else {
yhome = rudi.ystart;
rudi._x = rudi._x + ((rudi.xstart - rudi._x) / 10);
rudi._y = rudi._y + ((rudi.ystart - rudi._y) / 10);
if ((Math.abs(rudi.ystart - rudi._y) < 2) and (Math.abs(rudi.xstart - rudi._x) < 2)) {
rudi._x = rudi.xstart;
rudi._y = rudi.ystart;
rudi.gotoAndStop("look");
xspeed = 0;
yspeed = 0;
action = "";
}
}
if (rudi._x > 550) {
ok.start();
rudi._x = 550;
rudi._xscale = -100;
} else if (rudi._x < 0) {
ok.start();
rudi._x = 0;
rudi._xscale = 100;
}
};
stop();
Instance of Symbol 67 MovieClip "blk1" in Symbol 301 MovieClip Frame 35
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(550 - _parent.rudi._x, 400 - _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk2" in Symbol 301 MovieClip Frame 35
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(550 - _parent.rudi._x, 400 - _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk3" in Symbol 301 MovieClip Frame 35
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(550 - _parent.rudi._x, 400 - _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 72 MovieClip "blk4" in Symbol 301 MovieClip Frame 35
onClipEvent (load) {
xmove = true;
if (!xmove) {
_visible = false;
}
xmovespeed = 3;
xmin = 10;
xmax = 390;
xstart = 350;
ystart = 170;
_x = xstart;
_y = ystart;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitter.hitTest(550 - _parent.rudi._x, 400 - _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if (xmove) {
_parent.rudi._x = _parent.rudi._x + xmovespeed;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
if (xmove) {
_x = (_x + xmovespeed);
if (_x > xmax) {
_x = xmax;
xmovespeed = xmovespeed * -1;
}
if (_x < xmin) {
_x = xmin;
xmovespeed = xmovespeed * -1;
}
}
}
Instance of Symbol 76 MovieClip "eis2" in Symbol 301 MovieClip Frame 35
onClipEvent (load) {
this._x = random(550);
clearInterval(eisID2);
eisID2 = setInterval(function () {
aktiv = true;
yspeed = 0;
}, 3000);
}
onClipEvent (enterFrame) {
if (aktiv) {
yspeed = yspeed + 0.3;
_y = (_y + yspeed);
if (_parent.rudi.hitTest(550 - _x, 400 - _y, false) and (_parent.action != "rotate")) {
_parent.ruditot();
if (_parent.rot.getVolume() == 0) {
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
if (_y > 400) {
aktiv = false;
_y = -5;
_x = random(550);
while ((_x < 350) and (_x > 200)) {
_x = random(550);
}
}
}
}
Instance of Symbol 76 MovieClip "eis1" in Symbol 301 MovieClip Frame 35
onClipEvent (load) {
this._x = random(550);
clearInterval(eisID1);
eisID1 = setInterval(function () {
aktiv = true;
yspeed = 0;
}, 4000);
}
onClipEvent (enterFrame) {
if (aktiv) {
yspeed = yspeed + 0.3;
_y = (_y + yspeed);
if (_parent.rudi.hitTest(550 - _x, 400 - _y, false) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
if (_y > 400) {
aktiv = false;
_y = -5;
_x = random(550);
while ((_x < 350) and (_x > 200)) {
_x = random(550);
}
}
}
}
Instance of Symbol 96 MovieClip in Symbol 301 MovieClip Frame 35
onClipEvent (load) {
_yscale = 1;
_xscale = 1;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + (((100 - _xscale) / 20) + 1));
_yscale = (_xscale + (((100 - _xscale) / 20) + 1));
}
_rotation = (_rotation - 3);
if (_parent.rudi.hitTest(this)) {
_parent.addgoodie();
_parent.fress.start();
_x = (random(500) + 25);
_y = (random(330) + 25);
_yscale = 5;
_xscale = 5;
}
if (_parent.goodies == 10) {
clearInterval(_parent.eis1.eisID1);
clearInterval(_parent.eis2.eisID2);
_parent.points = _parent.points + _parent.zeit;
clearInterval(_parent.zeitID);
_parent._rotation = 0;
_parent._x = 0;
_parent._y = 0;
_parent.play();
}
}
Symbol 301 MovieClip Frame 36
if (false) {
}
ifFrameLoaded (40) {
gotoAndStop(_currentframe + 2);
}
Symbol 301 MovieClip Frame 37
if (false) {
}
gotoAndPlay(_currentframe - 1);
Symbol 301 MovieClip Frame 38
if (false) {
}
stopAllSounds();
bgsctrl._visible = false;
if (bgsok) {
jingle.setVolume(80);
} else {
jingle.setVolume(0);
}
jingle.start(4, 1);
stop();
Symbol 301 MovieClip Frame 40
if (false) {
}
rudi._x = rudi.xstart;
rudi._y = 200;
ebene = 7;
goodies = 0;
g.gotoAndStop(goodies + 1);
zeit = 120;
var zeitID;
zeitID = setInterval(function () {
if ((!pause) and (zeit > 0)) {
zeit--;
}
}, 1000);
sballlev = 100;
sball.lev = 2;
sballlev = 0;
var sballID;
sballID = setInterval(function () {
sballlev++;
sball.duplicateMovieClip("sball" + sballlev, sballlev);
}, 3000);
bgsctrl._visible = true;
anzahlblks = 5;
r.gotoAndStop(rudis);
yhome = 370;
rudi._y = yhome;
shadow._y = yhome;
ymax = yhome;
sprungkraft = 12;
this.onEnterFrame = function () {
if (rot.getVolume() > 0) {
rot.setVolume(rot.getVolume() - 1);
}
if (Key.isDown(32)) {
clearInterval(intervallID);
}
shadow._y = yhome;
if (action != "rotate") {
cc = 0;
i = 1;
while (i <= anzahlblks) {
if (this["blk" + i].yaktiv) {
cc++;
}
i++;
}
if (cc == 0) {
yhome = ymax;
}
if ((yhome > rudi._y) and (action != "jump")) {
yaktiv = true;
}
if (yaktiv) {
yspeed = yspeed - 0.6;
if ((yspeed < 0) and (action != "jump")) {
rudi.zip._rotation = rudi.zip._rotation + 30;
}
rudi._y = rudi._y - yspeed;
rudi._x = rudi._x + (xspeed * (rudi._xscale / 100));
if (rudi._y > yhome) {
rudi._y = yhome;
yaktiv = false;
yspeed = 0;
land.start();
rot.stop();
}
}
if ((rudi._currentframe > 38) and (rudi._currentframe < 87)) {
action = "jump";
} else if (action == "jump") {
action = "";
}
zipdecr = rudi.zip._rotation / 1.2;
rudi.zip._rotation = zipdecr;
if ((Key.isDown(38) and (action != "jump")) and (rudi._y == yhome)) {
rudi.gotoAndPlay("jump");
action = "jump";
yspeed = sprungkraft;
jump.start();
yaktiv = true;
}
if (Key.isDown(40)) {
if ((action != "duck") and (!yaktiv)) {
if ((!Key.isDown(37)) and (!Key.isDown(39))) {
rudi.gotoAndPlay("die");
action = "duck";
rudi.zip._rotation = rudi.zip._rotation + 60;
}
}
}
if (Key.isDown(39)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = 100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
} else if (Key.isDown(37)) {
if ((action != "walk") and (action != "jump")) {
rudi.gotoAndPlay("walk");
action = "walk";
}
if (action != "duck") {
rudi._xscale = -100;
if (action == "walk") {
xspeed = 4;
}
if ((action != "jump") and (!yaktiv)) {
rudi._x = rudi._x + ((xspeed * rudi._xscale) / 100);
} else if (xspeed < 4) {
xspeed = xspeed + 0.4;
}
}
rudi.zip._rotation = rudi.zip._rotation + 5;
}
if (((((((!Key.isDown(37)) and (!Key.isDown(39))) and (action != "jump")) and (!Key.isDown(38))) and (action != "look")) and (action != "duck")) and (action != "rotate")) {
action = "";
lookcount++;
if (lookcount > (random(150) + 60)) {
rudi.gotoAndPlay("look");
lookcount = 0;
action = "look";
}
} else {
lookcount = 0;
}
if (action == "") {
rudi.gotoAndStop("look");
xspeed = 0;
}
} else {
yhome = rudi.ystart;
rudi._x = rudi._x + ((rudi.xstart - rudi._x) / 10);
rudi._y = rudi._y + ((rudi.ystart - rudi._y) / 10);
if ((Math.abs(rudi.ystart - rudi._y) < 2) and (Math.abs(rudi.xstart - rudi._x) < 2)) {
rudi._x = rudi.xstart;
rudi._y = rudi.ystart;
rudi.gotoAndStop("look");
xspeed = 0;
yspeed = 0;
action = "";
}
}
if (rudi._x > 550) {
ok.start();
rudi._x = 550;
rudi._xscale = -100;
} else if (rudi._x < 0) {
ok.start();
rudi._x = 0;
rudi._xscale = 100;
}
};
stop();
Instance of Symbol 67 MovieClip "blk1" in Symbol 301 MovieClip Frame 40
onClipEvent (enterFrame) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk2" in Symbol 301 MovieClip Frame 40
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 67 MovieClip "blk3" in Symbol 301 MovieClip Frame 40
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 210 MovieClip "blk5" in Symbol 301 MovieClip Frame 40
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = (_x - 3);
if (_x < (-_width)) {
_x = 550;
}
if (_parent.yspeed < 0) {
if (hitter.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 3;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
} else {
_parent.rudi._x = _parent.rudi._x - 3;
}
}
}
Instance of Symbol 67 MovieClip "blk4" in Symbol 301 MovieClip Frame 40
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.yspeed < 0) {
if (this.hitTest(_parent.rudi._x, _parent.rudi._y, false)) {
_parent.rudi.gotoAndPlay(84);
_parent.rudi._y = _y - 2;
_parent.yspeed = 0;
_parent.xspeed = 0;
yaktiv = true;
if (_parent.rudi._y < _parent.yhome) {
_parent.yhome = _parent.rudi._y;
}
}
}
if (yaktiv) {
if ((_parent.action == "jump") and (_parent.rudi._currentframe < 44)) {
yaktiv = false;
}
if ((_parent.rudi._x < (_x - 2)) or (_parent.rudi._x > ((_x + _width) + 2))) {
yaktiv = false;
}
}
}
Instance of Symbol 76 MovieClip "eis1" in Symbol 301 MovieClip Frame 40
onClipEvent (load) {
this._x = random(550);
clearInterval(eisID1);
eisID1 = setInterval(function () {
aktiv = true;
yspeed = 0;
}, 4000);
}
onClipEvent (enterFrame) {
if (aktiv) {
yspeed = yspeed + 0.3;
_y = (_y + yspeed);
if (_parent.rudi.hitTest(_x, _y, false) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
if (_y > 400) {
aktiv = false;
_y = -5;
_x = random(550);
while ((_x < 350) and (_x > 200)) {
_x = random(550);
}
}
}
}
Instance of Symbol 219 MovieClip "bird1" in Symbol 301 MovieClip Frame 40
onClipEvent (enterFrame) {
if (random(40) == 1) {
newspeedx = random(550);
}
speedx = int(newspeedx - this._x) / 50;
this._x = this._x + speedx;
if (speedx < 0) {
this._xscale = 100;
} else {
this._xscale = -100;
}
if (this.hitTest(_parent.rudi) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
}
Instance of Symbol 229 MovieClip "sball" in Symbol 301 MovieClip Frame 40
onClipEvent (load) {
if (random(2) == 1) {
startx = 0;
xspeed = 3;
} else {
startx = 550;
xspeed = -3;
}
starty = 0;
yspeed = -3;
_x = startx;
_y = starty;
if ((lev == null) or (lev == "")) {
lev = 1;
}
}
onClipEvent (enterFrame) {
if (_parent._currentframe > 40) {
this.removeMovieClip();
}
if (!inaktiv) {
if (_parent.rudi.hitTest(_x, _y - _height, true) and (_parent.action != "rotate")) {
if (_parent.rot.getVolume() == 0) {
_parent.ruditot();
_parent.jump.start();
_parent.rot.setVolume(100);
_parent.rot.start(0, 100);
}
if ((_parent.rudi._y - _y) < 100) {
_parent.rudi.gotoAndStop("rotate");
_parent.action = "rotate";
}
}
yspeed = yspeed + 0.5;
oldx = _x;
oldy = _y;
_x = (_x + xspeed);
_y = (_y + yspeed);
i = 1;
while (i <= 4) {
if (_parent["blk" + i].hitTest(this)) {
if ((_x < (_parent["blk" + i]._x + _parent["blk" + i]._width)) and (_x > _parent["blk" + i]._x)) {
_y = oldy;
yspeed = -3;
} else if (_x < _parent["blk" + i]._x) {
xspeed = -3;
} else {
xspeed = 3;
}
}
i++;
}
if ((_x > 550) or (_x < 0)) {
xspeed = xspeed * -1;
}
if (_y > 450) {
if (lev == 1) {
this.removeMovieClip();
} else {
inaktiv = true;
}
}
}
}
Instance of Symbol 96 MovieClip in Symbol 301 MovieClip Frame 40
onClipEvent (load) {
_yscale = 1;
_xscale = 1;
}
onClipEvent (enterFrame) {
if (_xscale < 100) {
_xscale = (_xscale + (((100 - _xscale) / 20) + 1));
_yscale = (_xscale + (((100 - _xscale) / 20) + 1));
}
_rotation = (_rotation - 3);
if (_parent.rudi.hitTest(this)) {
_parent.addgoodie();
_parent.fress.start();
_x = (random(500) + 25);
_y = (random(330) + 25);
_yscale = 5;
_xscale = 5;
}
if (_parent.goodies == 10) {
clearInterval(_parent.eis1.eisID1);
clearInterval(_parent.sballID);
_parent.points = _parent.points + _parent.zeit;
clearInterval(_parent.zeitID);
_parent.play();
}
}
Symbol 301 MovieClip Frame 42
if (false) {
}
this.onEnterFrame = function () {
};
rudi.removeMovieClip();
Symbol 301 MovieClip Frame 45
if (false) {
}
bonus = 500 + (250 * rudis);
points = points + bonus;
ebene = "FINISHED";
stopAllSounds();
bgsctrl._visible = false;
stop();
Symbol 301 MovieClip Frame 55
if (false) {
}
rot.stop();
bgsctrl._visible = true;
this.onEnterFrame = function () {
};
rudi.removeMovieClip();
Symbol 301 MovieClip Frame 56
if (false) {
}
PHP_score = "";
jetztdatum = new Date();
lev = ebene;
action = "schreiben";
this.loadVariables("hi_score.php", "POST");
Symbol 301 MovieClip Frame 58
if (false) {
}
if (PHP_score != "1") {
gotoAndPlay(_currentframe - 1);
}
Symbol 301 MovieClip Frame 60
if (false) {
}
PHP_score = "";
action = "lesen";
this.loadVariables("hi_score.php", "POST");
Symbol 301 MovieClip Frame 62
if (false) {
}
if (PHP_score != "1") {
gotoAndPlay(_currentframe - 1);
}
Symbol 301 MovieClip Frame 75
if (false) {
}
stopAllSounds();
stop();