Frame 1
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
stop();
} else {
play();
}
_root.attachMovie("ADBALK", "ADBALK", 9999999);
_root.ADBALK._x = 0;
_root.ADBALK._y = 400;
Instance of Symbol 341 MovieClip "loadbar" in Frame 1
onClipEvent (load) {
beginloaded = _root.getBytesLoaded();
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
total = _root.getBytesTotal() - beginloaded;
loaded = _root.getBytesLoaded() - beginloaded;
getal = (loaded * 100) / total;
this.loadmask._x = -212 + (212 * (getal / 100));
_root.getal.text = getal;
if (total == loaded) {
_root.play();
}
}
Instance of Symbol 120 MovieClip [sub] in Frame 1
onClipEvent (load) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this._visible = false;
}
}
Instance of Symbol 344 MovieClip in Frame 1
onClipEvent (load) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this._visible = false;
}
}
Frame 2
stop();
stop();
Instance of Symbol 347 MovieClip in Frame 2
onClipEvent (load) {
this._alpha = 0;
this.stat = 0;
this.teller = 0;
this.onRelease = function () {
getURL ("http://www.happytree.nl/", "_blank");
};
}
onClipEvent (enterFrame) {
if (_root.logoplayed) {
this.stat = 2;
}
switch (this.stat) {
case 0 :
this._alpha = this._alpha + 3;
if (this._alpha >= 100) {
this.stat++;
this._alpha = 100;
}
break;
case 1 :
this.teller++;
if (this.teller > 50) {
this.stat++;
}
break;
case 2 :
this._alpha = this._alpha - 3;
if (this._alpha > 0) {
break;
}
this._alpha = 0;
_root.logoplayed = true;
_root.play();
}
}
Frame 7
play();
Frame 8
function init_playerscript() {
getdepth = _root.level.player.getDepth();
if (_root.allesterren) {
_root.level.attachMovie("sub2", "player", getdepth);
}
_root.level.player._x = _root.level[_root.gamevars.beginpos]._x;
_root.level.player._y = _root.level[_root.gamevars.beginpos]._y;
_root.level.player.massa = 1;
_root.level.player.thrust = 0.8;
_root.level.player.decay = 0.97;
_root.level.player.xSpeed = 0;
_root.level.player.ySpeed = 0;
_root.level.player.maxSpeed = 5;
_root.level.player.rotthrust = 2;
_root.level.player.rotdecay = 0.85;
_root.level.player.rotspeed = 0;
_root.level.player.rotmax = 13;
_root.level.player.xd = 0;
_root.level.player.yd = 0;
_root.level.player.punt_draaix = _root.level.player._x;
_root.level.player.punt_draaiy = _root.level.player._y;
_root.level.player.middenstuk._rotation = -_root.gamevars.rotatie;
_root.level.player.framegetal = 1;
_root.level.player.luchtbelteller = 30;
_root.level.player.luchtbelnummer = 50;
_root.level.player.inlucht = 0;
_root.level.player.binlucht = 0;
_root.level.player.diameter = 20;
_root.level.player.turboteller = 0;
_root.level.player.turbo._alpha = 0;
_root.level.player.spacevorig = 0;
_root.level.player.spacetime = 0;
_root.level.player.spacecase = 0;
_root.level.player.keysoundteller = 0;
_root.level.player.speelscript = function () {
if (_root.acces) {
if (_root.keys.bevest) {
this.spacetime++;
} else {
this.spacevorig = this.spacetime;
this.spacetime = 0;
}
switch (this.spacecase) {
case 0 :
if ((this.spacevorig <= 10) && (this.spacevorig > 0)) {
this.spacecase = 1;
}
if (this.spacetime > 20) {
this.spacecase = 2;
}
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed * (this.decay / 1.3);
this.ySpeed = this.ySpeed * (this.decay / 1.3);
}
this.rotspeed = this.rotspeed * (this.rotdecay / 2);
break;
case 1 :
if ((this.spacevorig <= 10) && (this.spacevorig > 0)) {
this.spacecase = 0;
}
if (this.spacetime > 20) {
this.spacecase = 2;
}
this.rotspeed = this.rotspeed + (this.rotthrust / 2);
this.punt_draai._x = this.punt_draai._x + 2;
if (rotspeed > rotmax) {
this.rotspeed = this.rotmax;
}
this.rotspeed = this.rotspeed * this.rotdecay;
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed * (this.decay / 2);
this.ySpeed = this.ySpeed * (this.decay / 2);
}
break;
case 2 :
if (this.spacetime == 0) {
this.spacecase = 0;
}
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed + ((this.thrust * Math.sin(this._rotation * (Math.PI/180))) * 1.5);
this.ySpeed = this.ySpeed + ((this.thrust * Math.cos(this._rotation * (Math.PI/180))) * 1.5);
} else if (_root.level.grond.hitTest(this._x + _root.level._x, ((this._y + this.diameter) + 5) + _root.level._y, true)) {
this.xSpeed = this.xSpeed + ((this.thrust / 4) * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + ((this.thrust / 4) * Math.cos(this._rotation * (Math.PI/180)));
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.95;
this.ySpeed = this.ySpeed * 0.95;
}
}
this.rotspeed = this.rotspeed * (this.rotdecay / 2);
}
this.keysoundteller++;
if (_root.keys.ent && (this.keysoundteller > 10)) {
this.keysoundteller = 0;
if (_root.geluidon) {
_root.geluidon = false;
_root.minterface.geluid_button.gotoAndStop(2);
} else {
_root.geluidon = true;
_root.startgeluid();
_root.minterface.geluid_button.gotoAndStop(1);
}
}
if (_root.keys.back && (!_root.inmenu)) {
_root.exit_level();
}
}
if (_root.keys.back && (_root.inmenu)) {
_root.acces = true;
_root.exit_level();
}
if (!_root.acces) {
if (_root.keys.rechts) {
this.rotspeed = this.rotspeed + this.rotthrust;
this.punt_draai._x = this.punt_draai._x + 2;
}
if (_root.keys.links) {
this.rotspeed = this.rotspeed - this.rotthrust;
this.punt_draai._x = this.punt_draai._x - 2;
}
if (rotspeed > rotmax) {
this.rotspeed = this.rotmax;
}
this.rotspeed = this.rotspeed * this.rotdecay;
}
this._rotation = this._rotation + this.rotspeed;
this.punt_draaix = this.punt_draaix + ((this.xd = this.xd + ((this._x - this.punt_draaix) / 200)));
this.punt_draaiy = this.punt_draaiy + ((this.yd = this.yd + ((this._y - this.punt_draaiy) / 300)));
this.yd = this.yd * 0.95;
this.xd = this.xd * 0.95;
this.middenstuk._rotation = (-this._rotation) + (0.3 * (-(this._x - this.punt_draaix)));
this.wiel1._rotation = -8 * this.middenstuk._rotation;
this.wiel2._rotation = (-8 * this.middenstuk._rotation) + 90;
this.wiel3._rotation = (-8 * this.middenstuk._rotation) + 180;
this.wiel4._rotation = (-8 * this.middenstuk._rotation) + 270;
if (!_root.acces) {
if (_root.keys.bevest) {
if (_root.level.player.turboteller < -10) {
_root.level.player.turboteller = 6;
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed + ((this.thrust * 3) * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + ((this.thrust * 3) * Math.cos(this._rotation * (Math.PI/180)));
}
}
this.framespeed = 16;
} else if (this.maxSpeed > 5.1) {
this.maxSpeed = this.maxSpeed - 0.1;
}
_root.level.player.turboteller--;
if (_root.level.player.turboteller >= 0) {
this.turbo._alpha = (this.speed * 100) / 18;
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed + (this.thrust * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + (this.thrust * Math.cos(this._rotation * (Math.PI/180)));
}
} else {
this.turbo._alpha = this.turbo._alpha - 5;
if (this.turbo._alpha <= 0) {
this.turbo._alpha = 0;
}
}
}
if (_root.keys.omhoog) {
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed + (this.thrust * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + (this.thrust * Math.cos(this._rotation * (Math.PI/180)));
} else if (_root.level.grond.hitTest(this._x + _root.level._x, ((this._y + this.diameter) + 5) + _root.level._y, true)) {
this.xSpeed = this.xSpeed + ((this.thrust / 4) * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + ((this.thrust / 4) * Math.cos(this._rotation * (Math.PI/180)));
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.95;
this.ySpeed = this.ySpeed * 0.95;
}
}
} else if (_root.keys.omlaag) {
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed - (this.thrust * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed - (this.thrust * Math.cos(this._rotation * (Math.PI/180)));
this.flames._visible = 1;
}
} else if ((this.inlucht == 0) && (!_root.acces)) {
this.xSpeed = this.xSpeed * this.decay;
this.ySpeed = this.ySpeed * this.decay;
}
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.inlucht == 0) {
if (this.speed > this.maxSpeed) {
this.xSpeed = this.xSpeed * 0.92;
this.ySpeed = this.ySpeed * 0.92;
}
}
if (Math.round(this.speed) == 0) {
this.framespeed = 1;
}
if (Math.round(this.speed) == 1) {
this.framespeed = 2;
}
if (Math.round(this.speed) == 2) {
this.framespeed = 3;
}
if (Math.round(this.speed) == 3) {
this.framespeed = 4;
}
if (Math.round(this.speed) == 4) {
this.framespeed = 6;
}
this.framegetal = this.framegetal + this.framespeed;
if (this.framegetal > 20) {
this.framegetal = this.framegetal - 20;
}
this.rotor.gotoAndStop(this.framegetal);
this._y = this._y - this.ySpeed;
this._x = this._x + this.xSpeed;
this.luchtbelteller = this.luchtbelteller - this.framespeed;
if (this.luchtbelteller < 0) {
this.luchtbelteller = 20;
if (this.inlucht == 0) {
if (_root.level.lucht.hitTest((this._x + _root.level._x) - (Math.sin(this._rotation * (Math.PI/180)) * ((55 + random(20)) - 10)), (this._y + _root.level._y) + (Math.cos(this._rotation * (Math.PI/180)) * ((55 + random(20)) - 10)), true)) {
} else {
_root.bobble_geluid();
_root.attachMovie("luchtbel", "bel" + this.luchtbelnummer, this.luchtbelnummer + 100);
_root["bel" + this.luchtbelnummer]._x = (this._x + _root.level._x) - (Math.sin(((this._rotation + random(10)) - 5) * (Math.PI/180)) * ((this.diameter + random(20)) + 10));
_root["bel" + this.luchtbelnummer]._y = (this._y + _root.level._y) + (Math.cos(((this._rotation + random(10)) - 5) * (Math.PI/180)) * ((this.diameter + random(20)) + 10));
_root["bel" + this.luchtbelnummer]._alpha = 50;
_root["bel" + this.luchtbelnummer]._xscale = (_root["bel" + this.luchtbelnummer]._yscale = random(50) + 50);
_root["bel" + this.luchtbelnummer].speed = _root["bel" + this.luchtbelnummer]._xscale / 20;
_root["bel" + this.luchtbelnummer].onEnterFrame = function () {
this._y = this._y - this.speed;
this.speed = this.speed + 0.3;
if (((this._y < 0) || (_root.level.voorrand.hitTest(this._x, this._y - 5, true))) || (!_root.luchtbeltoegestaan)) {
this.removeMovieClip();
}
};
this.luchtbelnummer = this.luchtbelnummer + 1;
if (this.luchtbelnummer > 100) {
this.luchtbelnummer = 50;
}
}
}
}
this.collisionx = 0;
this.collisiony = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this.xSpeed = this.xSpeed - 1;
this._x = this._x - 1;
}
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
trace("kom ik");
this.collisionx = 1;
this.xSpeed = this.xSpeed + 1;
this._x = this._x + 1;
}
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this.ySpeed = this.ySpeed + 1;
this._y = this._y - 1;
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.xSpeed = this.xSpeed + (0.1 * Math.sin(_rotation * (Math.PI/180)));
}
}
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this.ySpeed = this.ySpeed - 1;
this._y = this._y + 1;
}
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.ySpeed >= 0) {
this.ySpeed = this.ySpeed - 0.4;
} else if (this.ySpeed < 0) {
this.ySpeed = this.ySpeed - 0.4;
}
this.inlucht = 1;
} else {
this.inlucht = 0;
}
if (this.binlucht != this.inlucht) {
if (this.inlucht == 1) {
if ((this.ySpeed > 1) || (this.ySpeed < -1)) {
if ((this.ySpeed > 3) || ((this.ySpeed < -3) && (_root.geluidon))) {
_root.sound_plons.start(0, 1);
getalvolume = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (getalvolume > 100) {
getalvolume = 100;
}
_root.sound_plons.setVolume(getalvolume);
}
nr = getfreedepth();
_root.level.attachMovie("splash", "watersplash" + nr, nr);
_root.level["watersplash" + nr]._x = this._x;
_root.level["watersplash" + nr]._y = this._y;
while (!_root.level.voorrand.hitTest(_root.level["watersplash" + nr]._x + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._y = _root.level["watersplash" + nr]._y + 1;
}
_root.level["watersplash" + nr]._yscale = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x + 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x + 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._x = _root.level["watersplash" + nr]._x - 1;
}
}
if (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x - 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x - 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._x = _root.level["watersplash" + nr]._x + 1;
}
}
}
}
if (this.inlucht == 0) {
this.ySpeed = this.ySpeed / 1.3;
if ((this.ySpeed > 1) || (this.ySpeed < -1)) {
if ((this.ySpeed > 3) || ((this.ySpeed < -3) && (_root.geluidon))) {
_root.sound_plons2.start(0, 1);
getalvolume = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (getalvolume > 100) {
getalvolume = 100;
}
_root.sound_plons2.setVolume(getalvolume);
}
nr = getfreedepth();
_root.level.attachMovie("splashs", "watersplashs" + nr, nr);
_root.level["watersplashs" + nr]._x = this._x;
_root.level["watersplashs" + nr]._y = this._y + this.diameter;
_root.level["watersplashs" + nr]._yscale = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
while (_root.level.voorrand.hitTest(_root.level["watersplashs" + nr]._x + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._y = _root.level["watersplashs" + nr]._y - 1;
}
if (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x + 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x + 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._x = _root.level["watersplashs" + nr]._x - 1;
}
}
if (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x - 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x - 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._x = _root.level["watersplashs" + nr]._x + 1;
}
}
}
}
}
this.binlucht = this.inlucht;
_root.musicvolchange_geluid();
j = 0;
while (j < _root.gamevars.levelobjects.length) {
if (this.hitTest(_root.level[_root.gamevars.levelobjects[j][0]])) {
switch (_root.gamevars.levelobjects[j][1]) {
case "mapchange" :
_root.init_level(_root.gamevars.levelobjects[j][2], _root.gamevars.levelobjects[j][3], _root.gamevars.levelobjects[j][4], _root.gamevars.levelobjects[j][5]);
break;
case "item" :
if (_root.gamevars.levelobjects[j][2] == "star") {
_root.starArray[_root.gamevars.levelobjects[j][4]] = true;
trace(_root.gamevars.levelobjects[j][4]);
_root.level[_root.gamevars.levelobjects[j][0]]._alpha = 0;
} else if (_root.iteminvname != _root.gamevars.levelobjects[j][2]) {
_root.iteminv = _root.gamevars.levelobjects[j][3];
_root.iteminvname = _root.gamevars.levelobjects[j][2];
_root.level[_root.gamevars.levelobjects[j][0]]._alpha = 0;
_root.level[_root.gamevars.levelobjects[j][0]]._visible = false;
if (_root.geluidon) {
_root.sound_item.start(0, 1);
}
}
break;
case "switch" :
if ((_root.gamevars.levelobjects[j][2] == _root.iteminvname) || (_root.gamevars.levelobjects[j][2] == "")) {
trace(_root.level.grond[_root.gamevars.levelobjects[j][3]].done);
if ((_root.gamevars.levelobjects[j][2] != "") && (_root.level.grond[_root.gamevars.levelobjects[j][3]].done == false)) {
_root.iteminv = "";
_root.iteminvname = "";
}
_root.init_door(_root.gamevars.levelobjects[j][3], _root.gamevars.levelobjects[j][4]);
}
break;
case "tekst" :
if (_root.level[_root.gamevars.levelobjects[j][0]].done) {
break;
}
_root.level[_root.gamevars.levelobjects[j][0]].tekstScript();
if (!_root.gamevars.levelobjects[j][2]) {
break;
}
_root.level[_root.gamevars.levelobjects[j][0]].done = true;
}
}
if (!(_root.gamevars.levelobjects[j][1] === "item")) {
} else if ((_root.iteminvname != _root.gamevars.levelobjects[j][2]) && (_root.gamevars.levelobjects[j][2] != "star")) {
if (_root.level[_root.gamevars.levelobjects[j][0]]._alpha < 100) {
_root.level[_root.gamevars.levelobjects[j][0]]._alpha = _root.level[_root.gamevars.levelobjects[j][0]]._alpha + 2.5;
_root.level[_root.gamevars.levelobjects[j][0]]._visible = true;
}
}
j++;
}
_root.iteminterface();
};
}
function checkkeys() {
if (Key.isDown(37)) {
_root.keys.links = true;
_root.keys.anykey = true;
}
if (Key.isDown(39)) {
_root.keys.rechts = true;
_root.keys.anykey = true;
}
if (Key.isDown(38)) {
_root.keys.omhoog = true;
_root.keys.anykey = true;
}
if (Key.isDown(40)) {
_root.keys.omlaag = true;
_root.keys.anykey = true;
}
if (Key.isDown(32)) {
_root.keys.bevest = true;
_root.keys.anykey = true;
}
if (Key.isDown(17)) {
_root.keys.cancl = true;
_root.keys.anykey = true;
}
if (Key.isDown(13)) {
_root.keys.ent = true;
_root.keys.anykey = true;
}
if (Key.isDown(8)) {
_root.keys.back = true;
_root.keys.anykey = true;
}
}
function setkeysfalse() {
_root.keys.links = false;
_root.keys.rechts = false;
_root.keys.omhoog = false;
_root.keys.omlaag = false;
_root.keys.bevest = false;
_root.keys.cancl = false;
_root.keys.ent = false;
_root.keys.back = false;
_root.keys.anykey = false;
}
function init_level(levelnaam, beginpos, rotatie, muziekstuk) {
_root.vorigmusic = _root.gamevars.muzieknummer;
_root.gamevars = new Object();
_root.gamevars.levelnaam = levelnaam;
_root.gamevars.beginpos = beginpos;
_root.gamevars.rotatie = rotatie;
_root.gamevars.levelchange = 1;
_root.gamevars.vorigemuziek = _root.gamevars.muzieknummer;
_root.gamevars.muzieknummer = muziekstuk;
_root.gamestat = "change";
_root.attachMovie("levelswitchen", "levelswitch", 1000);
_root.attachMovie("tekstvak", "tekstvak", 990);
_root.tekstvak._visible = false;
_root.tekstvak._x = 18;
_root.tekstvak._y = 310;
_root.tekstvak.actief = false;
_root.tekstregels = [];
_root.levelswitch._x = -775;
_root.levelswitch._y = 200;
_root.itemsarray = [];
_root.doorsarray = [];
freedepth = 801;
freeitemdepth = 100;
}
function init_levelchange() {
_root.gamevars.levelobjects = [];
_root.attachMovie(_root.gamevars.levelnaam, "level", 1);
_root.attachMovie("inventory", "inventory", 2);
_root.attachMovie("star_inventory", "star_inventory", 3);
_root.star_inventory._x = 46.4;
_root.star_inventory._y = 45.5;
_root.star_inventory._visible = false;
_root.minterface._visible = false;
_root.inventory._x = 504.5;
_root.inventory._y = 45.5;
_root.level.voorrand.swapDepths(200);
_root.level.levelscript = function () {
this._x = this._x + ((((_root.level.player._x * -1) + (stageh / 2)) - this._x) / 10);
this._y = this._y + ((((_root.level.player._y * -1) + (stagev / 2)) - this._y) / 10);
nux = _root.level.xmax - stageh;
if ((-nux) > this._x) {
this._x = -nux;
}
if (this._x > _root.level.xmin) {
this._x = _root.level.xmin;
}
nuy = _root.level.ymax - stagev;
if ((-nuy) > this._y) {
this._y = -nuy;
}
if (this._y > _root.level.ymin) {
this._y = _root.level.ymin;
}
};
_root.init_playerscript();
_root.level.player._rotation = _root.gamevars.rotatie;
_root.level._x = (_root.level.player._x * -1) + (stageh / 2);
_root.level._y = (_root.level.player._y * -1) + (stagev / 2);
_root.gamevars.levelinit = 2;
}
function init_background(backgroundnaam) {
_root.attachMovie(backgroundnaam, "background1", 0);
}
function getfreedepth() {
freedepth++;
if (freedepth >= 1000) {
freedepth = 801;
}
return(freedepth);
}
function getfreeitemdepth() {
freeitemdepth++;
if (freeitemdepth >= 199) {
freeitemdepth = 100;
}
return(freeitemdepth);
}
function trilllevel(uitslag) {
if (uitslagpos) {
uitslagpos = false;
_root.level._x = _root.level._x + random(uitslag);
_root.level._y = _root.level._y + random(uitslag);
} else {
uitslagpos = true;
_root.level._x = _root.level._x + (-random(uitslag));
_root.level._y = _root.level._y + (-random(uitslag));
}
}
function exit_level() {
luchtbeltoegestaan = false;
_root.level.removeMovieClip();
_root.star_inventory.removeMovieClip();
_root.minterface.removeMovieClip();
_root.inventory.removeMovieClip();
_root.trefoundMC.removeMovieClip();
_root.tekstvak.removeMovieClip();
_root.background1.removeMovieClip();
_root.sound_bobble.stop();
_root.sound_music.stop();
_root.sound_rock.stop();
_root.sound_bobble.stop();
_root.sound_plons.stop();
_root.sound_plons2.stop();
_root.sound_item.stop();
_root.play();
}
function init_item(type, naam, xpos, ypos, diameter, extrapow, pickup, massa, accgewicht, botsdemp) {
if ((type == "star") && (_root.starArray[diameter])) {
trace("heb ik al gehad");
} else {
nummer = getfreeitemdepth();
_root.level.attachMovie(type, "item" + nummer, nummer);
_root.itemsarray.push(_root.level["item" + nummer]._name);
_root.level["item" + nummer]._x = xpos;
_root.level["item" + nummer]._y = ypos;
_root.level["item" + nummer].thrust = 1;
_root.level["item" + nummer].decay = 0.98;
_root.level["item" + nummer].maxSpeed = 10;
_root.level["item" + nummer].xSpeed = 0;
_root.level["item" + nummer].ySpeed = 0;
_root.level["item" + nummer]._visible = 1;
_root.level["item" + nummer].extrapower = 0.1;
_root.level["item" + nummer].accgewicht = accgewicht;
_root.level["item" + nummer].inlucht = 0;
_root.level["item" + nummer].binlucht = 0;
_root.level["item" + nummer].diameter = diameter;
_root.level["item" + nummer].rotator = 0;
_root.level["item" + nummer].balextra._visible = 1;
_root.level["item" + nummer].pickup = pickup;
_root.level["item" + nummer].naam = naam;
_root.level["item" + nummer].massa = massa;
_root.level["item" + nummer].botsdemp = botsdemp;
if (_root.iteminvname == naam) {
_root.level["item" + nummer]._alpha = 0;
}
if (pickup) {
_root.gamevars.levelobjects.push([_root.level["item" + nummer]._name, "item", naam, type, diameter]);
_root.level["item" + nummer].itemScript = function () {
};
} else {
_root.level["item" + nummer].itemScript = function () {
this.balextra._rotation = -this._rotation;
this.xSpeed = this.xSpeed * 0.99;
this.ySpeed = this.ySpeed * this.decay;
if (this.rotator > 20) {
this.rotator = 20;
}
if (this.rotator < -20) {
this.rotator = -20;
}
this._rotation = this._rotation + this.rotator;
this.rotator = this.rotator * 0.99;
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.speed > this.maxSpeed) {
this.xSpeed = this.xSpeed * (this.maxSpeed / this.speed);
this.ySpeed = this.ySpeed * (this.maxSpeed / this.speed);
}
this._y = this._y - this.ySpeed;
this._x = this._x + this.xSpeed;
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y + 12) + _root.level._y, true)) {
this.ySpeed = this.ySpeed - 0.3;
this.inlucht = 1;
} else {
this.ySpeed = this.ySpeed + 0.3;
this.inlucht = 0;
}
if (this.hitTest(_root.level.player)) {
if (_root.level.player.hitTest((this._x + 18) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.player.hitTest((this._x + 18) + _root.level._x, this._y + _root.level._y, true)) {
this._x = this._x - 1;
this.ySpeed = this.ySpeed + (_root.level.player.ySpeed * _root.level.player.massa);
this.xSpeed = this.xSpeed + (_root.level.player.xSpeed * _root.level.player.massa);
this.rotator = this.rotator + _root.level.player.xSpeed;
}
}
if (_root.level.player.hitTest((this._x - 18) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.player.hitTest((this._x - 18) + _root.level._x, this._y + _root.level._y, true)) {
this._x = this._x + 1;
this.ySpeed = this.ySpeed + (_root.level.player.ySpeed * _root.level.player.massa);
this.xSpeed = this.xSpeed + (_root.level.player.xSpeed * _root.level.player.massa);
this.rotator = this.rotator + _root.level.player.xSpeed;
}
}
if (_root.level.player.hitTest(this._x + _root.level._x, (this._y + 18) + _root.level._y, true)) {
while (_root.level.player.hitTest(this._x + _root.level._x, (this._y + 18) + _root.level._y, true)) {
this._y = this._y - 1;
this.ySpeed = this.ySpeed + (_root.level.player.ySpeed * _root.level.player.massa);
this.xSpeed = this.xSpeed + (_root.level.player.xSpeed * _root.level.player.massa);
this.rotator = this.rotator + _root.level.player.xSpeed;
}
}
if (_root.level.player.hitTest(this._x + _root.level._x, (this._y - 18) + _root.level._y, true)) {
while (_root.level.player.hitTest(this._x + _root.level._x, (this._y - 18) + _root.level._y, true)) {
this._y = this._y + 1;
this.ySpeed = this.ySpeed + (_root.level.player.ySpeed * _root.level.player.massa);
this.xSpeed = this.xSpeed + (_root.level.player.xSpeed * _root.level.player.massa);
this.rotator = this.rotator + _root.level.player.xSpeed;
}
}
}
if (_root.level.grond.hitTest((this._x + 18) + _root.level._x, this._y + _root.level._y, true)) {
this.xSpeed = this.xSpeed * -0.9;
while (_root.level.grond.hitTest((this._x + 18) + _root.level._x, this._y + _root.level._y, true)) {
this._x = this._x - 1;
}
}
if (_root.level.grond.hitTest((this._x - 18) + _root.level._x, this._y + _root.level._y, true)) {
this.xSpeed = this.xSpeed * -0.9;
while (_root.level.grond.hitTest((this._x - 18) + _root.level._x, this._y + _root.level._y, true)) {
this._x = this._x + 1;
}
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + 18) + _root.level._y, true)) {
this.ySpeed = this.ySpeed * -0.9;
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + 18) + _root.level._y, true)) {
this._y = this._y - 1;
}
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - 18) + _root.level._y, true)) {
this.ySpeed = this.ySpeed * -0.9;
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - 18) + _root.level._y, true)) {
this._y = this._y + 1;
}
}
if (this.binlucht != this.inlucht) {
if (this.inlucht == 1) {
if ((this.ySpeed > 2) || (this.ySpeed < -2)) {
if ((this.ySpeed > 3) || (this.ySpeed < -3)) {
_root.sound_plons.start(0, 1);
getalvolume = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (getalvolume > 100) {
getalvolume = 100;
}
_root.sound_plons.setVolume(getalvolume);
}
nr = getfreedepth();
_root.level.attachMovie("splash", "watersplash" + nr, nr);
_root.level["watersplash" + nr]._x = this._x;
_root.level["watersplash" + nr]._y = this._y;
_root.level["watersplash" + nr]._width = this.diameter * 2;
while (!_root.level.voorrand.hitTest(_root.level["watersplash" + nr]._x + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._y = _root.level["watersplash" + nr]._y + 1;
}
_root.level["watersplash" + nr]._yscale = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x + 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x + 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._x = _root.level["watersplash" + nr]._x - 1;
}
}
if (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x - 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x - 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._x = _root.level["watersplash" + nr]._x + 1;
}
}
}
}
if (this.inlucht == 0) {
this.ySpeed = this.ySpeed / 1.3;
if ((this.ySpeed > 2) || (this.ySpeed < -2)) {
if ((this.ySpeed > 3) || (this.ySpeed < -3)) {
_root.sound_plons2.start(0, 1);
getalvolume = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (getalvolume > 100) {
getalvolume = 100;
}
_root.sound_plons2.setVolume(getalvolume);
}
nr = getfreedepth();
_root.level.attachMovie("splashs", "watersplashs" + nr, nr);
_root.level["watersplashs" + nr]._x = this._x;
_root.level["watersplashs" + nr]._y = this._y;
_root.level["watersplashs" + nr]._width = this.diameter * 2;
_root.level["watersplashs" + nr]._yscale = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
while (_root.level.voorrand.hitTest(_root.level["watersplashs" + nr]._x + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._y = _root.level["watersplashs" + nr]._y - 1;
}
if (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x + 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x + 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._x = _root.level["watersplashs" + nr]._x - 1;
}
}
if (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x - 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x - 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._x = _root.level["watersplashs" + nr]._x + 1;
}
}
}
}
}
this.binlucht = this.inlucht;
};
}
}
}
function itemlooper() {
j = 0;
while (j < _root.itemsarray.length) {
_root.level[_root.itemsarray[j]].itemScript();
j++;
}
}
function iteminterface() {
switch (_root.iteminv) {
case "" :
_root.inventory.item.removeMovieClip();
_root.inventory._visible = false;
break;
default :
_root.inventory._visible = true;
_root.inventory.attachMovie(_root.iteminv, "item", 1);
}
}
function init_door(naam, functie) {
gevonden = false;
k = 0;
while (k < _root.doorsarray.length) {
if (_root.doorsarray[k][0] == naam) {
gevonden = true;
}
k++;
}
if (!gevonden) {
_root.doorsarray.push([naam, functie]);
}
}
function loop_doors() {
j = 0;
while (j < _root.doorsarray.length) {
if (!_root.level.grond[_root.doorsarray[j][0]].done) {
waarde = _root.level.grond[_root.doorsarray[j][0]][_root.doorsarray[j][1]]();
} else {
_root.doorsarray.splice(j, 1);
j--;
}
if (waarde) {
_root.doorsarray.splice(j, 1);
j--;
}
j++;
}
}
function stopgeluid() {
_root.sound_bobble.setVolume(0);
_root.sound_music.setVolume(0);
_root.sound_rock.setVolume(0);
_root.sound_bobble.setVolume(0);
_root.sound_plons.setVolume(0);
_root.sound_plons2.setVolume(0);
_root.sound_item.setVolume(0);
}
function startgeluid() {
_root.sound_bobble.setVolume(60);
_root.sound_music.setVolume(100);
_root.sound_bobble.setVolume(100);
_root.sound_plons.setVolume(100);
_root.sound_plons2.setVolume(100);
_root.sound_item.setVolume(100);
}
function bobble_geluid() {
if (_root.geluidon) {
_root.sound_bobble.attachSound(("bobble" + bobblenummer) + ".wav");
_root.sound_bobble.start(0, 1);
bobblenummer = random(9);
if (bobblenummer > 8) {
bobblenummer = 1;
}
}
}
function musicchange_geluid(naam) {
_root.sound_music.stop();
_root.sound_music.attachSound(naam);
_root.sound_music.start(0, 999);
_root.vorigmusic = naam;
}
function musicvolchange_geluid() {
if (_root.geluidon) {
if (_root.level.player.inlucht == 1) {
_root.sound_music.setVolume(_root.sound_music.getVolume() - 20);
if (_root.sound_music.getVolume() <= 20) {
_root.sound_music.setVolume(20);
}
} else {
_root.sound_music.setVolume(_root.sound_music.getVolume() + 10);
if (_root.sound_music.getVolume() >= 100) {
_root.sound_music.setVolume(100);
}
}
}
}
_root.keys = new Object();
freedepth = 801;
uitslagpos = false;
_root.addTekst = function (tekst, tijd) {
gevonden = false;
k = 0;
while (k < _root.tekstregels.length) {
if (_root.tekstregels[k][0] == tekst) {
gevonden = true;
}
k++;
}
trace(gevonden);
if (!gevonden) {
_root.tekstregels.push([tekst, tijd * 24]);
}
};
_root.tekstvakScript = function () {
if ((!_root.tekstvak.actief) && (_root.tekstregels.length > 0)) {
_root.tekstvak.tekstveld.text = _root.tekstregels[0][0];
_root.tekstvak.tijd = _root.tekstregels[0][1];
_root.tekstvak.teller = 0;
_root.tekstvak.actief = true;
_root.tekstvak._visible = true;
}
if (_root.tekstvak.actief) {
_root.tekstvak.teller++;
if (_root.tekstvak.tijd == _root.tekstvak.teller) {
_root.tekstvak.actief = false;
_root.tekstvak._visible = false;
_root.tekstregels.shift();
}
}
};
_root.staraantal = 0;
_root.staractief = false;
_root.starInvScript = function () {
nuaantal = 0;
i = 0;
while (i < 100) {
if (_root.starArray[i] == true) {
nuaantal++;
}
i++;
}
if (nuaantal != _root.staraantal) {
trace(_root.star_inventory.aantal);
_root.staraantal = nuaantal;
_root.star_inventory.tekstveld.text = _root.staraantal + "/15";
_root.star_inventory.tijd = 120;
_root.star_inventory.teller = 0;
_root.staractief = true;
_root.star_inventory._visible = true;
}
if (_root.staraantal == 15) {
_root.allesterren = true;
}
if (_root.staractief) {
_root.star_inventory.teller++;
if (_root.star_inventory.tijd == _root.star_inventory.teller) {
_root.staractief = false;
_root.star_inventory._visible = false;
_root.minterface._visible = false;
Mouse.hide();
}
}
};
bobblenummer = 1;
_root.createEmptyMovieClip("sound_bobbleMC", -101);
_root.sound_bobble = new Sound(_root.sound_bobbleMC);
_root.sound_bobble.setVolume(50);
_root.createEmptyMovieClip("sound_musicMC", -100);
_root.sound_music = new Sound(_root.sound_musicMC);
_root.sound_music.setVolume(0);
_root.gamevars.muzieknummer = "";
_root.vorigmusic = "";
_root.createEmptyMovieClip("sound_rockMC", -102);
_root.sound_rock = new Sound(_root.sound_rockMC);
_root.sound_rock.attachSound("rock.wav");
_root.sound_rock.start(0, 9999);
_root.sound_rock.onSoundComplete = function () {
if (_root.geluidon) {
_root.sound_rock.start(0, 9999);
}
};
_root.sound_rock.setVolume(0);
_root.createEmptyMovieClip("sound_plonsMC", -103);
_root.sound_plons = new Sound(_root.sound_plonsMC);
_root.sound_plons.attachSound("plons");
_root.createEmptyMovieClip("sound_plonsMC2", -104);
_root.sound_plons2 = new Sound(_root.sound_plonsMC2);
_root.sound_plons2.attachSound("plons2");
_root.createEmptyMovieClip("sound_item", -105);
_root.sound_item = new Sound(_root.sound_item);
_root.sound_item.attachSound("huub.wav");
stop();
_root.sound_bobble.stop();
_root.sound_music.stop();
_root.sound_rock.stop();
_root.sound_bobble.stop();
_root.sound_plons.stop();
_root.sound_plons2.stop();
_root.sound_item.stop();
luchtbeltoegestaan = true;
stageh = 550;
stagev = 400;
stergetal = 0;
gamestat = "change";
geluidon = true;
_root.inmenu = true;
_root.gamevars = new Object();
init_level("level_menu", "startpos1", 180, "menuaudio.wav");
_root.attachMovie("menu_interface", "minterface", 4);
_root.attachMovie("inventory2", "trefoundMC", 5);
_root.trefoundMC._y = 45.5;
_root.trefoundMC._x = 430.4;
_root.trefoundMC._visible = false;
_root.minterface._y = 45.5;
_root.minterface._x = 189.83;
_root.minterface._visible = false;
_root.minterface.menu_button.onPress = function () {
_root.exit_level();
};
_root.minterface.geluid_button.onPress = function () {
if (_root.geluidon) {
_root.geluidon = false;
_root.minterface.geluid_button.gotoAndStop(2);
} else {
_root.geluidon = true;
_root.startgeluid();
_root.minterface.geluid_button.gotoAndStop(1);
}
trace(_root.geluidon);
};
_root.iteminv = "";
_root.iteminvname = "";
_root.starArray = [];
i = 0;
while (i < 100) {
_root.starArray[i] = false;
i++;
}
_root.bxmouse = _root._xmouse;
_root.bymouse = _root._ymouse;
_root.onEnterFrame = function () {
switch (gamestat) {
case "change" :
if (_root.gamevars.levelchange == 1) {
_root.levelswitch._x = _root.levelswitch._x + 50;
if (_root.levelswitch._x >= 275) {
_root.gamevars.levelchange = 2;
init_levelchange();
}
if ((_root.gamevars.muzieknummer != _root.vorigmusic) && (_root.geluidon)) {
getal = ((_root.levelswitch._x - -775) * 100) / 1050;
_root.sound_music.setVolume(100 - getal);
}
}
if (_root.gamevars.levelchange >= 2) {
_root.levelswitch._x = _root.levelswitch._x + 50;
if (_root.gamevars.levelchange == 3) {
_root.level.nux = _root.level.xmax - stageh;
if ((-_root.level.nux) > _root.level._x) {
_root.level._x = -_root.level.nux;
}
if (_root.level._x > _root.level.xmin) {
_root.level._x = _root.level.xmin;
}
_root.level.nuy = _root.level.ymax - stagev;
if ((-_root.level.nuy) > _root.level._y) {
_root.level._y = -_root.level.nuy;
}
if (_root.level._y > _root.level.ymin) {
_root.level._y = _root.level.ymin;
}
_root.iteminterface();
_root.sound_rock.setVolume(0);
_root.bxmouse = _root._xmouse;
_root.bymouse = _root._ymouse;
if (_root.gamevars.muzieknummer != _root.vorigmusic) {
_root.musicchange_geluid(_root.gamevars.muzieknummer);
}
_root.level.startknop.onPress = function () {
_root.acces = false;
_root.exit_level();
};
}
if (((_root.gamevars.muzieknummer != _root.vorigmusic) && (!_root.level.lucht.hitTest(_root.level[_root.gamevars.beginpos]._x + _root.level._x, _root.level[_root.gamevars.beginpos]._y + _root.level._y, true))) && (_root.geluidon)) {
getal = ((1450 - _root.levelswitch._x) * 100) / 1050;
if (getal >= 100) {
getal = 100;
}
_root.sound_music.setVolume(100 - getal);
}
_root.gamevars.levelchange++;
if (_root.levelswitch._x >= 1450) {
_root.vorigmusic = _root.gamevars.muzieknummer;
_root.levelswitch.removeMovieClip();
gamestat = "play";
}
}
break;
case "play" :
Mouse.show();
checkkeys();
_root.level.player.speelscript();
_root.level.levelscript();
_root.itemlooper();
_root.loop_doors();
setkeysfalse();
if (!_root.geluidon) {
_root.stopgeluid();
}
if (_root.trefound) {
}
break;
case "victory" :
_root.trefoundMC._visible = false;
setkeysfalse();
_root.level.player.speelscript();
_root.tekstvakScript();
_root.starInvScript();
if (_root.geluidon) {
break;
}
_root.stopgeluid();
}
};
_root.subadon = false;
Frame 9
function init_playerscript() {
getdepth = _root.level.player.getDepth();
if (_root.allesterren) {
_root.level.attachMovie("sub2", "player", getdepth);
}
_root.level.player._x = _root.level[_root.gamevars.beginpos]._x;
_root.level.player._y = _root.level[_root.gamevars.beginpos]._y;
_root.level.player.massa = 1;
_root.level.player.thrust = 0.8;
_root.level.player.decay = 0.97;
_root.level.player.xSpeed = 0;
_root.level.player.ySpeed = 0;
_root.level.player.maxSpeed = 5;
_root.level.player.rotthrust = 2;
_root.level.player.rotdecay = 0.85;
_root.level.player.rotspeed = 0;
_root.level.player.rotmax = 13;
_root.level.player.xd = 0;
_root.level.player.yd = 0;
_root.level.player.punt_draaix = _root.level.player._x;
_root.level.player.punt_draaiy = _root.level.player._y;
_root.level.player.middenstuk._rotation = -_root.gamevars.rotatie;
_root.level.player.framegetal = 1;
_root.level.player.luchtbelteller = 30;
_root.level.player.luchtbelnummer = 50;
_root.level.player.inlucht = 0;
_root.level.player.binlucht = 0;
_root.level.player.diameter = 20;
_root.level.player.turboteller = 0;
_root.level.player.turbo._alpha = 0;
_root.level.player.spacevorig = 0;
_root.level.player.spacetime = 0;
_root.level.player.spacecase = 0;
_root.level.player.keysoundteller = 0;
_root.level.player.speelscript = function () {
if (_root.acces) {
if (_root.keys.bevest) {
this.spacetime++;
} else {
this.spacevorig = this.spacetime;
this.spacetime = 0;
}
switch (this.spacecase) {
case 0 :
if ((this.spacevorig <= 10) && (this.spacevorig > 0)) {
this.spacecase = 1;
}
if (this.spacetime > 20) {
this.spacecase = 2;
}
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed * (this.decay / 1.3);
this.ySpeed = this.ySpeed * (this.decay / 1.3);
}
this.rotspeed = this.rotspeed * (this.rotdecay / 2);
break;
case 1 :
if ((this.spacevorig <= 10) && (this.spacevorig > 0)) {
this.spacecase = 0;
}
if (this.spacetime > 20) {
this.spacecase = 2;
}
this.rotspeed = this.rotspeed + (this.rotthrust / 2);
this.punt_draai._x = this.punt_draai._x + 2;
if (rotspeed > rotmax) {
this.rotspeed = this.rotmax;
}
this.rotspeed = this.rotspeed * this.rotdecay;
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed * (this.decay / 2);
this.ySpeed = this.ySpeed * (this.decay / 2);
}
break;
case 2 :
if (this.spacetime == 0) {
this.spacecase = 0;
}
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed + ((this.thrust * Math.sin(this._rotation * (Math.PI/180))) * 1.5);
this.ySpeed = this.ySpeed + ((this.thrust * Math.cos(this._rotation * (Math.PI/180))) * 1.5);
} else if (_root.level.grond.hitTest(this._x + _root.level._x, ((this._y + this.diameter) + 5) + _root.level._y, true)) {
this.xSpeed = this.xSpeed + ((this.thrust / 4) * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + ((this.thrust / 4) * Math.cos(this._rotation * (Math.PI/180)));
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.95;
this.ySpeed = this.ySpeed * 0.95;
}
}
this.rotspeed = this.rotspeed * (this.rotdecay / 2);
}
this.keysoundteller++;
if (_root.keys.ent && (this.keysoundteller > 10)) {
this.keysoundteller = 0;
if (_root.geluidon) {
_root.geluidon = false;
_root.minterface.geluid_button.gotoAndStop(2);
} else {
_root.geluidon = true;
_root.startgeluid();
_root.minterface.geluid_button.gotoAndStop(1);
}
}
if (_root.keys.back && (!_root.inmenu)) {
_root.exit_level();
}
}
if (_root.keys.back && (_root.inmenu)) {
_root.acces = true;
_root.exit_level();
}
if (!_root.acces) {
if (_root.keys.rechts) {
this.rotspeed = this.rotspeed + this.rotthrust;
this.punt_draai._x = this.punt_draai._x + 2;
}
if (_root.keys.links) {
this.rotspeed = this.rotspeed - this.rotthrust;
this.punt_draai._x = this.punt_draai._x - 2;
}
if (rotspeed > rotmax) {
this.rotspeed = this.rotmax;
}
this.rotspeed = this.rotspeed * this.rotdecay;
}
this._rotation = this._rotation + this.rotspeed;
this.punt_draaix = this.punt_draaix + ((this.xd = this.xd + ((this._x - this.punt_draaix) / 200)));
this.punt_draaiy = this.punt_draaiy + ((this.yd = this.yd + ((this._y - this.punt_draaiy) / 300)));
this.yd = this.yd * 0.95;
this.xd = this.xd * 0.95;
this.middenstuk._rotation = (-this._rotation) + (0.3 * (-(this._x - this.punt_draaix)));
this.wiel1._rotation = -8 * this.middenstuk._rotation;
this.wiel2._rotation = (-8 * this.middenstuk._rotation) + 90;
this.wiel3._rotation = (-8 * this.middenstuk._rotation) + 180;
this.wiel4._rotation = (-8 * this.middenstuk._rotation) + 270;
if (!_root.acces) {
if (_root.keys.bevest) {
if (_root.level.player.turboteller < -10) {
_root.level.player.turboteller = 6;
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed + ((this.thrust * 3) * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + ((this.thrust * 3) * Math.cos(this._rotation * (Math.PI/180)));
}
}
this.framespeed = 16;
} else if (this.maxSpeed > 5.1) {
this.maxSpeed = this.maxSpeed - 0.1;
}
_root.level.player.turboteller--;
if (_root.level.player.turboteller >= 0) {
this.turbo._alpha = (this.speed * 100) / 18;
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed + (this.thrust * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + (this.thrust * Math.cos(this._rotation * (Math.PI/180)));
}
} else {
this.turbo._alpha = this.turbo._alpha - 5;
if (this.turbo._alpha <= 0) {
this.turbo._alpha = 0;
}
}
}
if (_root.keys.omhoog) {
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed + (this.thrust * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + (this.thrust * Math.cos(this._rotation * (Math.PI/180)));
} else if (_root.level.grond.hitTest(this._x + _root.level._x, ((this._y + this.diameter) + 5) + _root.level._y, true)) {
this.xSpeed = this.xSpeed + ((this.thrust / 4) * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed + ((this.thrust / 4) * Math.cos(this._rotation * (Math.PI/180)));
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.95;
this.ySpeed = this.ySpeed * 0.95;
}
}
} else if (_root.keys.omlaag) {
if (this.inlucht == 0) {
this.xSpeed = this.xSpeed - (this.thrust * Math.sin(this._rotation * (Math.PI/180)));
this.ySpeed = this.ySpeed - (this.thrust * Math.cos(this._rotation * (Math.PI/180)));
this.flames._visible = 1;
}
} else if ((this.inlucht == 0) && (!_root.acces)) {
this.xSpeed = this.xSpeed * this.decay;
this.ySpeed = this.ySpeed * this.decay;
}
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.inlucht == 0) {
if (this.speed > this.maxSpeed) {
this.xSpeed = this.xSpeed * 0.92;
this.ySpeed = this.ySpeed * 0.92;
}
}
if (Math.round(this.speed) == 0) {
this.framespeed = 1;
}
if (Math.round(this.speed) == 1) {
this.framespeed = 2;
}
if (Math.round(this.speed) == 2) {
this.framespeed = 3;
}
if (Math.round(this.speed) == 3) {
this.framespeed = 4;
}
if (Math.round(this.speed) == 4) {
this.framespeed = 6;
}
this.framegetal = this.framegetal + this.framespeed;
if (this.framegetal > 20) {
this.framegetal = this.framegetal - 20;
}
this.rotor.gotoAndStop(this.framegetal);
this._y = this._y - this.ySpeed;
this._x = this._x + this.xSpeed;
this.luchtbelteller = this.luchtbelteller - this.framespeed;
if (this.luchtbelteller < 0) {
this.luchtbelteller = 20;
if (this.inlucht == 0) {
if (_root.level.lucht.hitTest((this._x + _root.level._x) - (Math.sin(this._rotation * (Math.PI/180)) * ((55 + random(20)) - 10)), (this._y + _root.level._y) + (Math.cos(this._rotation * (Math.PI/180)) * ((55 + random(20)) - 10)), true)) {
} else {
_root.bobble_geluid();
_root.attachMovie("luchtbel", "bel" + this.luchtbelnummer, this.luchtbelnummer + 100);
_root["bel" + this.luchtbelnummer]._x = (this._x + _root.level._x) - (Math.sin(((this._rotation + random(10)) - 5) * (Math.PI/180)) * ((this.diameter + random(20)) + 10));
_root["bel" + this.luchtbelnummer]._y = (this._y + _root.level._y) + (Math.cos(((this._rotation + random(10)) - 5) * (Math.PI/180)) * ((this.diameter + random(20)) + 10));
_root["bel" + this.luchtbelnummer]._alpha = 50;
_root["bel" + this.luchtbelnummer]._xscale = (_root["bel" + this.luchtbelnummer]._yscale = random(50) + 50);
_root["bel" + this.luchtbelnummer].speed = _root["bel" + this.luchtbelnummer]._xscale / 20;
_root["bel" + this.luchtbelnummer].onEnterFrame = function () {
this._y = this._y - this.speed;
this.speed = this.speed + 0.3;
if (((this._y < 0) || (_root.level.voorrand.hitTest(this._x, this._y - 5, true))) || (!_root.luchtbeltoegestaan)) {
this.removeMovieClip();
}
};
this.luchtbelnummer = this.luchtbelnummer + 1;
if (this.luchtbelnummer > 100) {
this.luchtbelnummer = 50;
}
}
}
}
this.collisionx = 0;
this.collisiony = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this.xSpeed = this.xSpeed - 1;
this._x = this._x - 1;
}
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
trace("kom ik");
this.collisionx = 1;
this.xSpeed = this.xSpeed + 1;
this._x = this._x + 1;
}
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this.ySpeed = this.ySpeed + 1;
this._y = this._y - 1;
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.xSpeed = this.xSpeed + (0.1 * Math.sin(_rotation * (Math.PI/180)));
}
}
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this.ySpeed = this.ySpeed - 1;
this._y = this._y + 1;
}
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.ySpeed >= 0) {
this.ySpeed = this.ySpeed - 0.4;
} else if (this.ySpeed < 0) {
this.ySpeed = this.ySpeed - 0.4;
}
this.inlucht = 1;
} else {
this.inlucht = 0;
}
if (this.binlucht != this.inlucht) {
if (this.inlucht == 1) {
if ((this.ySpeed > 1) || (this.ySpeed < -1)) {
if ((this.ySpeed > 3) || ((this.ySpeed < -3) && (_root.geluidon))) {
_root.sound_plons.start(0, 1);
getalvolume = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (getalvolume > 100) {
getalvolume = 100;
}
_root.sound_plons.setVolume(getalvolume);
}
nr = getfreedepth();
_root.level.attachMovie("splash", "watersplash" + nr, nr);
_root.level["watersplash" + nr]._x = this._x;
_root.level["watersplash" + nr]._y = this._y;
while (!_root.level.voorrand.hitTest(_root.level["watersplash" + nr]._x + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._y = _root.level["watersplash" + nr]._y + 1;
}
_root.level["watersplash" + nr]._yscale = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x + 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x + 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._x = _root.level["watersplash" + nr]._x - 1;
}
}
if (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x - 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x - 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._x = _root.level["watersplash" + nr]._x + 1;
}
}
}
}
if (this.inlucht == 0) {
this.ySpeed = this.ySpeed / 1.3;
if ((this.ySpeed > 1) || (this.ySpeed < -1)) {
if ((this.ySpeed > 3) || ((this.ySpeed < -3) && (_root.geluidon))) {
_root.sound_plons2.start(0, 1);
getalvolume = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (getalvolume > 100) {
getalvolume = 100;
}
_root.sound_plons2.setVolume(getalvolume);
}
nr = getfreedepth();
_root.level.attachMovie("splashs", "watersplashs" + nr, nr);
_root.level["watersplashs" + nr]._x = this._x;
_root.level["watersplashs" + nr]._y = this._y + this.diameter;
_root.level["watersplashs" + nr]._yscale = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
while (_root.level.voorrand.hitTest(_root.level["watersplashs" + nr]._x + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._y = _root.level["watersplashs" + nr]._y - 1;
}
if (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x + 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x + 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._x = _root.level["watersplashs" + nr]._x - 1;
}
}
if (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x - 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x - 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._x = _root.level["watersplashs" + nr]._x + 1;
}
}
}
}
}
this.binlucht = this.inlucht;
_root.musicvolchange_geluid();
j = 0;
while (j < _root.gamevars.levelobjects.length) {
if (this.hitTest(_root.level[_root.gamevars.levelobjects[j][0]])) {
switch (_root.gamevars.levelobjects[j][1]) {
case "mapchange" :
_root.init_level(_root.gamevars.levelobjects[j][2], _root.gamevars.levelobjects[j][3], _root.gamevars.levelobjects[j][4], _root.gamevars.levelobjects[j][5]);
break;
case "item" :
if (_root.gamevars.levelobjects[j][2] == "star") {
_root.starArray[_root.gamevars.levelobjects[j][4]] = true;
trace(_root.gamevars.levelobjects[j][4]);
_root.level[_root.gamevars.levelobjects[j][0]]._alpha = 0;
} else if (_root.iteminvname != _root.gamevars.levelobjects[j][2]) {
_root.iteminv = _root.gamevars.levelobjects[j][3];
_root.iteminvname = _root.gamevars.levelobjects[j][2];
_root.level[_root.gamevars.levelobjects[j][0]]._alpha = 0;
_root.level[_root.gamevars.levelobjects[j][0]]._visible = false;
if (_root.geluidon) {
_root.sound_item.start(0, 1);
}
}
break;
case "switch" :
if ((_root.gamevars.levelobjects[j][2] == _root.iteminvname) || (_root.gamevars.levelobjects[j][2] == "")) {
trace(_root.level.grond[_root.gamevars.levelobjects[j][3]].done);
if ((_root.gamevars.levelobjects[j][2] != "") && (_root.level.grond[_root.gamevars.levelobjects[j][3]].done == false)) {
_root.iteminv = "";
_root.iteminvname = "";
}
_root.init_door(_root.gamevars.levelobjects[j][3], _root.gamevars.levelobjects[j][4]);
}
break;
case "tekst" :
if (_root.level[_root.gamevars.levelobjects[j][0]].done) {
break;
}
_root.level[_root.gamevars.levelobjects[j][0]].tekstScript();
if (!_root.gamevars.levelobjects[j][2]) {
break;
}
_root.level[_root.gamevars.levelobjects[j][0]].done = true;
}
}
if (!(_root.gamevars.levelobjects[j][1] === "item")) {
} else if ((_root.iteminvname != _root.gamevars.levelobjects[j][2]) && (_root.gamevars.levelobjects[j][2] != "star")) {
if (_root.level[_root.gamevars.levelobjects[j][0]]._alpha < 100) {
_root.level[_root.gamevars.levelobjects[j][0]]._alpha = _root.level[_root.gamevars.levelobjects[j][0]]._alpha + 2.5;
_root.level[_root.gamevars.levelobjects[j][0]]._visible = true;
}
}
j++;
}
_root.iteminterface();
};
}
function checkkeys() {
if (Key.isDown(37)) {
_root.keys.links = true;
_root.keys.anykey = true;
}
if (Key.isDown(39)) {
_root.keys.rechts = true;
_root.keys.anykey = true;
}
if (Key.isDown(38)) {
_root.keys.omhoog = true;
_root.keys.anykey = true;
}
if (Key.isDown(40)) {
_root.keys.omlaag = true;
_root.keys.anykey = true;
}
if (Key.isDown(32)) {
_root.keys.bevest = true;
_root.keys.anykey = true;
}
if (Key.isDown(17)) {
_root.keys.cancl = true;
_root.keys.anykey = true;
}
if (Key.isDown(13)) {
_root.keys.ent = true;
_root.keys.anykey = true;
}
if (Key.isDown(8)) {
_root.keys.back = true;
_root.keys.anykey = true;
}
}
function setkeysfalse() {
_root.keys.links = false;
_root.keys.rechts = false;
_root.keys.omhoog = false;
_root.keys.omlaag = false;
_root.keys.bevest = false;
_root.keys.cancl = false;
_root.keys.ent = false;
_root.keys.back = false;
_root.keys.anykey = false;
}
function init_level(levelnaam, beginpos, rotatie, muziekstuk) {
_root.vorigmusic = _root.gamevars.muzieknummer;
_root.gamevars = new Object();
_root.gamevars.levelnaam = levelnaam;
_root.gamevars.beginpos = beginpos;
_root.gamevars.rotatie = rotatie;
_root.gamevars.levelchange = 1;
_root.gamevars.vorigemuziek = _root.gamevars.muzieknummer;
_root.gamevars.muzieknummer = muziekstuk;
_root.gamestat = "change";
_root.attachMovie("levelswitchen", "levelswitch", 1000);
_root.attachMovie("tekstvak", "tekstvak", 990);
_root.tekstvak._visible = false;
_root.tekstvak._x = 18;
_root.tekstvak._y = 310;
_root.tekstvak.actief = false;
_root.tekstregels = [];
_root.levelswitch._x = -775;
_root.levelswitch._y = 200;
_root.itemsarray = [];
_root.doorsarray = [];
freedepth = 801;
freeitemdepth = 100;
}
function init_levelchange() {
_root.gamevars.levelobjects = [];
_root.attachMovie(_root.gamevars.levelnaam, "level", 1);
_root.attachMovie("inventory", "inventory", 2);
_root.attachMovie("star_inventory", "star_inventory", 3);
_root.star_inventory._x = 46.4;
_root.star_inventory._y = 45.5;
_root.star_inventory._visible = false;
_root.minterface._visible = false;
_root.inventory._x = 504.5;
_root.inventory._y = 45.5;
_root.level.voorrand.swapDepths(200);
_root.level.levelscript = function () {
this._x = this._x + ((((_root.level.player._x * -1) + (stageh / 2)) - this._x) / 10);
this._y = this._y + ((((_root.level.player._y * -1) + (stagev / 2)) - this._y) / 10);
nux = _root.level.xmax - stageh;
if ((-nux) > this._x) {
this._x = -nux;
}
if (this._x > _root.level.xmin) {
this._x = _root.level.xmin;
}
nuy = _root.level.ymax - stagev;
if ((-nuy) > this._y) {
this._y = -nuy;
}
if (this._y > _root.level.ymin) {
this._y = _root.level.ymin;
}
};
_root.init_playerscript();
_root.level.player._rotation = _root.gamevars.rotatie;
_root.level._x = (_root.level.player._x * -1) + (stageh / 2);
_root.level._y = (_root.level.player._y * -1) + (stagev / 2);
_root.gamevars.levelinit = 2;
}
function init_background(backgroundnaam) {
_root.attachMovie(backgroundnaam, "background1", 0);
}
function getfreedepth() {
freedepth++;
if (freedepth >= 1000) {
freedepth = 801;
}
return(freedepth);
}
function getfreeitemdepth() {
freeitemdepth++;
if (freeitemdepth >= 199) {
freeitemdepth = 100;
}
return(freeitemdepth);
}
function trilllevel(uitslag) {
if (uitslagpos) {
uitslagpos = false;
_root.level._x = _root.level._x + random(uitslag);
_root.level._y = _root.level._y + random(uitslag);
} else {
uitslagpos = true;
_root.level._x = _root.level._x + (-random(uitslag));
_root.level._y = _root.level._y + (-random(uitslag));
}
}
function exit_level() {
luchtbeltoegestaan = false;
_root.level.removeMovieClip();
_root.star_inventory.removeMovieClip();
_root.minterface.removeMovieClip();
_root.inventory.removeMovieClip();
_root.trefoundMC.removeMovieClip();
_root.tekstvak.removeMovieClip();
_root.background1.removeMovieClip();
_root.sound_bobble.stop();
_root.sound_music.stop();
_root.sound_rock.stop();
_root.sound_bobble.stop();
_root.sound_plons.stop();
_root.sound_plons2.stop();
_root.sound_item.stop();
_root.play();
}
function init_item(type, naam, xpos, ypos, diameter, extrapow, pickup, massa, accgewicht, botsdemp) {
if ((type == "star") && (_root.starArray[diameter])) {
trace("heb ik al gehad");
} else {
nummer = getfreeitemdepth();
_root.level.attachMovie(type, "item" + nummer, nummer);
_root.itemsarray.push(_root.level["item" + nummer]._name);
_root.level["item" + nummer]._x = xpos;
_root.level["item" + nummer]._y = ypos;
_root.level["item" + nummer].thrust = 1;
_root.level["item" + nummer].decay = 0.98;
_root.level["item" + nummer].maxSpeed = 10;
_root.level["item" + nummer].xSpeed = 0;
_root.level["item" + nummer].ySpeed = 0;
_root.level["item" + nummer]._visible = 1;
_root.level["item" + nummer].extrapower = 0.1;
_root.level["item" + nummer].accgewicht = accgewicht;
_root.level["item" + nummer].inlucht = 0;
_root.level["item" + nummer].binlucht = 0;
_root.level["item" + nummer].diameter = diameter;
_root.level["item" + nummer].rotator = 0;
_root.level["item" + nummer].balextra._visible = 1;
_root.level["item" + nummer].pickup = pickup;
_root.level["item" + nummer].naam = naam;
_root.level["item" + nummer].massa = massa;
_root.level["item" + nummer].botsdemp = botsdemp;
if (_root.iteminvname == naam) {
_root.level["item" + nummer]._alpha = 0;
}
if (pickup) {
_root.gamevars.levelobjects.push([_root.level["item" + nummer]._name, "item", naam, type, diameter]);
_root.level["item" + nummer].itemScript = function () {
};
} else {
_root.level["item" + nummer].itemScript = function () {
this.balextra._rotation = -this._rotation;
this.xSpeed = this.xSpeed * 0.99;
this.ySpeed = this.ySpeed * this.decay;
if (this.rotator > 20) {
this.rotator = 20;
}
if (this.rotator < -20) {
this.rotator = -20;
}
this._rotation = this._rotation + this.rotator;
this.rotator = this.rotator * 0.99;
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.speed > this.maxSpeed) {
this.xSpeed = this.xSpeed * (this.maxSpeed / this.speed);
this.ySpeed = this.ySpeed * (this.maxSpeed / this.speed);
}
this._y = this._y - this.ySpeed;
this._x = this._x + this.xSpeed;
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y + 12) + _root.level._y, true)) {
this.ySpeed = this.ySpeed - 0.3;
this.inlucht = 1;
} else {
this.ySpeed = this.ySpeed + 0.3;
this.inlucht = 0;
}
if (this.hitTest(_root.level.player)) {
if (_root.level.player.hitTest((this._x + 18) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.player.hitTest((this._x + 18) + _root.level._x, this._y + _root.level._y, true)) {
this._x = this._x - 1;
this.ySpeed = this.ySpeed + (_root.level.player.ySpeed * _root.level.player.massa);
this.xSpeed = this.xSpeed + (_root.level.player.xSpeed * _root.level.player.massa);
this.rotator = this.rotator + _root.level.player.xSpeed;
}
}
if (_root.level.player.hitTest((this._x - 18) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.player.hitTest((this._x - 18) + _root.level._x, this._y + _root.level._y, true)) {
this._x = this._x + 1;
this.ySpeed = this.ySpeed + (_root.level.player.ySpeed * _root.level.player.massa);
this.xSpeed = this.xSpeed + (_root.level.player.xSpeed * _root.level.player.massa);
this.rotator = this.rotator + _root.level.player.xSpeed;
}
}
if (_root.level.player.hitTest(this._x + _root.level._x, (this._y + 18) + _root.level._y, true)) {
while (_root.level.player.hitTest(this._x + _root.level._x, (this._y + 18) + _root.level._y, true)) {
this._y = this._y - 1;
this.ySpeed = this.ySpeed + (_root.level.player.ySpeed * _root.level.player.massa);
this.xSpeed = this.xSpeed + (_root.level.player.xSpeed * _root.level.player.massa);
this.rotator = this.rotator + _root.level.player.xSpeed;
}
}
if (_root.level.player.hitTest(this._x + _root.level._x, (this._y - 18) + _root.level._y, true)) {
while (_root.level.player.hitTest(this._x + _root.level._x, (this._y - 18) + _root.level._y, true)) {
this._y = this._y + 1;
this.ySpeed = this.ySpeed + (_root.level.player.ySpeed * _root.level.player.massa);
this.xSpeed = this.xSpeed + (_root.level.player.xSpeed * _root.level.player.massa);
this.rotator = this.rotator + _root.level.player.xSpeed;
}
}
}
if (_root.level.grond.hitTest((this._x + 18) + _root.level._x, this._y + _root.level._y, true)) {
this.xSpeed = this.xSpeed * -0.9;
while (_root.level.grond.hitTest((this._x + 18) + _root.level._x, this._y + _root.level._y, true)) {
this._x = this._x - 1;
}
}
if (_root.level.grond.hitTest((this._x - 18) + _root.level._x, this._y + _root.level._y, true)) {
this.xSpeed = this.xSpeed * -0.9;
while (_root.level.grond.hitTest((this._x - 18) + _root.level._x, this._y + _root.level._y, true)) {
this._x = this._x + 1;
}
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + 18) + _root.level._y, true)) {
this.ySpeed = this.ySpeed * -0.9;
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + 18) + _root.level._y, true)) {
this._y = this._y - 1;
}
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - 18) + _root.level._y, true)) {
this.ySpeed = this.ySpeed * -0.9;
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - 18) + _root.level._y, true)) {
this._y = this._y + 1;
}
}
if (this.binlucht != this.inlucht) {
if (this.inlucht == 1) {
if ((this.ySpeed > 2) || (this.ySpeed < -2)) {
if ((this.ySpeed > 3) || (this.ySpeed < -3)) {
_root.sound_plons.start(0, 1);
getalvolume = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (getalvolume > 100) {
getalvolume = 100;
}
_root.sound_plons.setVolume(getalvolume);
}
nr = getfreedepth();
_root.level.attachMovie("splash", "watersplash" + nr, nr);
_root.level["watersplash" + nr]._x = this._x;
_root.level["watersplash" + nr]._y = this._y;
_root.level["watersplash" + nr]._width = this.diameter * 2;
while (!_root.level.voorrand.hitTest(_root.level["watersplash" + nr]._x + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._y = _root.level["watersplash" + nr]._y + 1;
}
_root.level["watersplash" + nr]._yscale = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x + 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x + 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._x = _root.level["watersplash" + nr]._x - 1;
}
}
if (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x - 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplash" + nr]._x - 31.5) + _root.level._x, _root.level["watersplash" + nr]._y + _root.level._y, true)) {
_root.level["watersplash" + nr]._x = _root.level["watersplash" + nr]._x + 1;
}
}
}
}
if (this.inlucht == 0) {
this.ySpeed = this.ySpeed / 1.3;
if ((this.ySpeed > 2) || (this.ySpeed < -2)) {
if ((this.ySpeed > 3) || (this.ySpeed < -3)) {
_root.sound_plons2.start(0, 1);
getalvolume = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
if (getalvolume > 100) {
getalvolume = 100;
}
_root.sound_plons2.setVolume(getalvolume);
}
nr = getfreedepth();
_root.level.attachMovie("splashs", "watersplashs" + nr, nr);
_root.level["watersplashs" + nr]._x = this._x;
_root.level["watersplashs" + nr]._y = this._y;
_root.level["watersplashs" + nr]._width = this.diameter * 2;
_root.level["watersplashs" + nr]._yscale = Math.sqrt(((this.ySpeed * 100) / 15) * ((this.ySpeed * 100) / 15));
while (_root.level.voorrand.hitTest(_root.level["watersplashs" + nr]._x + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._y = _root.level["watersplashs" + nr]._y - 1;
}
if (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x + 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x + 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._x = _root.level["watersplashs" + nr]._x - 1;
}
}
if (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x - 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((_root.level["watersplashs" + nr]._x - 31.5) + _root.level._x, _root.level["watersplashs" + nr]._y + _root.level._y, true)) {
_root.level["watersplashs" + nr]._x = _root.level["watersplashs" + nr]._x + 1;
}
}
}
}
}
this.binlucht = this.inlucht;
};
}
}
}
function itemlooper() {
j = 0;
while (j < _root.itemsarray.length) {
_root.level[_root.itemsarray[j]].itemScript();
j++;
}
}
function iteminterface() {
switch (_root.iteminv) {
case "" :
_root.inventory.item.removeMovieClip();
_root.inventory._visible = false;
break;
default :
_root.inventory._visible = true;
_root.inventory.attachMovie(_root.iteminv, "item", 1);
}
}
function init_door(naam, functie) {
gevonden = false;
k = 0;
while (k < _root.doorsarray.length) {
if (_root.doorsarray[k][0] == naam) {
gevonden = true;
}
k++;
}
if (!gevonden) {
_root.doorsarray.push([naam, functie]);
}
}
function loop_doors() {
j = 0;
while (j < _root.doorsarray.length) {
if (!_root.level.grond[_root.doorsarray[j][0]].done) {
waarde = _root.level.grond[_root.doorsarray[j][0]][_root.doorsarray[j][1]]();
} else {
_root.doorsarray.splice(j, 1);
j--;
}
if (waarde) {
_root.doorsarray.splice(j, 1);
j--;
}
j++;
}
}
function stopgeluid() {
_root.sound_bobble.setVolume(0);
_root.sound_music.setVolume(0);
_root.sound_rock.setVolume(0);
_root.sound_bobble.setVolume(0);
_root.sound_plons.setVolume(0);
_root.sound_plons2.setVolume(0);
_root.sound_item.setVolume(0);
}
function startgeluid() {
_root.sound_bobble.setVolume(60);
_root.sound_music.setVolume(100);
_root.sound_bobble.setVolume(100);
_root.sound_plons.setVolume(100);
_root.sound_plons2.setVolume(100);
_root.sound_item.setVolume(100);
}
function bobble_geluid() {
if (_root.geluidon) {
_root.sound_bobble.attachSound(("bobble" + bobblenummer) + ".wav");
_root.sound_bobble.start(0, 1);
bobblenummer = random(9);
if (bobblenummer > 8) {
bobblenummer = 1;
}
}
}
function musicchange_geluid(naam) {
_root.sound_music.stop();
_root.sound_music.attachSound(naam);
_root.sound_music.start(0, 999);
_root.vorigmusic = naam;
}
function musicvolchange_geluid() {
if (_root.geluidon) {
if (_root.level.player.inlucht == 1) {
_root.sound_music.setVolume(_root.sound_music.getVolume() - 20);
if (_root.sound_music.getVolume() <= 20) {
_root.sound_music.setVolume(20);
}
} else {
_root.sound_music.setVolume(_root.sound_music.getVolume() + 10);
if (_root.sound_music.getVolume() >= 100) {
_root.sound_music.setVolume(100);
}
}
}
}
_root.sound_bobble.stop();
_root.sound_music.stop();
_root.sound_rock.stop();
_root.sound_bobble.stop();
_root.sound_plons.stop();
_root.sound_plons2.stop();
_root.sound_item.stop();
_root.keys = new Object();
freedepth = 801;
uitslagpos = false;
_root.addTekst = function (tekst, tijd) {
gevonden = false;
k = 0;
while (k < _root.tekstregels.length) {
if (_root.tekstregels[k][0] == tekst) {
gevonden = true;
}
k++;
}
trace(gevonden);
if (!gevonden) {
_root.tekstregels.push([tekst, tijd * 24]);
}
};
_root.tekstvakScript = function () {
if ((!_root.tekstvak.actief) && (_root.tekstregels.length > 0)) {
_root.tekstvak.tekstveld.text = _root.tekstregels[0][0];
_root.tekstvak.tijd = _root.tekstregels[0][1];
_root.tekstvak.teller = 0;
_root.tekstvak.actief = true;
_root.tekstvak._visible = true;
}
if (_root.tekstvak.actief) {
_root.tekstvak.teller++;
if (_root.tekstvak.tijd == _root.tekstvak.teller) {
_root.tekstvak.actief = false;
_root.tekstvak._visible = false;
_root.tekstregels.shift();
}
}
};
_root.staraantal = 0;
_root.staractief = false;
_root.starInvScript = function () {
nuaantal = 0;
i = 0;
while (i < 100) {
if (_root.starArray[i] == true) {
nuaantal++;
}
i++;
}
if (nuaantal != _root.staraantal) {
trace(_root.star_inventory.aantal);
_root.staraantal = nuaantal;
_root.star_inventory.tekstveld.text = _root.staraantal + "/15";
_root.star_inventory.tijd = 120;
_root.star_inventory.teller = 0;
_root.staractief = true;
_root.star_inventory._visible = true;
}
if (_root.staraantal == 15) {
_root.allesterren = true;
}
if (_root.staractief) {
_root.star_inventory.teller++;
if (_root.star_inventory.tijd == _root.star_inventory.teller) {
_root.staractief = false;
_root.star_inventory._visible = false;
_root.minterface._visible = false;
Mouse.hide();
}
}
};
bobblenummer = 1;
_root.createEmptyMovieClip("sound_bobbleMC", -101);
_root.sound_bobble = new Sound(_root.sound_bobbleMC);
_root.sound_bobble.setVolume(50);
_root.createEmptyMovieClip("sound_musicMC", -100);
_root.sound_music = new Sound(_root.sound_musicMC);
_root.sound_music.setVolume(0);
_root.gamevars.muzieknummer = "";
_root.vorigmusic = "";
_root.createEmptyMovieClip("sound_rockMC", -102);
_root.sound_rock = new Sound(_root.sound_rockMC);
_root.sound_rock.attachSound("rock.wav");
_root.sound_rock.start(0, 9999);
_root.sound_rock.onSoundComplete = function () {
if (_root.geluidon) {
_root.sound_rock.start(0, 9999);
}
};
_root.sound_rock.setVolume(0);
_root.createEmptyMovieClip("sound_plonsMC", -103);
_root.sound_plons = new Sound(_root.sound_plonsMC);
_root.sound_plons.attachSound("plons");
_root.createEmptyMovieClip("sound_plonsMC2", -104);
_root.sound_plons2 = new Sound(_root.sound_plonsMC2);
_root.sound_plons2.attachSound("plons2");
_root.createEmptyMovieClip("sound_item", -105);
_root.sound_item = new Sound(_root.sound_item);
_root.sound_item.attachSound("huub.wav");
stop();
luchtbeltoegestaan = true;
stageh = 550;
stagev = 400;
stergetal = 0;
gamestat = "change";
geluidon = true;
trefound = false;
inmenu = false;
_root.gamevars = new Object();
init_level("level_tutorial", "startpos1", 180, "space_loop.wav");
_root.attachMovie("menu_interface", "minterface", 4);
_root.attachMovie("inventory2", "trefoundMC", 5);
_root.trefoundMC._y = 45.5;
_root.trefoundMC._x = 430.4;
_root.trefoundMC._visible = false;
_root.minterface._y = 45.5;
_root.minterface._x = 189.83;
_root.minterface._visible = false;
_root.minterface.menu_button.onPress = function () {
_root.exit_level();
};
_root.minterface.geluid_button.onPress = function () {
if (_root.geluidon) {
_root.geluidon = false;
_root.minterface.geluid_button.gotoAndStop(2);
} else {
_root.geluidon = true;
_root.startgeluid();
_root.minterface.geluid_button.gotoAndStop(1);
}
trace(_root.geluidon);
};
_root.iteminv = "";
_root.iteminvname = "";
_root.starArray = [];
i = 0;
while (i < 100) {
_root.starArray[i] = false;
i++;
}
_root.bxmouse = _root._xmouse;
_root.bymouse = _root._ymouse;
Mouse.hide();
_root.onEnterFrame = function () {
switch (gamestat) {
case "change" :
if (_root.gamevars.levelchange == 1) {
_root.levelswitch._x = _root.levelswitch._x + 50;
if (_root.levelswitch._x >= 275) {
_root.gamevars.levelchange = 2;
init_levelchange();
}
if ((_root.gamevars.muzieknummer != _root.vorigmusic) && (_root.geluidon)) {
getal = ((_root.levelswitch._x - -775) * 100) / 1050;
_root.sound_music.setVolume(100 - getal);
}
}
if (_root.gamevars.levelchange >= 2) {
_root.levelswitch._x = _root.levelswitch._x + 50;
if (_root.gamevars.levelchange == 3) {
_root.level.nux = _root.level.xmax - stageh;
if ((-_root.level.nux) > _root.level._x) {
_root.level._x = -_root.level.nux;
}
if (_root.level._x > _root.level.xmin) {
_root.level._x = _root.level.xmin;
}
_root.level.nuy = _root.level.ymax - stagev;
if ((-_root.level.nuy) > _root.level._y) {
_root.level._y = -_root.level.nuy;
}
if (_root.level._y > _root.level.ymin) {
_root.level._y = _root.level.ymin;
}
_root.iteminterface();
_root.sound_rock.setVolume(0);
_root.bxmouse = _root._xmouse;
_root.bymouse = _root._ymouse;
if (_root.gamevars.muzieknummer != _root.vorigmusic) {
_root.musicchange_geluid(_root.gamevars.muzieknummer);
}
}
if (((_root.gamevars.muzieknummer != _root.vorigmusic) && (!_root.level.lucht.hitTest(_root.level[_root.gamevars.beginpos]._x + _root.level._x, _root.level[_root.gamevars.beginpos]._y + _root.level._y, true))) && (_root.geluidon)) {
getal = ((1450 - _root.levelswitch._x) * 100) / 1050;
if (getal >= 100) {
getal = 100;
}
_root.sound_music.setVolume(100 - getal);
}
_root.gamevars.levelchange++;
if (_root.levelswitch._x >= 1450) {
_root.vorigmusic = _root.gamevars.muzieknummer;
_root.levelswitch.removeMovieClip();
gamestat = "play";
}
}
break;
case "play" :
checkkeys();
_root.level.player.speelscript();
_root.level.levelscript();
_root.itemlooper();
_root.loop_doors();
_root.tekstvakScript();
_root.starInvScript();
setkeysfalse();
if (((((_root._xmouse - _root.bxmouse) > 5) || ((_root._xmouse - _root.bxmouse) < -5)) || ((_root._ymouse - _root.bymouse) > 5)) || ((_root._ymouse - _root.bymouse) < -5)) {
_root.star_inventory.tekstveld.text = _root.staraantal + "/15";
_root.star_inventory.tijd = 120;
_root.star_inventory.teller = 0;
_root.staractief = true;
_root.star_inventory._visible = true;
_root.minterface._visible = true;
Mouse.show();
}
if (!_root.geluidon) {
_root.stopgeluid();
}
if (_root.trefound) {
_root.trefoundMC._visible = true;
}
_root.bxmouse = _root._xmouse;
_root.bymouse = _root._ymouse;
break;
case "victory" :
_root.trefoundMC._visible = false;
setkeysfalse();
_root.level.player.speelscript();
_root.tekstvakScript();
_root.starInvScript();
if (_root.geluidon) {
break;
}
_root.stopgeluid();
}
};
Symbol 45 MovieClip [sploshs] Frame 48
_parent.removeMovieClip();
Symbol 66 MovieClip Frame 48
_parent.removeMovieClip();
Symbol 70 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
gotoAndPlay(random(144) + 2);
Symbol 95 MovieClip Frame 146
gotoAndPlay (2);
Instance of Symbol 104 MovieClip "door1" in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._x = this._x - 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._x < -81) {
this._x = -81;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 124 MovieClip Frame 1
getal = random(4) + 1;
gotoAndStop(getal);
Symbol 128 MovieClip [level_map3] Frame 1
_root.init_background("background2");
xmin = 618;
xmax = 2000;
ymin = 876;
ymax = 580;
Instance of Symbol 89 MovieClip in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
if (!_root.subadon) {
this._visible = false;
}
}
Instance of Symbol 108 MovieClip "startpos1" in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = -135;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map4", "startpos1", -90, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 112 MovieClip in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 5, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map2", "startpos2", 0, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key3", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 112 MovieClip in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 8, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange3" in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map5", "startpos1", 180, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 108 MovieClip "startpos3" in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 124 MovieClip in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 128 MovieClip [level_map3] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Symbol 145 MovieClip [level_map8] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
Instance of Symbol 108 MovieClip "startpos1" in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 112 MovieClip in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 11, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange3" in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map6", "startpos3", 0, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 0;
}
Instance of Symbol 110 MovieClip "mapchange5" in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map7", "startpos2", 0, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 124 MovieClip in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 145 MovieClip [level_map8] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 127 MovieClip "voorrand" in Symbol 145 MovieClip [level_map8] Frame 1
/* no clip actions */
Instance of Symbol 153 MovieClip "door1" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 25;
_root.trilllevel(3);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y > 1556.7) {
this._y = 1556.7;
}
return(false);
};
}
Instance of Symbol 153 MovieClip "door2" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 25;
_root.trilllevel(3);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y > 1485.6) {
this._y = 1485.6;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Instance of Symbol 155 MovieClip "door3" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._rotation = this._rotation - 4;
this._x = this._x - 7;
_root.trilllevel(3);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._x < 426.6) {
this._x = 426.6;
this.done = true;
_root.sound_rock.setVolume(0);
}
return(false);
};
}
Instance of Symbol 153 MovieClip "door4" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 25;
_root.trilllevel(3);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y > 1392.3) {
this._y = 1392.3;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Instance of Symbol 153 MovieClip "door5" in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._x = this._x - 50;
_root.trilllevel(3);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._x < 3040.6) {
this._x = 3040.6;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 159 MovieClip [level_map13] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
Instance of Symbol 151 MovieClip in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key3", "key6", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 89 MovieClip in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
if (!_root.subadon) {
this._visible = false;
}
}
Instance of Symbol 108 MovieClip "startpos1" in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map1", "startpos3", 0, "menuaudio.wav"]);
this._visible = false;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door3", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 124 MovieClip in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door4", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 159 MovieClip [level_map13] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door5", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 162 MovieClip "door1" in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._rotation = this._rotation + 1;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._rotation > 28) {
this._rotation = 28;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 165 MovieClip [level_map11] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
Instance of Symbol 151 MovieClip in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key3", "key6", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 108 MovieClip "startpos1" in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 112 MovieClip in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 15, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map12", "startpos1", 45, "space_loop.wav"]);
this._visible = false;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map10", "startpos2", 180, "background1 .wav"]);
this._visible = false;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key6", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key6", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 124 MovieClip in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 165 MovieClip [level_map11] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Symbol 169 MovieClip [level_map10] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
Instance of Symbol 108 MovieClip "startpos1" in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 112 MovieClip in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 13, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map11", "startpos1", 0, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map9", "startpos2", 180, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 124 MovieClip in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 169 MovieClip [level_map10] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 171 MovieClip "door2" in Symbol 173 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 2;
_root.trilllevel(2);
_root.sound_rock.setVolume(100);
if (this._y > 394) {
this._y = 394;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 175 MovieClip [level_map9] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
Instance of Symbol 89 MovieClip in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
if (!_root.subadon) {
this._visible = false;
}
}
Instance of Symbol 108 MovieClip "startpos1" in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 112 MovieClip in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 12, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map10", "startpos1", 0, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map6", "startpos4", -90, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 124 MovieClip in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 175 MovieClip [level_map9] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 171 MovieClip "door2" in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y > 394) {
this._y = 394;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 180 MovieClip [level_map7] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
Instance of Symbol 108 MovieClip "startpos1" in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 112 MovieClip in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 10, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange3" in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map8", "startpos1", 135, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 110 MovieClip "mapchange5" in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map6", "startpos2", 90, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key5", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 124 MovieClip in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 180 MovieClip [level_map7] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 153 MovieClip "door1" in Symbol 184 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._x = this._x + 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._x > 791) {
this._x = 791;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Instance of Symbol 182 MovieClip "door2" in Symbol 184 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y - 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y < -764) {
this._y = -764;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 186 MovieClip [level_map6] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
Instance of Symbol 108 MovieClip "startpos1" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 112 MovieClip in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 9, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map5", "startpos3", 0, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 110 MovieClip "mapchange3" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map8", "startpos2", 180, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map5", "startpos2", 0, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 108 MovieClip "startpos3" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos4" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 110 MovieClip "mapchange4" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map7", "startpos1", -90, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 110 MovieClip "mapchange5" in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map9", "startpos1", 90, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 151 MovieClip in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key2", "key4", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key4", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 151 MovieClip in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key", "key5", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 124 MovieClip in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 186 MovieClip [level_map6] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Symbol 189 MovieClip [level_map5] Frame 1
xmin = 70;
xmax = 714;
ymin = 477;
ymax = 406;
Instance of Symbol 108 MovieClip "startpos1" in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 112 MovieClip in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 7, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map6", "startpos1", 180, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 110 MovieClip "mapchange3" in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map6", "startpos1", 180, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map3", "startpos3", 0, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos3" in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 124 MovieClip in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 189 MovieClip [level_map5] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 153 MovieClip "door1" in Symbol 195 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._x = this._x - 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._x < 449) {
this._x = 449;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 196 MovieClip [level_map4] Frame 1
xmin = 102;
xmax = 980;
ymin = 1236;
ymax = 374;
Instance of Symbol 108 MovieClip "startpos1" in Symbol 196 MovieClip [level_map4] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 112 MovieClip in Symbol 196 MovieClip [level_map4] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 6, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 196 MovieClip [level_map4] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map3", "startpos2", 90, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 196 MovieClip [level_map4] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 124 MovieClip in Symbol 196 MovieClip [level_map4] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 196 MovieClip [level_map4] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 151 MovieClip in Symbol 196 MovieClip [level_map4] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key2", "key3", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 171 MovieClip "door2" in Symbol 201 MovieClip [level_map2_col] Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._x = this._x + 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._x > 176.3) {
this._x = 176.3;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 203 MovieClip [level_map2] Frame 1
_root.init_background("background1");
xmin = 620;
xmax = 897;
ymin = 876;
ymax = 280;
Instance of Symbol 108 MovieClip "startpos1" in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = -135;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map3", "startpos1", 180, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 112 MovieClip in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 4, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map1", "startpos2", -62, "space_loop.wav"]);
this._visible = false;
}
Instance of Symbol 151 MovieClip in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key", "key2", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key2", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 124 MovieClip in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 203 MovieClip [level_map2] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 162 MovieClip "door1" in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._rotation = this._rotation - 1;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._rotation < -178) {
this._rotation = -178;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
this.doorScript2 = function () {
this._rotation = this._rotation + 1;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._rotation > -92) {
this._rotation = -92;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Instance of Symbol 215 MovieClip "door2" in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y - 1;
_root.level.grond.door3._y = _root.level.grond.door3._y + 1;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y < 530) {
this._y = 530;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Instance of Symbol 153 MovieClip "door4" in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._x = this._x + 2;
_root.trilllevel(3.5);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._x > 1643) {
this._x = 1643;
}
return(false);
};
}
Instance of Symbol 216 MovieClip "door5" in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._rotation = this._rotation + 2;
_root.trilllevel(3);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._rotation > 0) {
this._rotation = 0;
this.done = true;
_root.sound_rock.setVolume(0);
}
return(false);
};
}
Instance of Symbol 153 MovieClip "door6" in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 10;
_root.trilllevel(3);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y > 1437.3) {
this._y = 1437.3;
}
return(false);
};
}
Symbol 223 MovieClip [level_map12] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
Instance of Symbol 108 MovieClip "startpos1" in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = -135;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map11", "startpos2", -135, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 112 MovieClip in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 14, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 151 MovieClip in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key4", "key8", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key7", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 151 MovieClip in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key3", "key7", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key8", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] "switchtre" in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door4", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map13", "startpos1", 90, "runningbells.wav"]);
this._visible = false;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door5", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door6", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 211 MovieClip [treasure] "treasure" in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (enterFrame) {
if (_root.level.switchtre.hitTest(_root.level.player) && (!_root.trefound)) {
_root.trefound = true;
this._visible = false;
_root.vorigmusic = "runningbells.wav";
_root.musicchange_geluid("runningbells.wav");
}
}
Instance of Symbol 124 MovieClip in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 223 MovieClip [level_map12] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Symbol 241 MovieClip [level_map1] Frame 1
_root.init_background("background1");
xmin = 545;
xmax = 2208;
ymin = 720;
ymax = 1000;
Instance of Symbol 98 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
if (_root.trefound) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 89 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
if (!_root.subadon) {
this._visible = false;
}
}
Instance of Symbol 147 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
if (_root.trefound) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 147 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
if (_root.trefound) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 147 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
if (_root.trefound) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 108 MovieClip "startpos1" in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = -135;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map2", "startpos1", 122, "background1.wav"]);
this._visible = false;
}
Instance of Symbol 112 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 3, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 112 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 1, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 112 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("star", "star", this._x, this._y, 2, 1, true, 1, 0.7, 0.5);
}
Instance of Symbol 233 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
this.done = false;
_root.gamevars.levelobjects.push([this._name, "tekst", true]);
this.tekstScript = function () {
_root.addTekst("As a second objective in the game you can also collect 15 stars", 4);
_root.addTekst("They are all on hidden places, find them all and you get a special prize", 5);
};
}
Instance of Symbol 108 MovieClip "startpos3" in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 151 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("strandbal", "strandballetje", this._x, this._y, 18, 1, false, 1, 0.7, 0.5);
}
Instance of Symbol 151 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("strandbal", "strandballetje", this._x, this._y, 18, 1, false, 1, 0.7, 0.5);
}
Instance of Symbol 124 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 211 MovieClip [treasure] "treasure" in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 238 MovieClip "treasuresch" in Symbol 241 MovieClip [level_map1] Frame 1
onClipEvent (load) {
if (_root.trefound) {
this._visible = true;
} else {
this._visible = false;
}
this.done = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.level.player) && (_root.trefound)) && (!this.done)) {
_root.level.treasure._visible = true;
_root.gamestat = "victory";
this._visible = false;
this.done = true;
_root.attachMovie("speluitgespeeld", "speluitgespeeld1", 6);
_root.speluitgespeeld1._x = 275;
_root.speluitgespeeld1._y = 200;
_root.speluitgespeeld1.teller = 0;
_root.speluitgespeeld1.onEnterFrame = function () {
this.teller = this.teller + 1;
if (this.teller > 150) {
_root.exit_level();
this.removeMovieClip();
}
};
}
}
Instance of Symbol 171 MovieClip "door2" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y - 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y < 576) {
this._y = 576;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Instance of Symbol 153 MovieClip "door1" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y > 1250) {
this._y = 1250;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 254 MovieClip [level_tutorial2] Frame 1
xmin = 545;
xmax = 2137;
ymin = 720;
ymax = 1000;
Instance of Symbol 249 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
if (!_root.acces) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 108 MovieClip "startpos1" in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = -135;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_map1", "startpos1", 90, "space_loop.wav"]);
this._visible = false;
}
Instance of Symbol 110 MovieClip "mapchange2" in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_tutorial", "startpos2", -90, "space_loop.wav"]);
this._visible = false;
}
Instance of Symbol 151 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("strandbal", "strandballetje", this._x, this._y, 18, 1, false, 1, 0.7, 0.5);
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "key1", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 233 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
this.done = false;
_root.gamevars.levelobjects.push([this._name, "tekst", true]);
this.tekstScript = function () {
_root.addTekst("While holding UP, press SPACE once to increase speed", 8);
_root.addTekst("Try to get over the right island!", 8);
};
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door1", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 233 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
this.done = false;
_root.gamevars.levelobjects.push([this._name, "tekst", true]);
this.tekstScript = function () {
_root.addTekst("Some doors open by themself, others need to be opened on a special way", 8);
};
}
Instance of Symbol 233 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
this.done = false;
_root.gamevars.levelobjects.push([this._name, "tekst", true]);
this.tekstScript = function () {
_root.addTekst("This door only opens if you have a special key", 4);
_root.addTekst("Most of the time there is a hint wich key you need", 6);
};
}
Instance of Symbol 233 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
this.done = false;
_root.gamevars.levelobjects.push([this._name, "tekst", true]);
this.tekstScript = function () {
_root.addTekst("The item is now in your inventory!", 6);
_root.addTekst("You can only hold one item at the time", 4);
};
}
Instance of Symbol 151 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("strandbal", "strandballetje", this._x, this._y, 18, 1, false, 1, 0.7, 0.5);
}
Instance of Symbol 151 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("strandbal", "strandballetje", this._x, this._y, 18, 1, false, 1, 0.7, 0.5);
}
Instance of Symbol 124 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 151 MovieClip in Symbol 254 MovieClip [level_tutorial2] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("key", "key1", this._x, this._y, 15, 1, true, -0.5, 0.7, 0.5);
}
Instance of Symbol 262 MovieClip "door2" in Symbol 264 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y > 712.9) {
this._y = 712.9;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 284 MovieClip [level_menu] Frame 1
xmin = this.xminMC._x * -1;
xmax = this.xmaxMC._x;
ymin = this.yminMC._y * -1;
ymax = this.ymaxMC._y;
this.xminMC._visible = false;
this.xmaxMC._visible = false;
this.yminMC._visible = false;
this.ymaxMC._visible = false;
_root.init_background("background1");
this.logoSpele.swapDepths(2000003);
Instance of Symbol 259 MovieClip in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (load) {
if (!_root.acces) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 108 MovieClip "startpos1" in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = -90;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_tutorial2", "startpos1", 90, "space_loop.wav"]);
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 151 MovieClip in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("strandbal", "strandballetje", this._x, this._y, 18, 1, false, 1, 0.3, 0.5);
}
Instance of Symbol 124 MovieClip in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = (random(3) - 1) * 0.2;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 277 MovieClip "knop" in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.michielkrol.nl", "_blank");
};
}
Instance of Symbol 283 MovieClip in Symbol 284 MovieClip [level_menu] Frame 1
onClipEvent (load) {
this.onPress = function () {
getURL ("http://www.happytree.com", "_blank");
};
}
Instance of Symbol 262 MovieClip "door2" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
this.done = false;
this.doorScript = function () {
this._y = this._y + 2;
_root.trilllevel(2);
if (_root.geluidon) {
_root.sound_rock.setVolume(100);
}
if (this._y > 712.9) {
this._y = 712.9;
this.done = true;
_root.sound_rock.setVolume(0);
return(true);
}
return(false);
};
}
Symbol 291 MovieClip [level_tutorial] Frame 1
xmin = 330;
xmax = 717;
ymin = 870;
ymax = 500;
_root.init_background("background1");
Instance of Symbol 287 MovieClip in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
if (!_root.acces) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 89 MovieClip in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
if (!_root.subadon) {
this._visible = false;
}
}
Instance of Symbol 108 MovieClip "startpos1" in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = 180;
}
Instance of Symbol 108 MovieClip "startpos2" in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
this._visible = false;
rotation = -90;
}
Instance of Symbol 110 MovieClip "mapchange1" in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "mapchange", "level_tutorial2", "startpos1", 90, "space_loop.wav"]);
}
Instance of Symbol 151 MovieClip in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
this._visible = false;
_root.init_item("strandbal", "strandballetje", this._x, this._y, 18, 1, false, 1, 0.7, 0.5);
}
Instance of Symbol 233 MovieClip in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
this._visible = false;
this.done = false;
_root.gamevars.levelobjects.push([this._name, "tekst", true]);
this.tekstScript = function () {
if (!_root.acces) {
_root.addTekst("Use the Arrow Keys to move the submarine", 3);
_root.addTekst("Press UP to move to the direction you are pointing\nPress DOWN to move to the opposit direction", 8);
_root.addTekst("Press LEFT to turn left \nPress RIGHT to turn right", 8);
_root.addTekst("Move the mouse to make the\ninterface visible", 8);
} else {
_root.addTekst("Press once on SPACE to start the Submarine rotating", 8);
_root.addTekst("Press once again SPACE to let it stop", 8);
_root.addTekst("Hold SPACE to move to the direction you are pointing", 8);
_root.addTekst("Press ENTER to turn of the sound", 8);
_root.addTekst("Press BACKSPACE to go back to the menu", 8);
}
};
}
Instance of Symbol 114 MovieClip [submarine_star] in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
_root.gamevars.levelobjects.push([this._name, "switch", "", "door2", "doorScript"]);
this._alpha = 0;
}
Instance of Symbol 124 MovieClip in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Instance of Symbol 124 MovieClip in Symbol 291 MovieClip [level_tutorial] Frame 1
onClipEvent (load) {
this.diameter = 40;
this.maxspeed = 1;
this.thrust = 0.1;
this.xSpeed = 0;
this.ySpeed = 0;
this.rotation = this._rotation;
}
onClipEvent (enterFrame) {
this._rotation = rotation;
this.xSpeed = this.xSpeed + ((random(3) - 1) * 0.2);
this.ySpeed = this.ySpeed + ((random(3) - 1) * 0.2);
this.speed = Math.sqrt((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed));
if (this.xSpeed > 5) {
this.xSpeed = 5;
}
if (this.xSpeed < -5) {
this.xSpeed = -5;
}
if (this.ySpeed < -2) {
this.ySpeed = -2;
}
if (this.ySpeed > 2) {
this.ySpeed = -2;
}
if (this.speed > (this.maxSpeed / 5)) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
}
this._x = this._x + this.xSpeed;
this._y = this._y - this.ySpeed;
if (this.xSpeed > 1) {
this._xscale = -100;
} else if (this.xSpeed < -1) {
this._xscale = 100;
}
rotation = this.rotation;
rotation = rotation + (random(4) - 2);
this._rotation = 0;
if (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x + this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x - 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
while (_root.level.grond.hitTest((this._x - this.diameter) + _root.level._x, this._y + _root.level._y, true)) {
this.collisionx = 1;
this._x = this._x + 1;
}
this.xSpeed = this.xSpeed * -1;
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y + this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y - 1;
}
rotation = rotation + 20;
}
if (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
if (this.inlucht == 1) {
this.ySpeed = this.ySpeed * -0.05;
}
while (_root.level.grond.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this.collisionx = 1;
this._y = this._y + 1;
}
rotation = rotation + 20;
}
if (_root.level.lucht.hitTest(this._x + _root.level._x, (this._y - this.diameter) + _root.level._y, true)) {
this._y = this._y + 2;
this.ySpeed = this.ySpeed * 0.1;
this.inlucht = 1;
} else {
this.inlucht = 0;
}
}
Symbol 303 MovieClip Frame 1
stop();
Symbol 334 MovieClip [ADBALK] Frame 1
this.knop_games4site.onRelease = function () {
getURL ("http://www.happytree.com/submarine/index1.html", "_blank");
};
this.knop_happytree.onRelease = function () {
getURL ("http://www.happytree.com/submarine/index2.html", "_blank");
};
this.knop_moregames.onRelease = function () {
getURL ("http://www.happytree.com/submarine/index3.html", "_blank");
};
Instance of Symbol 277 MovieClip "knop" in Symbol 344 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.michielkrol.nl", "_blank");
};
}
Symbol 356 MovieClip Frame 1
stop();