Frame 1
_root.soundon = "yes";
stop();
Frame 122
level = 1;
lives = 6;
score = 0;
_root.tijd = 140;
_root.timecount = 0;
bubblecount = 0;
stop();
Instance of Symbol 69 MovieClip "helpscreen" in Frame 122
onClipEvent (load) {
_visible = false;
}
Frame 123
_root.lijstjetekst.gotoAndStop(_root.level);
Frame 124
function getHit() {
if (_root.dude.overgang == 0) {
if (_root.dude.super == 10) {
_root.dude.super = 0;
_root.dude.overgang = 16;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("superdownsound");
s.setVolume(100);
s.start();
}
} else {
lives--;
_root.dude.dood = 1;
_root.dude.yspeed = 14;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("diesound");
s.setVolume(100);
s.start();
}
}
}
}
function bottomDeath() {
lives--;
_root.dude.dood = 1;
_root.dude.yspeed = 14;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("diesound");
s.setVolume(100);
s.start();
}
}
function pickupBubble() {
_root.score = _root.score + 100;
_root.bubblecount++;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("bubblesound");
s.setVolume(100);
s.start();
}
if (_root.bubblecount >= 10) {
_root.bubblecount = 0;
_root.lives++;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("lifeupsound");
s.setVolume(100);
s.start();
}
}
}
function pickupDrankje() {
_root.dude.super = 10;
_root.dude.overgang = 16;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("superupsound");
s.setVolume(100);
s.start();
}
}
function heksReborn() {
if (0 >= _root.lives) {
_root.gotoAndStop(125);
}
if (_root.safe == 1) {
_root.badguys._x = _root.safebadguysx;
_root.badguys._y = _root.safebadguysy;
_root.platforms._x = _root.safeplatformsx;
_root.platforms._y = _root.safeplatformsy;
_root.muren._x = _root.safemurenx;
_root.muren._y = _root.safemureny;
_root.background._x = _root.safebgx;
_root.background._y = _root.safebgy;
} else {
_root.badguys._x = _root.badguys.startx;
_root.badguys._y = _root.badguys.starty;
_root.platforms._x = _root.platforms.startx;
_root.platforms._y = _root.platforms.starty;
_root.muren._x = _root.muren.startx;
_root.muren._y = _root.muren.starty;
_root.background._x = _root.background.startx;
_root.background._y = _root.background.starty;
}
_root.dude.super = 0;
_root.dude.overgang = 0;
_root.dude.dood = 0;
_root.dude.state = 1;
_root.dude.meppen = 0;
_root.dude.yspeed = 0;
_root.dude.xspeed = 0;
_root.dude._y = 120;
_root.draaklife = 5;
_root.tijd = 140;
_root.timecount = 0;
_root.tijdop._visible = false;
}
function nextLevel() {
_root.level++;
_root.score = _root.score + 1000;
_root.score = _root.score + (_root.tijd * 2);
_root.score = _root.score + (_root.lives * 100);
_root.tijd = 140;
_root.timecount = 0;
_root.badguys._x = _root.badguys.startx;
_root.badguys._y = _root.badguys.starty;
_root.platforms._x = _root.platforms.startx;
_root.platforms._y = _root.platforms.starty;
_root.muren._x = _root.muren.startx;
_root.muren._y = _root.muren.starty;
_root.background._x = _root.background.startx;
_root.background._y = _root.background.starty;
_root.dude.super = 0;
_root.dude.overgang = 0;
_root.dude.dood = 0;
_root.dude.state = 1;
_root.dude.meppen = 0;
_root.dude.yspeed = 0;
_root.dude.xspeed = 0;
_root.dude._y = 120;
_root.safe = 0;
if (_root.level == 4) {
_root.gotoAndStop(126);
} else {
_root.gotoAndStop(123);
}
}
function timesUp() {
lives--;
_root.tijdop._visible = true;
_root.dude.dood = 1;
_root.dude.yspeed = 14;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("diesound");
s.setVolume(100);
s.start();
}
}
_root.badguys.gotoAndStop(_root.level);
_root.platforms.gotoAndStop(_root.level);
_root.muren.gotoAndStop(_root.level);
_root.background.gotoAndStop(_root.level);
Instance of Symbol 120 MovieClip "background" in Frame 124
onClipEvent (load) {
startx = _x;
starty = _y;
}
Instance of Symbol 123 MovieClip "muren" in Frame 124
onClipEvent (load) {
startx = _x;
starty = _y;
}
Instance of Symbol 151 MovieClip "platforms" in Frame 124
onClipEvent (load) {
startx = _x;
starty = _y;
}
Instance of Symbol 203 MovieClip "dude" in Frame 124
onClipEvent (load) {
state = 1;
dood = 0;
meppen = 0;
yspeed = 0;
xspeed = 0;
upcount = 0;
super = 0;
overgang = 0;
gemept = 0;
myColor = new Color(this);
colorStart = myColor.getTransform();
}
onClipEvent (enterFrame) {
if (dood == 0) {
if (0 < _root.tijd) {
_root.timecount++;
if (_root.timecount >= 20) {
_root.timecount = 0;
_root.tijd--;
}
} else {
_root.timesUp();
}
_root.mybounds = _root.platforms.getBounds(_root);
_root.bottom = _root.mybounds.yMax;
_root.test = _root.bottom - _y;
if (Key.isDown(Key.LEFT)) {
if (-10 < xspeed) {
xspeed--;
}
_xscale = -100;
} else if (Key.isDown(Key.RIGHT)) {
if (xspeed < 10) {
xspeed++;
}
_xscale = 100;
} else if (0 < xspeed) {
xspeed--;
} else if (xspeed < 0) {
xspeed++;
}
if (xspeed != 0) {
if (0 < xspeed) {
muurcheck = 18 + xspeed;
} else {
muurcheck = -18 + xspeed;
}
if (_root.muren.hitTest(_x + muurcheck, _y - 20, true)) {
xspeed = 0;
}
_root.badguys._x = _root.badguys._x - xspeed;
_root.platforms._x = _root.platforms._x - xspeed;
_root.muren._x = _root.muren._x - xspeed;
_root.background._x = _root.background._x - xspeed;
}
if (0 < meppen) {
meppen--;
}
if ((0 < gemept) && (!Key.isDown(Key.SPACE))) {
gemept--;
}
if ((Key.isDown(Key.SPACE) && (meppen == 0)) && (gemept == 0)) {
meppen = 8;
gemept = 3;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("broomsound");
s.setVolume(100);
s.start();
}
}
if (Key.isDown(Key.UP) && (state == 0)) {
yspeed = 15;
state = 1;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("jumpsound");
s.setVolume(100);
s.start();
}
}
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
if (_root.platforms.hitTest(_x, _y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(_x, (_y - teller) - 1, true)) {
teller++;
}
aa = 1;
while (teller >= aa) {
_root.mybounds = _root.platforms.getBounds(_root);
_root.bottom = _root.mybounds.yMax;
if ((_root.bottom - _y) >= 250) {
_root.badguys._y++;
_root.platforms._y++;
_root.muren._y++;
_root.background._y++;
} else {
_y = (_y-1);
}
aa++;
}
}
if (0 < yspeed) {
aa = 1;
while (yspeed >= aa) {
_root.mybounds = _root.platforms.getBounds(_root);
_root.bottom = _root.mybounds.yMax;
if ((_root.bottom - _y) >= 250) {
_root.badguys._y++;
_root.platforms._y++;
_root.muren._y++;
_root.background._y++;
} else {
_y = (_y-1);
}
aa++;
}
} else if (yspeed < 0) {
aa = 1;
while ((-yspeed) >= aa) {
_root.mybounds = _root.platforms.getBounds(_root);
_root.bottom = _root.mybounds.yMax;
if (250 < (_root.bottom - _y)) {
_root.badguys._y--;
_root.platforms._y--;
_root.muren._y--;
_root.background._y--;
} else {
_y = (_y+1);
}
aa++;
}
}
} else if (state == 0) {
teller = 0;
while (_root.platforms.hitTest(_x, (_y - teller) - 1, true)) {
teller++;
}
aa = 1;
while (teller >= aa) {
_root.mybounds = _root.platforms.getBounds(_root);
_root.bottom = _root.mybounds.yMax;
if ((_root.bottom - _y) >= 250) {
_root.badguys._y++;
_root.platforms._y++;
_root.muren._y++;
_root.background._y++;
} else {
_y = (_y-1);
}
aa++;
}
if (!_root.platforms.hitTest(_x, _y, true)) {
if (_root.platforms.hitTest(_x, _y + 10, true)) {
teller = 1;
while (!_root.platforms.hitTest(_x, _y + teller, true)) {
teller++;
}
aa = 1;
while (teller >= aa) {
_root.mybounds = _root.platforms.getBounds(_root);
_root.bottom = _root.mybounds.yMax;
if ((_root.bottom - _y) >= 250) {
_root.badguys._y--;
_root.platforms._y--;
_root.muren._y--;
_root.background._y--;
} else {
_y = (_y+1);
}
aa++;
}
} else {
state = 1;
}
}
}
if (350 < _y) {
_root.bottomDeath();
}
if (((state == 0) && (xspeed == 0)) && (meppen == 0)) {
this.gotoAndStop(1 + super);
} else if (((state == 0) && (xspeed != 0)) && (meppen == 0)) {
this.gotoAndStop(2 + super);
} else if (((state == 1) && (0 < yspeed)) && (meppen == 0)) {
this.gotoAndStop(3 + super);
} else if (((state == 1) && (yspeed < 0)) && (meppen == 0)) {
this.gotoAndStop(4 + super);
} else if (0 < meppen) {
this.gotoAndStop(5 + super);
}
if (0 < overgang) {
if ((((overgang == 16) || (overgang == 12)) || (overgang == 8)) || (overgang == 4)) {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra + 100;
mycolorTransform.rb = colorStart.rb + 200;
mycolorTransform.ga = colorStart.ra + 100;
mycolorTransform.gb = colorStart.rb + 200;
mycolorTransform.ba = colorStart.ra + 100;
mycolorTransform.bb = colorStart.rb + 200;
myColor.setTransform(mycolorTransform);
} else if ((((overgang == 14) || (overgang == 10)) || (overgang == 6)) || (overgang == 2)) {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra;
mycolorTransform.rb = colorStart.rb;
mycolorTransform.ga = colorStart.ra;
mycolorTransform.gb = colorStart.rb;
mycolorTransform.ba = colorStart.ra;
mycolorTransform.bb = colorStart.rb;
myColor.setTransform(mycolorTransform);
}
overgang--;
}
} else if (dood == 1) {
this.gotoAndStop(6);
if (-20 < yspeed) {
yspeed--;
}
if (600 < _y) {
_root.heksReborn();
}
if (0 < yspeed) {
aa = 1;
while (yspeed >= aa) {
_root.mybounds = _root.platforms.getBounds(_root);
_root.bottom = _root.mybounds.yMax;
if ((_root.bottom - _y) >= 250) {
_root.badguys._y++;
_root.platforms._y++;
_root.muren._y++;
_root.background._y++;
} else {
_y = (_y-1);
}
aa++;
}
} else if (yspeed < 0) {
aa = 1;
while ((-yspeed) >= aa) {
_root.mybounds = _root.platforms.getBounds(_root);
_root.bottom = _root.mybounds.yMax;
if (250 < (_root.bottom - _y)) {
_root.badguys._y--;
_root.platforms._y--;
_root.muren._y--;
_root.background._y--;
} else {
_y = (_y+1);
}
aa++;
}
}
} else if (dood == 2) {
}
}
Instance of Symbol 339 MovieClip "badguys" in Frame 124
onClipEvent (load) {
startx = _x;
starty = _y;
}
Instance of Symbol 360 MovieClip "tijdop" in Frame 124
onClipEvent (load) {
_visible = false;
}
Frame 127
_root.scorea = _root.score + "a";
scorelength = _root.scorea.length;
scorelength--;
a = 0;
while (a < scorelength) {
_root["scorenum" + a] = _root.scorea.substr(a, 1);
if (_root["scorenum" + a] == 0) {
_root["scorenum" + a] = "z";
} else if (_root["scorenum" + a] == 1) {
_root["scorenum" + a] = 7;
} else if (_root["scorenum" + a] == 2) {
_root["scorenum" + a] = 3;
} else if (_root["scorenum" + a] == 3) {
_root["scorenum" + a] = "p";
} else if (_root["scorenum" + a] == 4) {
_root["scorenum" + a] = "j";
} else if (_root["scorenum" + a] == 5) {
_root["scorenum" + a] = 5;
} else if (_root["scorenum" + a] == 6) {
_root["scorenum" + a] = 1;
} else if (_root["scorenum" + a] == 7) {
_root["scorenum" + a] = "t";
} else if (_root["scorenum" + a] == 8) {
_root["scorenum" + a] = "k";
} else if (_root["scorenum" + a] == 9) {
_root["scorenum" + a] = 6;
}
a++;
}
_root.scorecode = ("x" + random(9)) + random(9);
b = scorelength - 1;
while (b >= 0) {
_root.scorecode = _root.scorecode + _root["scorenum" + b];
b--;
}
mynewscore = _root.score;
getURL ("http://www.happytree.nl/games/heks/heksscore.php", "", "POST");
Instance of Symbol 15 MovieClip in Symbol 21 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ploaded = (_root.getBytesLoaded() / totalsize) * 100;
this._xscale = _root.ploaded;
_root.loadingscreen.bouncyloader._x = _root.loadingscreen.bouncyloader.startx + (_root.ploaded * 2);
if (_root._framesloaded == _root._totalframes) {
_root.play();
}
}
onClipEvent (load) {
totalsize = _root.getBytesTotal();
}
Instance of Symbol 20 MovieClip "bouncyloader" in Symbol 21 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
}
Symbol 24 Button
on (release) {
getURL ("http://www.happytree.com", "_blank");
}
Symbol 42 Button
on (release) {
_root.gotoAndStop(123);
}
Symbol 46 Button
on (release) {
_root.helpscreen._visible = true;
}
Symbol 61 MovieClip Frame 1
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
this.gotoAndPlay(3);
_root.pickupBubble();
}
Symbol 61 MovieClip Frame 2
gotoAndPlay (1);
Symbol 61 MovieClip Frame 8
stop();
Symbol 68 Button
on (release) {
_visible = false;
}
Symbol 71 Button
on (release) {
if (_root.soundon == "yes") {
_root.soundon = "no";
_root.onoffclip.gotoAndStop(2);
} else {
_root.soundon = "yes";
_root.onoffclip.gotoAndStop(1);
}
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 93 Button
on (release, keyPress "<Space>") {
_root.gotoAndStop(124);
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
if (this.hitTest(_root.dude) && (_root.dude.state == 0)) {
this.gotoAndPlay(3);
}
Symbol 147 MovieClip Frame 2
gotoAndPlay (1);
Symbol 151 MovieClip Frame 1
stop();
Instance of Symbol 137 MovieClip "paddestoel1" in Symbol 151 MovieClip Frame 2
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
if (!(this.hitTest(_root.dude) && (_root.platforms.hitTest(_root.dude._x, _root.dude._y + 5, true)))) {
moveto = 5;
} else {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
if ((_root.dude._x >= (point.x - 20)) && ((point.x + 20) >= _root.dude._x)) {
moveto = 5;
} else if (_root.dude._x < (point.x - 20)) {
moveto = Math.round((_root.dude._x - (point.x - 40)) / 4);
} else if ((point.x + 20) < _root.dude._x) {
moveto = Math.round((_root.dude._x - (point.x + 20)) / 4) + 5;
}
}
if (moveto < _currentframe) {
_root.background.paddesteel1.gotoAndStop(_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
} else if (_currentframe < moveto) {
_root.background.paddesteel1.gotoAndStop(_currentframe + 1);
this.gotoAndStop(_currentframe + 1);
}
}
Instance of Symbol 141 MovieClip "paddestoel2" in Symbol 151 MovieClip Frame 2
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
if (!(this.hitTest(_root.dude) && (_root.platforms.hitTest(_root.dude._x, _root.dude._y + 5, true)))) {
moveto = 5;
} else {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
if ((_root.dude._x >= (point.x - 20)) && ((point.x + 20) >= _root.dude._x)) {
moveto = 5;
} else if (_root.dude._x < (point.x - 20)) {
moveto = Math.round((_root.dude._x - (point.x - 40)) / 4);
} else if ((point.x + 20) < _root.dude._x) {
moveto = Math.round((_root.dude._x - (point.x + 20)) / 4) + 5;
}
}
if (moveto < _currentframe) {
_root.background.paddesteel2.gotoAndStop(_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
} else if (_currentframe < moveto) {
_root.background.paddesteel2.gotoAndStop(_currentframe + 1);
this.gotoAndStop(_currentframe + 1);
}
}
Instance of Symbol 142 MovieClip "paddestoel3" in Symbol 151 MovieClip Frame 2
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
if (!(this.hitTest(_root.dude) && (_root.platforms.hitTest(_root.dude._x, _root.dude._y + 5, true)))) {
moveto = 5;
} else {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
if ((_root.dude._x >= (point.x - 20)) && ((point.x + 20) >= _root.dude._x)) {
moveto = 5;
} else if (_root.dude._x < (point.x - 20)) {
moveto = Math.round((_root.dude._x - (point.x - 40)) / 4);
} else if ((point.x + 20) < _root.dude._x) {
moveto = Math.round((_root.dude._x - (point.x + 20)) / 4) + 5;
}
}
if (moveto < _currentframe) {
_root.background.paddesteel3.gotoAndStop(_currentframe - 1);
this.gotoAndStop(_currentframe - 1);
} else if (_currentframe < moveto) {
_root.background.paddesteel3.gotoAndStop(_currentframe + 1);
this.gotoAndStop(_currentframe + 1);
}
}
Symbol 196 MovieClip Frame 65
_root.nextLevel();
Symbol 218 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 218 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 218 MovieClip Frame 3
gotoAndPlay (2);
Symbol 218 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 218 MovieClip Frame 9
stop();
Symbol 219 MovieClip Frame 1
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
this.gotoAndPlay(3);
_root.pickupBubble();
}
Symbol 219 MovieClip Frame 2
gotoAndPlay (1);
Symbol 219 MovieClip Frame 8
stop();
Symbol 235 MovieClip Frame 8
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 3
_xscale = 100;
Symbol 250 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -3;
rollend = 0;
rolteller = 0;
Symbol 250 MovieClip Frame 2
rolteller++;
if (30 < rolteller) {
if (0 < xspeed) {
xspeed = 10;
} else {
xspeed = -10;
}
rolteller = 0;
rollend = 1;
this.gotoAndPlay(4);
}
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (((this.hitTest(_root.dude.bezemblok) && (rollend == 0)) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndStop(6);
}
if (_x < (startx - distance)) {
_xscale = -100;
if (rollend == 0) {
xspeed = 3;
} else {
xspeed = 10;
}
} else if (startx < _x) {
_xscale = 100;
if (rollend == 0) {
xspeed = -3;
} else {
xspeed = -10;
}
}
_x = (_x + xspeed);
Symbol 250 MovieClip Frame 3
gotoAndPlay (2);
Symbol 250 MovieClip Frame 4
rolteller++;
if (30 < rolteller) {
if (0 < xspeed) {
xspeed = 3;
} else {
xspeed = -3;
}
rolteller = 0;
rollend = 0;
this.gotoAndPlay(2);
}
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (_x < (startx - distance)) {
_xscale = -100;
if (rollend == 0) {
xspeed = 3;
} else {
xspeed = 10;
}
} else if (startx < _x) {
_xscale = 100;
if (rollend == 0) {
xspeed = -3;
} else {
xspeed = -10;
}
}
_x = (_x + xspeed);
Symbol 250 MovieClip Frame 5
gotoAndPlay (4);
Symbol 250 MovieClip Frame 6
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 268 MovieClip Frame 1
point = new Object();
point2 = new Object();
flying = 0;
flycount = 0;
lifestate = 0;
Symbol 268 MovieClip Frame 2
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (2 < _root.dude.meppen)) && (_root.dude.meppen < 8)) {
_xscale = 100;
lifestate = 1;
point2.x = _root.dude.bezemblok._x;
point2.y = _root.dude.bezemblok._y;
_root.dude.localToGlobal(point2);
_parent.globalToLocal(point2);
_x = point2.x;
_y = point2.y;
_root.score = _root.score + 10;
this.gotoAndStop(6);
}
if (flying == 0) {
if (_root.dude._x < point.x) {
_xscale = -100;
} else {
_xscale = 100;
}
if ((_root.dude._x < (point.x + 100)) && ((point.x - 100) < _root.dude._x)) {
flying = 1;
this.gotoAndPlay(4);
}
}
Symbol 268 MovieClip Frame 3
gotoAndPlay (2);
Symbol 268 MovieClip Frame 4
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (2 < _root.dude.meppen)) && (_root.dude.meppen < 8)) {
_xscale = 100;
lifestate = 1;
point2.x = _root.dude.bezemblok._x;
point2.y = _root.dude.bezemblok._y;
_root.dude.localToGlobal(point2);
_parent.globalToLocal(point2);
_x = point2.x;
_y = point2.y;
_root.score = _root.score + 10;
this.gotoAndStop(6);
}
if (flying == 1) {
flycount++;
if (29 < flycount) {
flycount = 0;
if (_root.dude._x < point.x) {
_xscale = -100;
} else {
_xscale = 100;
}
if (!((_root.dude._x < (point.x + 100)) && ((point.x - 100) < _root.dude._x))) {
flying = 0;
this.gotoAndPlay(2);
}
}
}
Symbol 268 MovieClip Frame 5
gotoAndPlay (4);
Symbol 268 MovieClip Frame 6
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 3
_xscale = 100;
Symbol 270 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 270 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 270 MovieClip Frame 3
gotoAndPlay (2);
Symbol 270 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 270 MovieClip Frame 9
stop();
Symbol 271 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 271 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 271 MovieClip Frame 3
gotoAndPlay (2);
Symbol 271 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 271 MovieClip Frame 9
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 3
_xscale = 100;
Symbol 273 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 273 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 273 MovieClip Frame 3
gotoAndPlay (2);
Symbol 273 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 273 MovieClip Frame 9
stop();
Symbol 274 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 274 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 274 MovieClip Frame 3
gotoAndPlay (2);
Symbol 274 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 274 MovieClip Frame 9
stop();
Symbol 275 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 275 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 275 MovieClip Frame 3
gotoAndPlay (2);
Symbol 275 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 275 MovieClip Frame 9
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 286 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 286 MovieClip Frame 3
gotoAndPlay (2);
Symbol 286 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 286 MovieClip Frame 9
stop();
Symbol 291 MovieClip Frame 1
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
Symbol 291 MovieClip Frame 2
gotoAndPlay (1);
Symbol 292 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 292 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 292 MovieClip Frame 3
gotoAndPlay (2);
Symbol 292 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 292 MovieClip Frame 9
stop();
Symbol 294 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 294 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 294 MovieClip Frame 3
gotoAndPlay (2);
Symbol 294 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 294 MovieClip Frame 9
stop();
Symbol 295 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
Symbol 295 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(4);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 295 MovieClip Frame 3
gotoAndPlay (2);
Symbol 295 MovieClip Frame 4
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 295 MovieClip Frame 9
stop();
Symbol 296 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -3;
rollend = 0;
rolteller = 0;
Symbol 296 MovieClip Frame 2
rolteller++;
if (30 < rolteller) {
if (0 < xspeed) {
xspeed = 10;
} else {
xspeed = -10;
}
rolteller = 0;
rollend = 1;
this.gotoAndPlay(4);
}
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (((this.hitTest(_root.dude.bezemblok) && (rollend == 0)) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndStop(6);
}
if (_x < (startx - distance)) {
_xscale = -100;
if (rollend == 0) {
xspeed = 3;
} else {
xspeed = 10;
}
} else if (startx < _x) {
_xscale = 100;
if (rollend == 0) {
xspeed = -3;
} else {
xspeed = -10;
}
}
_x = (_x + xspeed);
Symbol 296 MovieClip Frame 3
gotoAndPlay (2);
Symbol 296 MovieClip Frame 4
rolteller++;
if (30 < rolteller) {
if (0 < xspeed) {
xspeed = 3;
} else {
xspeed = -3;
}
rolteller = 0;
rollend = 0;
this.gotoAndPlay(2);
}
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (_x < (startx - distance)) {
_xscale = -100;
if (rollend == 0) {
xspeed = 3;
} else {
xspeed = 10;
}
} else if (startx < _x) {
_xscale = 100;
if (rollend == 0) {
xspeed = -3;
} else {
xspeed = -10;
}
}
_x = (_x + xspeed);
Symbol 296 MovieClip Frame 5
gotoAndPlay (4);
Symbol 296 MovieClip Frame 6
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 304 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
overgang = 0;
myColor = new Color(this);
colorStart = myColor.getTransform();
Symbol 304 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
overgang = 16;
this.gotoAndPlay(4);
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 304 MovieClip Frame 3
gotoAndPlay (2);
Symbol 304 MovieClip Frame 4
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) && (overgang == 0)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(6);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
if (0 < overgang) {
if ((((overgang == 16) || (overgang == 12)) || (overgang == 8)) || (overgang == 4)) {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra + 100;
mycolorTransform.rb = colorStart.rb + 200;
mycolorTransform.ga = colorStart.ra + 100;
mycolorTransform.gb = colorStart.rb + 200;
mycolorTransform.ba = colorStart.ra + 100;
mycolorTransform.bb = colorStart.rb + 200;
myColor.setTransform(mycolorTransform);
} else if ((((overgang == 14) || (overgang == 10)) || (overgang == 6)) || (overgang == 2)) {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra;
mycolorTransform.rb = colorStart.rb;
mycolorTransform.ga = colorStart.ra;
mycolorTransform.gb = colorStart.rb;
mycolorTransform.ba = colorStart.ra;
mycolorTransform.bb = colorStart.rb;
myColor.setTransform(mycolorTransform);
}
overgang--;
}
}
Symbol 304 MovieClip Frame 5
gotoAndPlay (4);
Symbol 304 MovieClip Frame 6
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 304 MovieClip Frame 11
stop();
Symbol 305 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -5;
overgang = 0;
myColor = new Color(this);
colorStart = myColor.getTransform();
Symbol 305 MovieClip Frame 2
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
overgang = 16;
this.gotoAndPlay(4);
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
}
Symbol 305 MovieClip Frame 3
gotoAndPlay (2);
Symbol 305 MovieClip Frame 4
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) && (overgang == 0)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndPlay(6);
}
if ((_x < (startx - distance)) || (startx < _x)) {
xspeed = -xspeed;
_xscale = (-_xscale);
}
_x = (_x + xspeed);
if (0 < overgang) {
if ((((overgang == 16) || (overgang == 12)) || (overgang == 8)) || (overgang == 4)) {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra + 100;
mycolorTransform.rb = colorStart.rb + 200;
mycolorTransform.ga = colorStart.ra + 100;
mycolorTransform.gb = colorStart.rb + 200;
mycolorTransform.ba = colorStart.ra + 100;
mycolorTransform.bb = colorStart.rb + 200;
myColor.setTransform(mycolorTransform);
} else if ((((overgang == 14) || (overgang == 10)) || (overgang == 6)) || (overgang == 2)) {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra;
mycolorTransform.rb = colorStart.rb;
mycolorTransform.ga = colorStart.ra;
mycolorTransform.gb = colorStart.rb;
mycolorTransform.ba = colorStart.ra;
mycolorTransform.bb = colorStart.rb;
myColor.setTransform(mycolorTransform);
}
overgang--;
}
}
Symbol 305 MovieClip Frame 5
gotoAndPlay (4);
Symbol 305 MovieClip Frame 6
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 305 MovieClip Frame 11
stop();
Symbol 306 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -3;
rollend = 0;
rolteller = 0;
Symbol 306 MovieClip Frame 2
rolteller++;
if (30 < rolteller) {
if (0 < xspeed) {
xspeed = 10;
} else {
xspeed = -10;
}
rolteller = 0;
rollend = 1;
this.gotoAndPlay(4);
}
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (((this.hitTest(_root.dude.bezemblok) && (rollend == 0)) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndStop(6);
}
if (_x < (startx - distance)) {
_xscale = -100;
if (rollend == 0) {
xspeed = 3;
} else {
xspeed = 10;
}
} else if (startx < _x) {
_xscale = 100;
if (rollend == 0) {
xspeed = -3;
} else {
xspeed = -10;
}
}
_x = (_x + xspeed);
Symbol 306 MovieClip Frame 3
gotoAndPlay (2);
Symbol 306 MovieClip Frame 4
rolteller++;
if (30 < rolteller) {
if (0 < xspeed) {
xspeed = 3;
} else {
xspeed = -3;
}
rolteller = 0;
rollend = 0;
this.gotoAndPlay(2);
}
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (_x < (startx - distance)) {
_xscale = -100;
if (rollend == 0) {
xspeed = 3;
} else {
xspeed = 10;
}
} else if (startx < _x) {
_xscale = 100;
if (rollend == 0) {
xspeed = -3;
} else {
xspeed = -10;
}
}
_x = (_x + xspeed);
Symbol 306 MovieClip Frame 5
gotoAndPlay (4);
Symbol 306 MovieClip Frame 6
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 307 MovieClip Frame 1
lifestate = 0;
startx = _x;
xspeed = -3;
rollend = 0;
rolteller = 0;
Symbol 307 MovieClip Frame 2
rolteller++;
if (30 < rolteller) {
if (0 < xspeed) {
xspeed = 10;
} else {
xspeed = -10;
}
rolteller = 0;
rollend = 1;
this.gotoAndPlay(4);
}
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (((this.hitTest(_root.dude.bezemblok) && (rollend == 0)) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
_xscale = 100;
lifestate = 1;
_root.score = _root.score + 10;
this.gotoAndStop(6);
}
if (_x < (startx - distance)) {
_xscale = -100;
if (rollend == 0) {
xspeed = 3;
} else {
xspeed = 10;
}
} else if (startx < _x) {
_xscale = 100;
if (rollend == 0) {
xspeed = -3;
} else {
xspeed = -10;
}
}
_x = (_x + xspeed);
Symbol 307 MovieClip Frame 3
gotoAndPlay (2);
Symbol 307 MovieClip Frame 4
rolteller++;
if (30 < rolteller) {
if (0 < xspeed) {
xspeed = 3;
} else {
xspeed = -3;
}
rolteller = 0;
rollend = 0;
this.gotoAndPlay(2);
}
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (_x < (startx - distance)) {
_xscale = -100;
if (rollend == 0) {
xspeed = 3;
} else {
xspeed = 10;
}
} else if (startx < _x) {
_xscale = 100;
if (rollend == 0) {
xspeed = -3;
} else {
xspeed = -10;
}
}
_x = (_x + xspeed);
Symbol 307 MovieClip Frame 5
gotoAndPlay (4);
Symbol 307 MovieClip Frame 6
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
Symbol 332 MovieClip Frame 1
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("boomsound");
s.setVolume(100);
s.start();
}
Symbol 333 MovieClip Frame 42
stop();
Instance of Symbol 322 MovieClip in Symbol 334 MovieClip Frame 2
onClipEvent (enterFrame) {
test = _currentframe;
}
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 2
_xscale = 100;
Symbol 339 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 400;
}
Instance of Symbol 220 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.pickupDrankje();
_y = 800;
}
}
Instance of Symbol 236 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
}
}
Instance of Symbol 250 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 300;
}
Instance of Symbol 218 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 400;
}
Instance of Symbol 269 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
}
}
Instance of Symbol 270 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 140;
}
Instance of Symbol 270 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 140;
}
Instance of Symbol 271 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 260;
}
Instance of Symbol 272 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
_xscale = 100;
}
}
}
Instance of Symbol 273 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 460;
}
Instance of Symbol 274 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 360;
}
Instance of Symbol 275 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 210;
}
Instance of Symbol 274 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 360;
}
Instance of Symbol 272 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
_xscale = 100;
}
}
}
Instance of Symbol 272 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
_xscale = 100;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
_root.safe = 1;
_root.safeplatformsx = _root.platforms._x;
_root.safeplatformsy = _root.platforms._y;
_root.safebgx = _root.background._x;
_root.safebgy = _root.background._y;
_root.safebadguysx = _root.badguys._x;
_root.safebadguysy = _root.badguys._y;
_root.safemurenx = _root.muren._x;
_root.safemureny = _root.muren._y;
if ((_root.soundon == "yes") && (_currentframe == 1)) {
s = new Sound();
s.attachSound("safesound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(2);
}
}
Instance of Symbol 286 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 160;
}
Instance of Symbol 272 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
_xscale = 100;
}
}
}
Instance of Symbol 271 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 260;
}
Instance of Symbol 292 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 200;
}
Instance of Symbol 220 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.pickupDrankje();
_y = 800;
}
}
Instance of Symbol 292 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
distance = 200;
}
Instance of Symbol 293 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
_y = 800;
_root.dude.gotoAndStop(15 + _root.level);
_root.dude.dood = 2;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("safesound");
s.setVolume(100);
s.start();
}
}
}
Instance of Symbol 220 MovieClip in Symbol 339 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.pickupDrankje();
_y = 800;
}
}
Instance of Symbol 286 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 160;
}
Instance of Symbol 286 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 160;
}
Instance of Symbol 272 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
_xscale = 100;
}
}
}
Instance of Symbol 294 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 50;
}
Instance of Symbol 272 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
_xscale = 100;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
_root.safe = 1;
_root.safeplatformsx = _root.platforms._x;
_root.safeplatformsy = _root.platforms._y;
_root.safebgx = _root.background._x;
_root.safebgy = _root.background._y;
_root.safebadguysx = _root.badguys._x;
_root.safebadguysy = _root.badguys._y;
_root.safemurenx = _root.muren._x;
_root.safemureny = _root.muren._y;
if ((_root.soundon == "yes") && (_currentframe == 1)) {
s = new Sound();
s.attachSound("safesound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(2);
}
}
Instance of Symbol 272 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
_xscale = 100;
}
}
}
Instance of Symbol 294 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 50;
}
Instance of Symbol 292 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 200;
}
Instance of Symbol 220 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.pickupDrankje();
_y = 800;
}
}
Instance of Symbol 293 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
_y = 800;
_root.dude.gotoAndStop(15 + _root.level);
_root.dude.dood = 2;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("safesound");
s.setVolume(100);
s.start();
}
}
}
Instance of Symbol 286 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 160;
}
Instance of Symbol 286 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 160;
}
Instance of Symbol 286 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 160;
}
Instance of Symbol 295 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 40;
}
Instance of Symbol 286 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 160;
}
Instance of Symbol 296 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 400;
}
Instance of Symbol 250 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 300;
}
Instance of Symbol 304 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 260;
}
Instance of Symbol 305 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 300;
}
Instance of Symbol 304 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 260;
}
Instance of Symbol 304 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 260;
}
Instance of Symbol 306 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 530;
}
Instance of Symbol 307 MovieClip in Symbol 339 MovieClip Frame 2
onClipEvent (load) {
distance = 480;
}
Instance of Symbol 220 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.pickupDrankje();
_y = 800;
}
}
Instance of Symbol 269 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
_root.safe = 1;
_root.safeplatformsx = _root.platforms._x;
_root.safeplatformsy = _root.platforms._y;
_root.safebgx = _root.background._x;
_root.safebgy = _root.background._y;
_root.safebadguysx = _root.badguys._x;
_root.safebadguysy = _root.badguys._y;
_root.safemurenx = _root.muren._x;
_root.safemureny = _root.muren._y;
if ((_root.soundon == "yes") && (_currentframe == 1)) {
s = new Sound();
s.attachSound("safesound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(2);
}
}
Instance of Symbol 294 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
distance = 50;
}
Instance of Symbol 220 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.pickupDrankje();
_y = 800;
}
}
Instance of Symbol 293 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
_y = 800;
_root.dude.gotoAndStop(15 + _root.level);
_root.dude.dood = 2;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("safesound");
s.setVolume(100);
s.start();
}
}
}
Instance of Symbol 270 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
distance = 140;
}
Instance of Symbol 269 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
}
}
Instance of Symbol 269 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
}
}
Instance of Symbol 269 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
}
}
Instance of Symbol 269 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
point = new Object();
popup = 16;
startx = _x;
starty = _y;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(3);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(3);
}
if (1 < popup) {
xspeed = 0;
yspeed = 0;
popup--;
this.gotoAndStop(1);
} else if (popup == 1) {
popup--;
if (_root.dude._x < point.x) {
xspeed = -4;
_xscale = 100;
} else {
xspeed = 4;
_xscale = -100;
}
} else if (popup == 0) {
this.gotoAndStop(2);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
point.x = startx;
point.y = starty;
_parent.localToGlobal(point);
this.gotoAndStop(3);
deadcount++;
if ((7 < deadcount) && (((point.x + 100) < _root.dude._x) || (_root.dude._x < (point.x - 100)))) {
_x = startx;
_y = starty;
popup = 16;
state = 0;
deadcount = 0;
yspeed = 0;
lifestate = 0;
}
}
}
Instance of Symbol 285 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude)) {
_root.safe = 1;
_root.safeplatformsx = _root.platforms._x;
_root.safeplatformsy = _root.platforms._y;
_root.safebgx = _root.background._x;
_root.safebgy = _root.background._y;
_root.safebadguysx = _root.badguys._x;
_root.safebadguysy = _root.badguys._y;
_root.safemurenx = _root.muren._x;
_root.safemureny = _root.muren._y;
if ((_root.soundon == "yes") && (_currentframe == 1)) {
s = new Sound();
s.attachSound("safesound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(2);
}
}
Instance of Symbol 286 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
distance = 160;
}
Instance of Symbol 312 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
orientatie = 0;
gotomove = 10;
point = new Object();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (gotomove == 10) {
if (orientatie == 0) {
if (_root.platforms.hitTest(point.x - 5, point.y, true) && (!_root.muren.hitTest(point.x - 5, point.y - 10, true))) {
xspeed = -5;
yspeed = 0;
_rotation = 0;
} else if (_root.muren.hitTest(point.x - 5, point.y - 10, true)) {
gotomove = 3;
} else {
gotomove = 1;
}
}
if (orientatie == 1) {
if ((_root.muren.hitTest(point.x, point.y + 5, true) && (!_root.platforms.hitTest(point.x, point.y + 5, true))) || (_root.platforms.hitTest(point.x + 20, point.y + 5, true) && (!_root.platforms.hitTest(point.x - 20, point.y + 5, true)))) {
xspeed = 0;
yspeed = 5;
_rotation = 270;
} else if (_root.platforms.hitTest(point.x + 10, point.y + 5, true)) {
gotomove = 0;
} else {
gotomove = 2;
}
}
if (orientatie == 2) {
if (_root.platforms.hitTest(point.x + 5, point.y, true) && (!_root.muren.hitTest(point.x + 5, point.y + 10, true))) {
xspeed = 5;
yspeed = 0;
_rotation = 180;
} else if (_root.muren.hitTest(point.x + 5, point.y + 10, true)) {
gotomove = 1;
} else {
gotomove = 3;
}
}
if (orientatie == 3) {
if ((_root.muren.hitTest(point.x, point.y - 5, true) && (!_root.platforms.hitTest(point.x, point.y - 5, true))) || (_root.platforms.hitTest(point.x - 20, point.y - 5, true) && (!_root.platforms.hitTest(point.x + 20, point.y - 5, true)))) {
xspeed = 0;
yspeed = -5;
_rotation = 90;
} else if (_root.platforms.hitTest(point.x + 10, point.y - 5, true)) {
gotomove = 2;
} else {
gotomove = 0;
}
}
}
if (gotomove != 10) {
if ((gotomove == 0) && (orientatie == 1)) {
_rotation = -45;
orientatie = 0;
xspeed = -5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 0) && (orientatie == 3)) {
_rotation = 45;
orientatie = 0;
xspeed = -5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 1) && (orientatie == 0)) {
_rotation = -45;
orientatie = 1;
xspeed = 0;
yspeed = 5;
gotomove = 10;
}
if ((gotomove == 1) && (orientatie == 2)) {
_rotation = 225;
orientatie = 1;
xspeed = 0;
yspeed = 5;
gotomove = 10;
}
if ((gotomove == 2) && (orientatie == 1)) {
_rotation = 225;
orientatie = 2;
xspeed = 5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 2) && (orientatie == 3)) {
_rotation = 135;
orientatie = 2;
xspeed = 5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 3) && (orientatie == 0)) {
_rotation = 45;
orientatie = 3;
xspeed = 0;
yspeed = -5;
gotomove = 10;
}
if ((gotomove == 3) && (orientatie == 2)) {
_rotation = 135;
orientatie = 3;
xspeed = 0;
yspeed = -5;
gotomove = 10;
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
}
Instance of Symbol 312 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
orientatie = 0;
gotomove = 10;
point = new Object();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (gotomove == 10) {
if (orientatie == 0) {
if (_root.platforms.hitTest(point.x - 5, point.y, true) && (!_root.muren.hitTest(point.x - 5, point.y - 10, true))) {
xspeed = -5;
yspeed = 0;
_rotation = 0;
} else if (_root.muren.hitTest(point.x - 5, point.y - 10, true)) {
gotomove = 3;
} else {
gotomove = 1;
}
}
if (orientatie == 1) {
if ((_root.muren.hitTest(point.x, point.y + 5, true) && (!_root.platforms.hitTest(point.x, point.y + 5, true))) || (_root.platforms.hitTest(point.x + 20, point.y + 5, true) && (!_root.platforms.hitTest(point.x - 20, point.y + 5, true)))) {
xspeed = 0;
yspeed = 5;
_rotation = 270;
} else if (_root.platforms.hitTest(point.x + 10, point.y + 5, true)) {
gotomove = 0;
} else {
gotomove = 2;
}
}
if (orientatie == 2) {
if (_root.platforms.hitTest(point.x + 5, point.y, true) && (!_root.muren.hitTest(point.x + 5, point.y + 10, true))) {
xspeed = 5;
yspeed = 0;
_rotation = 180;
} else if (_root.muren.hitTest(point.x + 5, point.y + 10, true)) {
gotomove = 1;
} else {
gotomove = 3;
}
}
if (orientatie == 3) {
if ((_root.muren.hitTest(point.x, point.y - 5, true) && (!_root.platforms.hitTest(point.x, point.y - 5, true))) || (_root.platforms.hitTest(point.x - 20, point.y - 5, true) && (!_root.platforms.hitTest(point.x + 20, point.y - 5, true)))) {
xspeed = 0;
yspeed = -5;
_rotation = 90;
} else if (_root.platforms.hitTest(point.x + 10, point.y - 5, true)) {
gotomove = 2;
} else {
gotomove = 0;
}
}
}
if (gotomove != 10) {
if ((gotomove == 0) && (orientatie == 1)) {
_rotation = -45;
orientatie = 0;
xspeed = -5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 0) && (orientatie == 3)) {
_rotation = 45;
orientatie = 0;
xspeed = -5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 1) && (orientatie == 0)) {
_rotation = -45;
orientatie = 1;
xspeed = 0;
yspeed = 5;
gotomove = 10;
}
if ((gotomove == 1) && (orientatie == 2)) {
_rotation = 225;
orientatie = 1;
xspeed = 0;
yspeed = 5;
gotomove = 10;
}
if ((gotomove == 2) && (orientatie == 1)) {
_rotation = 225;
orientatie = 2;
xspeed = 5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 2) && (orientatie == 3)) {
_rotation = 135;
orientatie = 2;
xspeed = 5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 3) && (orientatie == 0)) {
_rotation = 45;
orientatie = 3;
xspeed = 0;
yspeed = -5;
gotomove = 10;
}
if ((gotomove == 3) && (orientatie == 2)) {
_rotation = 135;
orientatie = 3;
xspeed = 0;
yspeed = -5;
gotomove = 10;
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
}
Instance of Symbol 312 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
orientatie = 0;
gotomove = 10;
point = new Object();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (gotomove == 10) {
if (orientatie == 0) {
if (_root.platforms.hitTest(point.x - 5, point.y, true) && (!_root.muren.hitTest(point.x - 5, point.y - 10, true))) {
xspeed = -5;
yspeed = 0;
_rotation = 0;
} else if (_root.muren.hitTest(point.x - 5, point.y - 10, true)) {
gotomove = 3;
} else {
gotomove = 1;
}
}
if (orientatie == 1) {
if ((_root.muren.hitTest(point.x, point.y + 5, true) && (!_root.platforms.hitTest(point.x, point.y + 5, true))) || (_root.platforms.hitTest(point.x + 20, point.y + 5, true) && (!_root.platforms.hitTest(point.x - 20, point.y + 5, true)))) {
xspeed = 0;
yspeed = 5;
_rotation = 270;
} else if (_root.platforms.hitTest(point.x + 10, point.y + 5, true)) {
gotomove = 0;
} else {
gotomove = 2;
}
}
if (orientatie == 2) {
if (_root.platforms.hitTest(point.x + 5, point.y, true) && (!_root.muren.hitTest(point.x + 5, point.y + 10, true))) {
xspeed = 5;
yspeed = 0;
_rotation = 180;
} else if (_root.muren.hitTest(point.x + 5, point.y + 10, true)) {
gotomove = 1;
} else {
gotomove = 3;
}
}
if (orientatie == 3) {
if ((_root.muren.hitTest(point.x, point.y - 5, true) && (!_root.platforms.hitTest(point.x, point.y - 5, true))) || (_root.platforms.hitTest(point.x - 20, point.y - 5, true) && (!_root.platforms.hitTest(point.x + 20, point.y - 5, true)))) {
xspeed = 0;
yspeed = -5;
_rotation = 90;
} else if (_root.platforms.hitTest(point.x + 10, point.y - 5, true)) {
gotomove = 2;
} else {
gotomove = 0;
}
}
}
if (gotomove != 10) {
if ((gotomove == 0) && (orientatie == 1)) {
_rotation = -45;
orientatie = 0;
xspeed = -5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 0) && (orientatie == 3)) {
_rotation = 45;
orientatie = 0;
xspeed = -5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 1) && (orientatie == 0)) {
_rotation = -45;
orientatie = 1;
xspeed = 0;
yspeed = 5;
gotomove = 10;
}
if ((gotomove == 1) && (orientatie == 2)) {
_rotation = 225;
orientatie = 1;
xspeed = 0;
yspeed = 5;
gotomove = 10;
}
if ((gotomove == 2) && (orientatie == 1)) {
_rotation = 225;
orientatie = 2;
xspeed = 5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 2) && (orientatie == 3)) {
_rotation = 135;
orientatie = 2;
xspeed = 5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 3) && (orientatie == 0)) {
_rotation = 45;
orientatie = 3;
xspeed = 0;
yspeed = -5;
gotomove = 10;
}
if ((gotomove == 3) && (orientatie == 2)) {
_rotation = 135;
orientatie = 3;
xspeed = 0;
yspeed = -5;
gotomove = 10;
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
}
Instance of Symbol 312 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
orientatie = 0;
gotomove = 10;
point = new Object();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (gotomove == 10) {
if (orientatie == 0) {
if (_root.platforms.hitTest(point.x - 5, point.y, true) && (!_root.muren.hitTest(point.x - 5, point.y - 10, true))) {
xspeed = -5;
yspeed = 0;
_rotation = 0;
} else if (_root.muren.hitTest(point.x - 5, point.y - 10, true)) {
gotomove = 3;
} else {
gotomove = 1;
}
}
if (orientatie == 1) {
if ((_root.muren.hitTest(point.x, point.y + 5, true) && (!_root.platforms.hitTest(point.x, point.y + 5, true))) || (_root.platforms.hitTest(point.x + 20, point.y + 5, true) && (!_root.platforms.hitTest(point.x - 20, point.y + 5, true)))) {
xspeed = 0;
yspeed = 5;
_rotation = 270;
} else if (_root.platforms.hitTest(point.x + 10, point.y + 5, true)) {
gotomove = 0;
} else {
gotomove = 2;
}
}
if (orientatie == 2) {
if (_root.platforms.hitTest(point.x + 5, point.y, true) && (!_root.muren.hitTest(point.x + 5, point.y + 10, true))) {
xspeed = 5;
yspeed = 0;
_rotation = 180;
} else if (_root.muren.hitTest(point.x + 5, point.y + 10, true)) {
gotomove = 1;
} else {
gotomove = 3;
}
}
if (orientatie == 3) {
if ((_root.muren.hitTest(point.x, point.y - 5, true) && (!_root.platforms.hitTest(point.x, point.y - 5, true))) || (_root.platforms.hitTest(point.x - 20, point.y - 5, true) && (!_root.platforms.hitTest(point.x + 20, point.y - 5, true)))) {
xspeed = 0;
yspeed = -5;
_rotation = 90;
} else if (_root.platforms.hitTest(point.x + 10, point.y - 5, true)) {
gotomove = 2;
} else {
gotomove = 0;
}
}
}
if (gotomove != 10) {
if ((gotomove == 0) && (orientatie == 1)) {
_rotation = -45;
orientatie = 0;
xspeed = -5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 0) && (orientatie == 3)) {
_rotation = 45;
orientatie = 0;
xspeed = -5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 1) && (orientatie == 0)) {
_rotation = -45;
orientatie = 1;
xspeed = 0;
yspeed = 5;
gotomove = 10;
}
if ((gotomove == 1) && (orientatie == 2)) {
_rotation = 225;
orientatie = 1;
xspeed = 0;
yspeed = 5;
gotomove = 10;
}
if ((gotomove == 2) && (orientatie == 1)) {
_rotation = 225;
orientatie = 2;
xspeed = 5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 2) && (orientatie == 3)) {
_rotation = 135;
orientatie = 2;
xspeed = 5;
yspeed = 0;
gotomove = 10;
}
if ((gotomove == 3) && (orientatie == 0)) {
_rotation = 45;
orientatie = 3;
xspeed = 0;
yspeed = -5;
gotomove = 10;
}
if ((gotomove == 3) && (orientatie == 2)) {
_rotation = 135;
orientatie = 3;
xspeed = 0;
yspeed = -5;
gotomove = 10;
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
}
Instance of Symbol 334 MovieClip in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
lifestate = 0;
deathcount = 0;
draakmove = 1;
movetime = 12;
_root.draaklife = 5;
overgang = 0;
this.gotoAndStop(draakmove);
myColor = new Color(this);
colorStart = myColor.getTransform();
point2 = new Object();
}
onClipEvent (enterFrame) {
if (lifestate == 0) {
point2.x = _root.dude.bezemblok._x;
point2.y = _root.dude.bezemblok._y;
_root.dude.localToGlobal(point2);
if (this.hitTest(_root.dude._x, _root.dude._y - 20, true) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (((this.hitTest(point2.x, point2.y, true) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) && (overgang == 0)) {
_root.draaklife--;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
if (0 >= _root.draaklife) {
lifestate = 1;
}
overgang = 16;
}
if (0 < movetime) {
movetime--;
} else {
if (draakmove == 1) {
draakmove = random(3) + 2;
} else {
draakmove = random(4) + 1;
}
if ((draakmove == 4) && (_root.badguys.rupsdraak.lifestate == 0)) {
draakmove = 1;
}
if (draakmove == 1) {
movetime = 12;
} else if (draakmove == 2) {
movetime = 28;
} else if (draakmove == 3) {
movetime = 25;
} else if (draakmove == 4) {
movetime = 51;
}
this.gotoAndStop(draakmove);
}
if ((draakmove == 3) && (movetime == 15)) {
_root.badguys.fireball._x = _x - 100;
_root.badguys.fireball._y = _y + 10;
}
if ((draakmove == 4) && (movetime == 32)) {
_root.badguys.rupsdraak._x = _x - 95;
_root.badguys.rupsdraak._y = _y - 160;
_root.badguys.rupsdraak.state = 0;
_root.badguys.rupsdraak.yspeed = 0;
_root.badguys.rupsdraak.xspeed = -4;
_root.badguys.rupsdraak.lifestate = 0;
_root.badguys.rupsdraak.deadcount = 0;
_root.badguys.rupsdraak.gotoAndStop(1);
}
if (0 < overgang) {
if ((((overgang == 16) || (overgang == 12)) || (overgang == 8)) || (overgang == 4)) {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra + 100;
mycolorTransform.rb = colorStart.rb + 200;
mycolorTransform.ga = colorStart.ra + 100;
mycolorTransform.gb = colorStart.rb + 200;
mycolorTransform.ba = colorStart.ra + 100;
mycolorTransform.bb = colorStart.rb + 200;
myColor.setTransform(mycolorTransform);
} else if ((((overgang == 14) || (overgang == 10)) || (overgang == 6)) || (overgang == 2)) {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra;
mycolorTransform.rb = colorStart.rb;
mycolorTransform.ga = colorStart.ra;
mycolorTransform.gb = colorStart.rb;
mycolorTransform.ba = colorStart.ra;
mycolorTransform.bb = colorStart.rb;
myColor.setTransform(mycolorTransform);
}
overgang--;
}
} else {
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra;
mycolorTransform.rb = colorStart.rb;
mycolorTransform.ga = colorStart.ra;
mycolorTransform.gb = colorStart.rb;
mycolorTransform.ba = colorStart.ra;
mycolorTransform.bb = colorStart.rb;
myColor.setTransform(mycolorTransform);
this.gotoAndStop(5);
deathcount++;
if (deathcount == 41) {
_y = (_y + 1000);
}
}
}
Instance of Symbol 337 MovieClip "fireball" in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
startx = _x;
starty = _y;
}
onClipEvent (enterFrame) {
_x = (_x - 14);
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if (_x < (startx - 700)) {
_x = startx;
_y = starty;
}
}
Instance of Symbol 338 MovieClip "rupsdraak" in Symbol 339 MovieClip Frame 3
onClipEvent (load) {
startx = _x;
starty = _y;
state = 0;
yspeed = 0;
xspeed = -4;
deadcount = 0;
lifestate = 0;
point = new Object();
}
onClipEvent (enterFrame) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (lifestate == 0) {
if (this.hitTest(_root.dude.hitblok) && (_root.dude.dood == 0)) {
_root.getHit();
}
if ((this.hitTest(_root.dude.bezemblok) && (3 < _root.dude.meppen)) && (_root.dude.meppen < 7)) {
lifestate = 1;
_root.score = _root.score + 10;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("hitsound");
s.setVolume(100);
s.start();
}
this.gotoAndStop(2);
}
if (550 < point.y) {
lifestate = 1;
this.gotoAndStop(2);
}
this.gotoAndStop(1);
if (state == 1) {
if (-20 < yspeed) {
yspeed--;
}
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (_root.platforms.hitTest(point.x, point.y, true) && (0 >= yspeed)) {
state = 0;
yspeed = 0;
teller = 0;
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
}
} else if (state == 0) {
teller = 0;
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
while (_root.platforms.hitTest(point.x, (point.y - teller) - 1, true)) {
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
teller++;
}
_y = (_y - teller);
point.x = this._x;
point.y = this._y;
_parent.localToGlobal(point);
if (!_root.platforms.hitTest(point.x, point.y, true)) {
state = 1;
}
}
_x = (_x + xspeed);
_y = (_y - yspeed);
} else {
this.gotoAndStop(2);
if (7 < deadcount) {
_x = startx;
_y = starty;
state = 0;
yspeed = 0;
} else {
deadcount++;
}
}
}
Symbol 371 Button
on (release) {
if ((0 < _root.username.length) && (0 < _root.useremail.length)) {
_root.gotoAndStop(127);
}
}
Symbol 381 Button
on (release) {
_root.gotoAndStop(122);
}