Frame 1
ifFrameLoaded (1) {
attachMovie("taustakuva", "taustakuva", 0);
attachMovie("tausta", "tausta", 1);
attachMovie("alkutekstit", "alkutekstit", 9999);
attachMovie("pisteytys", "pisteytys", 5000);
pisteytys._x = 280;
pisteet = 0;
a = 0;
level++;
leveltext = "level " add level;
scrolling = 0;
scrollstate = 0;
pisteet = 0;
pistemax = 0;
morkoi = 0;
if (level == 1) {
var x1 = [0, 0, 0, 0, 0, 0, 20, 20, 20, 0, 0, 0, 0, 0, 0];
var x2 = [0, 0, 0, 0, 0, 32, 0, 20, 0, 0, 0, 0, 0, 0, 0];
var x3 = [0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0];
var x4 = [0, 0, 0, 99, 0, 0, 0, 20, 0, 2, 62, 62, 2, 0, 0];
var x5 = [0, 0, 2, 2, 2, 0, 0, 20, 0, 1, 61, 61, 1, 0, 0];
var x6 = [0, 0, 1, 0, 1, 10, 0, 20, 0, 1, 60, 60, 1, 0, 0];
var x7 = [0, 0, 1, 1, 1, 10, 0, 20, 0, 1, 21, 21, 1, 0, 0];
var x8 = [0, 0, 1, 0, 1, 10, 0, 20, 0, 1, 2, 2, 1, 0, 0];
var x9 = [0, 0, 1, 1, 1, 10, 0, 51, 0, 20, 20, 20, 1, 0, 0];
var x10 = [0, 0, 1, 0, 1, 4, 4, 4, 4, 4, 4, 4, 1, 0, 0];
var morkonopeudet = [1, 192];
pistemax = 15;
}
if (level == 2) {
var x1 = [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var x2 = [20, 0, 0, 32, 0, 0, 0, 73, 0, 0, 0, 0, 71, 71, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var x3 = [6, 0, 0, 74, 71, 71, 71, 70, 72, 72, 0, 0, 40, 0, 70, 72, 0, 0, 0, 0, 0, 0, 0, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1];
var x4 = [5, 0, 0, 0, 0, 0, 0, 70, 20, 20, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1];
var x5 = [5, 0, 0, 0, 0, 0, 71, 70, 72, 72, 0, 0, 0, 0, 70, 0, 0, 0, 0, 13, 0, 0, 0, 74, 71, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var x6 = [5, 50, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0];
var x7 = [5, 62, 62, 62, 62, 62, 7, 70, 72, 0, 0, 0, 0, 20, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 70, 0, 20, 0, 20, 0, 20, 0, 1, 1, 1, 1, 1];
var x8 = [5, 61, 61, 61, 61, 61, 5, 70, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1];
var x9 = [5, 60, 60, 60, 60, 31, 5, 7, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 33, 20, 0, 20, 0, 20, 0, 1, 1, 1, 1, 1];
var x10 = [5, 7, 7, 7, 7, 7, 5, 5, 0, 0, 0, 0, 0, 5, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 7, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1];
var morkonopeudet = [1, 192, -2, -128, 4, 192];
var alustanopeudet = [0.03, 64];
pistemax = 15;
}
(level);// not popped
}
if (() == ()) {
var x1 = [0, 0, 0, 0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 61, 61, 61, 61, 61, 1, 1, 0, 0, 10, 0, 0, 99];
var x9 = [0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 60, 60, 60, 60, 60, 1, 1, 0, 0, 0, 0, 0, 10];
var x10 = [0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 1, 60, 60, 60, 60, 60, 1, 1, 0, 0, 0, 0, 0, 0];
var alustanopeudet = [2, 120, 2, 64, -2, 64];
var morkonopeudet = [3, 108, 3, 140];
pistemax = 15;
}
if (level == 4) {
var x1 = [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1];
var x2 = [0, 0, 0, 0, 1, 60, 60, 60, 31, 1, 0, 0, 40, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1];
var x3 = [2, 0, 0, 0, 1, 60, 60, 1, 60, 1, 0, 0, 10, 10, 10, 0, 0, 13, 0, 0, 0, 0, 0, 13, 0, 0, 1, 0, 1, 1, 1];
var x4 = [1, 0, 0, 0, 1, 60, 60, 1, 60, 1, 20, 0, 0, 5, 0, 0, 0, 20, 0, 0, 0, 0, 0, 20, 0, 0, 1, 1, 1, 1, 1];
var x5 = [1, 62, 62, 62, 1, 60, 60, 1, 60, 1, 10, 0, 0, 2, 0, 0, 0, 0, 0, 20, 41, 20, 0, 0, 0, 0, 1, 1, 0, 1, 1];
var x6 = [1, 61, 61, 61, 1, 60, 60, 1, 60, 1, 0, 0, 20, 1, 0, 0, 0, 20, 0, 0, 0, 0, 0, 20, 0, 0, 1, 1, 1, 1, 1];
var x7 = [1, 60, 60, 60, 60, 60, 60, 1, 60, 1, 50, 0, 10, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 1, 1];
var x8 = [1, 60, 60, 21, 21, 60, 31, 1, 60, 1, 62, 62, 62, 1, 20, 20, 0, 20, 0, 0, 13, 0, 0, 20, 0, 0, 2, 2, 2, 1, 1];
var x9 = [1, 60, 63, 60, 60, 63, 60, 1, 60, 60, 61, 61, 61, 1, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1];
var x10 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1];
var alustanopeudet = [0.03, 64, 0.03, 64, -0.03, 64];
var morkonopeudet = [-1, -96, -3, -160];
pistemax = 15;
}
if (level == 5) {
var x1 = [0, 20, 0, 0, 0, 0, 99, 0, 0, 0, 0, 20];
var x2 = [0, 0, 12, 0, 12, 0, 12, 0, 12, 0, 12];
var x3 = [0, 0, 0, 20, 0, 0, 0, 0, 0, 20, 0];
var x4 = [0, 0, 0, 0, 0, 20, 0, 20, 0, 0, 0];
var x5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var x6 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var x7 = [0, 0, 0, 0, 0, 20, 0, 20, 0, 0, 0];
var x8 = [0, 0, 0, 20, 0, 0, 0, 0, 0, 20, 0];
var x9 = [0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20];
var x10 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var alustanopeudet = [2, 192, 1, 192, 3, 192, 1, 192, 2, 192];
pistemax = 12;
}
if (level == 5) {
var x1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var x2 = [0, 0, 0, 0, 0, 0, 0, 0, 0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switchpoint = (x1.length - 10) * 32;
alkutekstit.scrollspeed = 1;
var yarray = [x1, x2, x3, x4, x5, x6, x7, x8, x9, x10];
alustai = 0;
morkoi = 0;
y = 0;
while (y < 10) {
x = 0;
while (x < x1.length) {
if (yarray[y][x] == 1) {
nimi = "palikka" add a;
tausta.attachMovie("taso", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 2) {
nimi = "palikka" add a;
tausta.attachMovie("tasotop", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 3) {
nimi = "palikka" add a;
tausta.attachMovie("muta", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 4) {
nimi = "palikka" add a;
tausta.attachMovie("mutatop", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 5) {
nimi = "palikka" add a;
tausta.attachMovie("jaa", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 6) {
nimi = "palikka" add a;
tausta.attachMovie("jaatop", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 7) {
nimi = "palikka" add a;
tausta.attachMovie("jaaliukas", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 10) {
nimi = "palikka" add a;
tausta.attachMovie("alusta", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 20) {
nimi = "palikka" add a;
tausta.attachMovie("bonari", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 21) {
nimi = "palikka" add a;
tausta.attachMovie("vesidummy", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
nimi = "palikka" add a;
tausta.attachMovie("bonari", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 30) {
nimi = "palikka" add a;
tausta.attachMovie("morko", nimi, a + 300);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 31) {
nimi = "palikka" add a;
tausta.attachMovie("vesidummy", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
nimi = "palikka" add a;
tausta.attachMovie("kala", nimi, a + 300);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 32) {
nimi = "palikka" add a;
tausta.attachMovie("lintu", nimi, a + 300);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 33) {
nimi = "palikka" add a;
tausta.attachMovie("jatskiauto", nimi, a + 300);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 40) {
nimi = "palikka" add a;
tausta.attachMovie("kirves", nimi, a + 200);
setProperty("tausta." + nimi, _x , (x * 32) + 16);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 41) {
nimi = "palikka" add a;
tausta.attachMovie("kirves360", nimi, a + 200);
setProperty("tausta." + nimi, _x , (x * 32) + 16);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 11) {
nimi = "palikka" add a;
tausta.attachMovie("alustaliikkuvax", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 12) {
nimi = "palikka" add a;
tausta.attachMovie("alustaliikkuvay", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 13) {
nimi = "palikka" add a;
tausta.attachMovie("alustaympari", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 50) {
nimi = "palikka" add a;
tausta.attachMovie("kenka", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 51) {
nimi = "palikka" add a;
tausta.attachMovie("ponnari", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 60) {
nimi = "palikka" add a;
tausta.attachMovie("vesidummy", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 61) {
nimi = "palikka" add a;
tausta.attachMovie("vesi", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 62) {
nimi = "palikka" add a;
tausta.attachMovie("vedenpinta", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 63) {
nimi = "palikka" add a;
tausta.attachMovie("vesikasvi", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 70) {
nimi = "palikka" add a;
tausta.attachMovie("puu", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 71) {
nimi = "palikka" add a;
tausta.attachMovie("puuoksalumioikea", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 72) {
nimi = "palikka" add a;
tausta.attachMovie("puuoksalumivasen", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 73) {
nimi = "palikka" add a;
tausta.attachMovie("puutop", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 74) {
nimi = "palikka" add a;
tausta.attachMovie("puuoksalumioikearikki", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
if (yarray[y][x] == 99) {
nimi = "palikka" add a;
tausta.attachMovie("portti", nimi, a);
setProperty("tausta." + nimi, _x , x * 32);
setProperty("tausta." + nimi, _y , y * 24);
a++;
}
x++;
}
y++;
}
painovoima = 0.3;
kitka = 0.6;
bonussaundi = new Sound();
bonussaundi.attachSound("bonussaundi");
kuolosaundi = new Sound();
kuolosaundi.attachSound("kuolosaundi");
endlevelsaundi = new Sound();
endlevelsaundi.attachSound("endlevelsaundi");
tsuip = new Sound();
tsuip.attachSound("tsuip");
splat = new Sound();
splat.attachSound("splat");
splash = new Sound();
splash.attachSound("splash");
alkumusa = new Sound();
alkumusa.attachSound("alkumusa");
aloitusaani = new Sound();
aloitusaani.attachSound("aloitus");
alkumusa.start(0, 99);
this.stop();
Frame 2
ifFrameLoaded (2) {
alkumusa.stop();
attachMovie("sankari", "sankari", 1000);
sankari.attachMovie("hyljysgraphic", "hyljysgraphic", 1001);
sankari.noste = 0.05;
sankari.uimassa = 0;
sankari.hyppyvoima = -4;
sankari.nopeus = 3;
sankari._x = 50;
aloitusaani.start();
}
Frame 3
ifFrameLoaded (3) {
sankari.liiku();
tausta.scrollaa();
}
Frame 4
ifFrameLoaded (4) {
gotoAndPlay (3);
}
Symbol 10 MovieClip [sankari] Frame 1
function liiku() {
if (_root.sankari.uimassa == 0) {
if (Key.isDown(37)) {
xspeed = -nopeus;
this.hyljysgraphic.play();
} else if (Key.isDown(39)) {
xspeed = nopeus;
this.hyljysgraphic.play();
} else {
xspeed = xspeed * _root.kitka;
this.hyljysgraphic.gotoAndStop(1);
}
if ((xspeed < 0) and (this.hyljysgraphic._currentframe < 10)) {
hyljysgraphic.gotoAndPlay(10);
}
if ((xspeed > 0) and (this.hyljysgraphic._currentframe > 9)) {
hyljysgraphic.gotoAndPlay(1);
}
if (Key.isDown(38) and (yspeed == 0)) {
yspeed = hyppyvoima;
_root.hyppy.start();
}
yspeed = yspeed + _root.painovoima;
}
if (_root.sankari.uimassa == 1) {
if (Key.isDown(37)) {
xspeed = -nopeus;
this.hyljysgraphic.play();
} else if (Key.isDown(39)) {
xspeed = nopeus;
this.hyljysgraphic.play();
} else {
xspeed = xspeed * 0.95;
}
if (Key.isDown(38)) {
yspeed = yspeed - 0.1;
this.hyljysgraphic.play();
} else if (Key.isDown(40)) {
yspeed = yspeed + 0.1;
this.hyljysgraphic.play();
} else {
yspeed = yspeed * 0.95;
yspeed = yspeed + (-noste);
}
if ((xspeed < 0) and (this.hyljysgraphic._currentframe < 10)) {
hyljysgraphic.gotoAndPlay(10);
}
if ((xspeed > 0) and (this.hyljysgraphic._currentframe > 9)) {
hyljysgraphic.gotoAndPlay(1);
}
if (yspeed > 2) {
yspeed = 2;
}
if (yspeed < -2) {
yspeed = -2;
}
}
if (yspeed > 8) {
yspeed = 8;
}
this._y = this._y + yspeed;
ycoordbottom = Math.floor(this._y / 24) + 1;
ycoordtop = Math.floor((this._y - 8) / 24) + 1;
xcoordleft = Math.floor(((this._x - _root.tausta._x) - 12) / 32);
xcoordright = Math.floor(((this._x - _root.tausta._x) + 12) / 32);
alhaalta = "x" add ycoordbottom;
ylhaalta = "x" add ycoordtop;
if (((_root[alhaalta][xcoordleft] > 0) and (_root[alhaalta][xcoordleft] < 10)) or (((_root[alhaalta][xcoordright] > 0) and (_root[alhaalta][xcoordright] < 10)) and (yspeed >= 0))) {
this._y = (ycoordbottom - 1) * 24;
yspeed = 0;
} else if (((_root[ylhaalta][xcoordleft] > 0) and (_root[ylhaalta][xcoordleft] < 10)) or (((_root[ylhaalta][xcoordright] > 0) and (_root[ylhaalta][xcoordright] < 10)) and (yspeed < 0))) {
this._y = (ycoordbottom * 24) - 12;
yspeed = -yspeed;
}
this._x = this._x + xspeed;
xcoordleft = Math.floor(((this._x - _root.tausta._x) - 12) / 32);
xcoordright = Math.floor(((this._x - _root.tausta._x) + 12) / 32);
ycoord = Math.floor((this._y - 1) / 24) + 1;
blaargh = "x" add ycoord;
if (((_root[blaargh][xcoordleft] > 0) and (_root[blaargh][xcoordleft] < 10)) or ((_root[blaargh][xcoordright] > 0) and (_root[blaargh][xcoordright] < 10))) {
this._x = this._x - xspeed;
xspeed = 0;
}
if (this._x > 240) {
_root.scrolling = 1;
this._x = 240;
} else if (this._x < 80) {
_root.scrolling = 1;
this._x = 80;
} else {
_root.scrolling = 0;
}
if (this._y > 240) {
this.kuole();
}
}
function kuole() {
_root.kuolosaundi.start();
_root.level--;
_root.gotoAndPlay(1);
this.removeMovieClip();
}
Symbol 13 MovieClip [alustaympari] Frame 1
ifFrameLoaded (1) {
this.i = 0;
this.xposition = 0;
this.yposition = 0;
this.oldxposition = 0;
this.oldyposition = 0;
this.vauhti = _root.alustanopeudet[_root.alustai];
_root.alustai++;
this.sade = _root.alustanopeudet[_root.alustai];
_root.alustai++;
this.startx = this._X;
this.starty = this._y;
}
Symbol 13 MovieClip [alustaympari] Frame 2
ifFrameLoaded (2) {
this.i = this.i + this.vauhti;
this.yposition = Math.sin(this.i) * this.sade;
this.xposition = Math.cos(this.i) * this.sade;
this.vauhtix = this.xposition - this.oldxposition;
this.vauhtiy = this.yposition - this.oldyposition;
this._y = this.starty + this.yposition;
this._x = this.startx + this.xposition;
if ((_root.sankari.hitTest(this) and (_root.sankari.yspeed >= 0)) and ((_root.sankari._y - this._y) < 8)) {
_root.sankari.yspeed = 0;
_root.sankari._y = this._y;
if (this.vauhtiy > 0) {
_root.sankari._y = _root.sankari._y + this.vauhtiy;
}
if (_root.scrolling == 1) {
_root.tausta._X = _root.tausta._X - this.vauhtix;
}
_root.sankari._x = _root.sankari._x + this.vauhtix;
}
this.oldxposition = this.xposition;
this.oldyposition = this.yposition;
}
Symbol 13 MovieClip [alustaympari] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 14 MovieClip [alustaliikkuvay] Frame 1
ifFrameLoaded (1) {
this.vauhti = _root.alustanopeudet[_root.alustai];
_root.alustai++;
this.kaanto = _root.alustanopeudet[_root.alustai];
_root.alustai++;
}
Symbol 14 MovieClip [alustaliikkuvay] Frame 2
ifFrameLoaded (2) {
this._y = this._y + this.vauhti;
this.matka = this.matka + this.vauhti;
if ((this.matka < 0) or (this.matka > this.kaanto)) {
this.vauhti = -this.vauhti;
}
if ((_root.sankari.hitTest(this) and (_root.sankari.yspeed >= 0)) and ((_root.sankari._y - this._y) < 8)) {
_root.sankari.yspeed = 0;
_root.sankari._y = this._y;
if (this.vauhti > 0) {
_root.sankari._y = _root.sankari._y + this.vauhti;
}
}
}
Symbol 14 MovieClip [alustaliikkuvay] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 15 MovieClip [alustaliikkuvax] Frame 1
ifFrameLoaded (1) {
this.vauhti = _root.alustanopeudet[_root.alustai];
_root.alustai++;
this.kaanto = _root.alustanopeudet[_root.alustai];
_root.alustai++;
}
Symbol 15 MovieClip [alustaliikkuvax] Frame 2
ifFrameLoaded (2) {
this._x = this._x + this.vauhti;
this.matka = this.matka + this.vauhti;
if ((this.matka < (-this.kaanto)) or (this.matka > this.kaanto)) {
this.vauhti = -this.vauhti;
}
if ((_root.sankari.hitTest(this) and (_root.sankari.yspeed > 0)) and ((_root.sankari._y - this._y) < 8)) {
_root.sankari.yspeed = 0;
_root.sankari._y = this._y;
if (_root.scrolling == 1) {
_root.tausta._X = _root.tausta._X - this.vauhti;
}
_root.sankari._x = _root.sankari._x + this.vauhti;
}
}
Symbol 15 MovieClip [alustaliikkuvax] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 18 MovieClip [puuoksalumivasen] Frame 1
ifFrameLoaded (1) {
if ((_root.sankari.hitTest(this) and (_root.sankari.yspeed > 0)) and ((_root.sankari._y - this._y) < 7)) {
_root.sankari.yspeed = 0;
_root.sankari._y = this._y;
}
}
Symbol 18 MovieClip [puuoksalumivasen] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 19 MovieClip [puuoksalumioikearikki] Frame 1
ifFrameLoaded (1) {
this._y = this._y + this.vauhti;
if ((_root.sankari.hitTest(this) and (_root.sankari.yspeed >= 0)) and ((_root.sankari._y - this._y) < 8)) {
_root.sankari.yspeed = 0;
_root.sankari._y = this._y;
this.rikki = 1;
if (this.vauhti > 0) {
_root.sankari._y = _root.sankari._y + this.vauhti;
}
}
if (this.rikki == 1) {
this.vauhti = this.vauhti + _root.painovoima;
}
if (this._y > 320) {
this.removeMovieClip();
}
}
Symbol 19 MovieClip [puuoksalumioikearikki] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 20 MovieClip [puuoksalumioikea] Frame 1
ifFrameLoaded (1) {
if ((_root.sankari.hitTest(this) and (_root.sankari.yspeed > 0)) and ((_root.sankari._y - this._y) < 7)) {
_root.sankari.yspeed = 0;
_root.sankari._y = this._y;
}
}
Symbol 20 MovieClip [puuoksalumioikea] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 21 MovieClip [alusta] Frame 1
ifFrameLoaded (1) {
if ((_root.sankari.hitTest(this) and (_root.sankari.yspeed > 0)) and ((_root.sankari._y - this._y) < 7)) {
_root.sankari.yspeed = 0;
_root.sankari._y = this._y;
}
}
Symbol 21 MovieClip [alusta] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 37 MovieClip [hyljysgraphic] Frame 9
ifFrameLoaded (9) {
gotoAndPlay (1);
}
Symbol 37 MovieClip [hyljysgraphic] Frame 18
ifFrameLoaded (18) {
gotoAndPlay (10);
}
Symbol 40 MovieClip [bonari] Frame 1
ifFrameLoaded (1) {
this.attachMovie("bonarigraphic", "bonarigraphic", 1);
}
Symbol 40 MovieClip [bonari] Frame 2
ifFrameLoaded (2) {
if (_root.sankari.hitTest(this)) {
_root.pisteet++;
_root.bonussaundi.start();
this.removeMovieClip();
}
}
Symbol 40 MovieClip [bonari] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 41 MovieClip [tausta] Frame 1
function scrollaa() {
if (_root.scrolling == 1) {
this._x = this._x - _root.sankari.xspeed;
}
}
Symbol 44 MovieClip [kenka] Frame 1
ifFrameLoaded (1) {
if (_root.sankari.hittest(this)) {
_root.sankari.hyppyvoima = _root.sankari.hyppyvoima * 1.5;
_root.tsuip.start();
_root.hyppy = new Sound();
_root.hyppy.attachSound("hyppy");
this.removeMovieClip();
}
}
Symbol 44 MovieClip [kenka] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 49 MovieClip [portti] Frame 1
ifFrameLoaded (1) {
if (_root.pisteet > 14) {
_root.endlevelsaundi.start();
gotoAndPlay (3);
}
}
Symbol 49 MovieClip [portti] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 49 MovieClip [portti] Frame 3
ifFrameLoaded (3) {
if (_root.sankari.hitTest(this)) {
_root.endlevelsaundi.start();
_root.sankari.removeMovieClip();
_root.gotoAndPlay(1);
}
}
Symbol 49 MovieClip [portti] Frame 4
ifFrameLoaded (4) {
gotoAndPlay (3);
}
Symbol 63 MovieClip [morkographic] Frame 9
ifFrameLoaded (9) {
gotoAndPlay (1);
}
Symbol 63 MovieClip [morkographic] Frame 18
ifFrameLoaded (18) {
gotoAndPlay (10);
}
Symbol 64 MovieClip [kala] Frame 1
ifFrameLoaded (1) {
this.attachMovie("kalagraphic", "kalagraphic", 1);
this.vauhti = _root.morkonopeudet[_root.morkoi];
_root.morkoi++;
this.kaanto = _root.morkonopeudet[_root.morkoi];
_root.morkoi++;
}
Symbol 64 MovieClip [kala] Frame 2
ifFrameLoaded (2) {
this._x = this._x + this.vauhti;
this.matka = this.matka + this.vauhti;
if ((this.matka > 0) or (this.matka < this.kaanto)) {
this.vauhti = -this.vauhti;
if ((this.vauhti > 0) and (this.kalagraphic._currentframe == 1)) {
kalagraphic.gotoAndStop(2);
}
if ((this.vauhti < 0) and (this.kalagraphic._currentframe == 2)) {
kalagraphic.gotoAndStop(1);
}
}
if (_root.sankari.hitTest(this)) {
_root.sankari.kuole();
}
}
Symbol 64 MovieClip [kala] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 65 MovieClip [lintu] Frame 1
ifFrameLoaded (1) {
this.attachMovie("lintugraphic", "lintugraphic", 1);
basey = this._y;
this.vauhti = _root.morkonopeudet[_root.morkoi];
_root.morkoi++;
this.kaanto = _root.morkonopeudet[_root.morkoi];
_root.morkoi++;
}
Symbol 65 MovieClip [lintu] Frame 2
ifFrameLoaded (2) {
this._x = this._x + this.vauhti;
this._y = basey + (Math.sin(a) * 12);
a = a + 0.1;
this.matka = this.matka + this.vauhti;
if ((this.matka < 0) or (this.matka > this.kaanto)) {
this.vauhti = -this.vauhti;
if ((this.vauhti < 0) and (this.lintugraphic._currentframe < 14)) {
lintugraphic.gotoAndPlay(14);
}
if ((this.vauhti > 0) and (this.lintugraphic._currentframe > 13)) {
lintugraphic.gotoAndPlay(1);
}
}
if (_root.sankari.hitTest(this)) {
if ((_root.sankari.yspeed > 0) and ((_root.sankari._y - this._y) < 12)) {
_root.splat.start();
this.removeMovieClip();
} else {
_root.sankari.kuole();
}
}
}
Symbol 65 MovieClip [lintu] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 66 MovieClip [jatskiauto] Frame 1
ifFrameLoaded (1) {
this.attachMovie("jatskiautographic", "jatskiautographic", 1);
this.jatskiautographic.gotoAndStop(2);
this.vauhti = _root.morkonopeudet[_root.morkoi];
_root.morkoi++;
this.kaanto = _root.morkonopeudet[_root.morkoi];
_root.morkoi++;
}
Symbol 66 MovieClip [jatskiauto] Frame 2
ifFrameLoaded (2) {
this._x = this._x + this.vauhti;
this.matka = this.matka + this.vauhti;
if ((this.matka < 0) or (this.matka > this.kaanto)) {
this.vauhti = -this.vauhti;
if ((this.vauhti < 0) and (this.jatskiautographic._currentframe == 2)) {
jatskiautographic.gotoAndStop(1);
}
if ((this.vauhti > 0) and (this.jatskiautographic._currentframe == 1)) {
jatskiautographic.gotoAndStop(2);
}
}
if (_root.sankari.hitTest(this)) {
if ((_root.sankari.yspeed > -1) and ((_root.sankari._y - this._y) < 12)) {
_root.sankari.yspeed = 0;
_root.sankari._y = this._y;
if (_root.scrolling == 1) {
_root.tausta._X = _root.tausta._X - this.vauhti;
}
_root.sankari._x = _root.sankari._x + this.vauhti;
} else {
_root.sankari.kuole();
}
}
}
Symbol 66 MovieClip [jatskiauto] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 67 MovieClip [morko] Frame 1
ifFrameLoaded (1) {
this.attachMovie("morkographic", "morkographic", 1);
this.vauhti = _root.morkonopeudet[_root.morkoi];
_root.morkoi++;
this.kaanto = _root.morkonopeudet[_root.morkoi];
_root.morkoi++;
}
Symbol 67 MovieClip [morko] Frame 2
ifFrameLoaded (2) {
this._x = this._x + this.vauhti;
this.matka = this.matka + this.vauhti;
if ((this.matka < 0) or (this.matka > this.kaanto)) {
this.vauhti = -this.vauhti;
if ((this.vauhti < 0) and (this.morkographic._currentframe < 9)) {
morkographic.gotoAndPlay(10);
}
if ((this.vauhti > 0) and (this.morkographic._currentframe > 9)) {
morkographic.gotoAndPlay(1);
}
}
if (_root.sankari.hitTest(this)) {
if ((_root.sankari.yspeed > 0) and ((_root.sankari._y - this._y) < 12)) {
_root.splat.start();
this.removeMovieClip();
} else {
_root.sankari.kuole();
}
}
}
Symbol 67 MovieClip [morko] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 70 MovieClip [kirves360] Frame 1
ifFrameLoaded (1) {
this.a = 0;
this.kulma = 0;
this.attachMovie("tera", "tera", 2);
this.tera._y = this.tera._y + 50;
}
Symbol 70 MovieClip [kirves360] Frame 2
ifFrameLoaded (2) {
this._rotation = this._rotation + 2;
if (this._rotation > 360) {
this._rotation = this._rotation - 360;
}
}
Symbol 70 MovieClip [kirves360] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 71 MovieClip [kirves] Frame 1
ifFrameLoaded (1) {
this.a = 0;
this.kulma = 0;
this.attachMovie("tera", "tera", 2);
this.tera._y = this.tera._y + 50;
}
Symbol 71 MovieClip [kirves] Frame 2
ifFrameLoaded (2) {
this.a = this.a + 0.001;
this._rotation = Math.sin(a * 57.295) * 90;
}
Symbol 71 MovieClip [kirves] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 74 MovieClip [tera] Frame 1
ifFrameLoaded (1) {
if (_root.sankari.hitTest(this)) {
_root.sankari.kuole();
}
}
Symbol 74 MovieClip [tera] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 78 MovieClip [vesi] Frame 1
ifFrameLoaded (1) {
if (_root.sankari.hitTest(this) and (_root.sankari.uimassa == 0)) {
_root.attachMovie("parske", "parske", 8888);
_root.parske._x = _root.sankari._x;
_root.parske._y = _root.sankari._y;
_root.sankari.uimassa = 1;
_root.splash.start();
}
}
Symbol 78 MovieClip [vesi] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 95 MovieClip [aallot] Frame 16
ifFrameLoaded (8) {
gotoAndPlay (1);
}
Symbol 96 MovieClip [vedenpinta] Frame 1
ifFrameLoaded (1) {
this.attachMovie("aallot", "aallot", 1);
}
Symbol 96 MovieClip [vedenpinta] Frame 2
ifFrameLoaded (2) {
if ((_root.sankari.hitTest(this) and (_root.sankari.uimassa == 1)) and (_root.sankari._y < (this._y + 27))) {
if (Key.isDown(38) and (_root.sankari.yspeed < 0)) {
_root.sankari.yspeed = _root.sankari.yspeed + (_root.sankari.hyppyvoima / 1.8);
_root.sankari.uimassa = 0;
} else if (_root.sankari.yspeed < 0) {
_root.sankari._y = this._y + 29;
}
}
}
Symbol 96 MovieClip [vedenpinta] Frame 3
ifFrameLoaded (3) {
gotoAndPlay (2);
}
Symbol 100 MovieClip [kalagraphic] Frame 1
stop();
Symbol 100 MovieClip [kalagraphic] Frame 2
stop();
Symbol 111 MovieClip [vesikasvi] Frame 20
gotoAndPlay (1);
Symbol 119 MovieClip [alkutekstit] Frame 1
ifFrameLoaded (1) {
if ((_root.tausta._X < (-switchpoint)) or (_root.tausta._x > 0)) {
scrollspeed = -scrollspeed;
}
_root.tausta._X = _root.tausta._x - this.scrollspeed;
if (Key.isDown(32)) {
_root.tausta._x = 0;
_root.gotoAndPlay(2);
this.removeMovieClip();
}
}
Symbol 119 MovieClip [alkutekstit] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}
Symbol 132 MovieClip [parske] Frame 19
ifFrameLoaded (19) {
this.removeMovieClip();
}
Symbol 142 MovieClip [lintugraphic] Frame 13
ifFrameLoaded (13) {
gotoAndPlay (1);
}
Symbol 142 MovieClip [lintugraphic] Frame 26
ifFrameLoaded (26) {
gotoAndPlay (14);
}
Symbol 160 MovieClip [ponnari] Frame 1
ifFrameLoaded (1) {
if (_root.sankari.hitTest(this) and (_root.sankari.yspeed > 0)) {
_root.sankari.yspeed = (-_root.sankari.yspeed) * 1.5;
_root.tsuip.start();
this.gotoAndPlay(3);
if (_root.sankari.yspeed > 8) {
_root.sankari.yspeed = 8;
}
}
}
Symbol 160 MovieClip [ponnari] Frame 2
ifFrameLoaded (2) {
gotoAndPlay (1);
}