Frame 3
ifFrameLoaded (148) {
gotoAndStop (5);
}
Frame 4
gotoAndPlay (2);
Frame 31
setProperty("_level1", _y , "-50");
setProperty("_level1", _x , "+50");
setProperty("_level1", _xscale , "80");
setProperty("_level1", _yscale , "80");
riktning = "1";
boxar = "23";
korsningar = "8";
pluppar = "45";
tapluppar = "2";
plupparkvar = pluppar + tapluppar;
liv = "3";
poang = "0";
Frame 42
xmax = (getProperty("/pacman", _x) + getProperty("/pacman/pac", _x)) + "10";
xmin = (getProperty("/pacman", _x) + getProperty("/pacman/pac", _x)) - "10";
ymax = (getProperty("/pacman", _y) + getProperty("/pacman/pac", _y)) + "10";
ymin = (getProperty("/pacman", _y) + getProperty("/pacman/pac", _y)) - "10";
if (/pacman:ododlig == "0") {
if (((getProperty("/spoke", _x) + getProperty("/spoke/bilden", _x)) < xmax) and (xmin < (getProperty("/spoke", _x) + getProperty("/spoke/bilden", _x)))) {
if (((getProperty("/spoke", _y) + getProperty("/spoke/bilden", _y)) < ymax) and (ymin < (getProperty("/spoke", _y) + getProperty("/spoke/bilden", _y)))) {
gotoAndPlay (50);
}
}
if (((getProperty("/spoke2", _x) + getProperty("/spoke2/2bilden", _x)) < xmax) and (xmin < (getProperty("/spoke2", _x) + getProperty("/spoke2/2bilden", _x)))) {
if (((getProperty("/spoke2", _y) + getProperty("/spoke2/2bilden", _y)) < ymax) and (ymin < (getProperty("/spoke2", _y) + getProperty("/spoke2/2bilden", _y)))) {
gotoAndPlay (50);
}
}
if (((getProperty("/spoke3", _x) + getProperty("/spoke3/3bilden", _x)) < xmax) and (xmin < (getProperty("/spoke3", _x) + getProperty("/spoke3/3bilden", _x)))) {
if (((getProperty("/spoke3", _y) + getProperty("/spoke3/3bilden", _y)) < ymax) and (ymin < (getProperty("/spoke3", _y) + getProperty("/spoke3/3bilden", _y)))) {
gotoAndPlay (50);
}
}
}
if (/pacman:ododlig == "1") {
Set("/pacman:ododligtid", /pacman:ododligtid + "0.25");
if (((getProperty("/spoke", _x) + getProperty("/spoke/bilden", _x)) < xmax) and (xmin < (getProperty("/spoke", _x) + getProperty("/spoke/bilden", _x)))) {
if (((getProperty("/spoke", _y) + getProperty("/spoke/bilden", _y)) < ymax) and (ymin < (getProperty("/spoke", _y) + getProperty("/spoke/bilden", _y)))) {
setProperty("/spoke", _x , "-100");
setProperty("/spoke", _y , "-100");
tellTarget ("/spoke") {
gotoAndStop (1);
};
poang = poang + "3";
Set("/pacman:spokedod", "1");
}
}
if (((getProperty("/spoke2", _x) + getProperty("/spoke2/2bilden", _x)) < xmax) and (xmin < (getProperty("/spoke2", _x) + getProperty("/spoke2/2bilden", _x)))) {
if (((getProperty("/spoke2", _y) + getProperty("/spoke2/2bilden", _y)) < ymax) and (ymin < (getProperty("/spoke2", _y) + getProperty("/spoke2/2bilden", _y)))) {
setProperty("/spoke2", _x , "-100");
setProperty("/spoke2", _y , "-100");
poang = poang + "3";
tellTarget ("/spoke2") {
gotoAndStop (1);
};
Set("/pacman:spoke2dod", "1");
}
}
if (((getProperty("/spoke3", _x) + getProperty("/spoke3/3bilden", _x)) < xmax) and (xmin < (getProperty("/spoke3", _x) + getProperty("/spoke3/3bilden", _x)))) {
if (((getProperty("/spoke3", _y) + getProperty("/spoke3/3bilden", _y)) < ymax) and (ymin < (getProperty("/spoke3", _y) + getProperty("/spoke3/3bilden", _y)))) {
setProperty("/spoke3", _x , "-100");
setProperty("/spoke3", _y , "-100");
poang = poang + "3";
tellTarget ("/spoke3") {
gotoAndStop (1);
};
Set("/pacman:spoke3dod", "1");
}
}
}
if (plupparkvar == "0") {
gotoAndPlay (78);
}
Frame 43
gotoAndPlay (42);
Frame 50
liv = liv - "1";
tellTarget ("/pacman") {
stop();
};
tellTarget ("/pacman/pac") {
gotoAndStop ("death");
}
Frame 71
if (liv == "0") {
gotoAndStop (265);
}
Frame 72
gotoAndPlay (32);
Frame 148
riktning = "1";
boxar = "27";
korsningar = "16";
pluppar = "60";
tapluppar = "2";
plupparkvar = pluppar + tapluppar;
Frame 159
xmax = (getProperty("/pacman", _x) + getProperty("/pacman/pac", _x)) + "10";
xmin = (getProperty("/pacman", _x) + getProperty("/pacman/pac", _x)) - "10";
ymax = (getProperty("/pacman", _y) + getProperty("/pacman/pac", _y)) + "10";
ymin = (getProperty("/pacman", _y) + getProperty("/pacman/pac", _y)) - "10";
if (/pacman:ododlig == "0") {
if (((getProperty("/spoke", _x) + getProperty("/spoke/bilden", _x)) < xmax) and (xmin < (getProperty("/spoke", _x) + getProperty("/spoke/bilden", _x)))) {
if (((getProperty("/spoke", _y) + getProperty("/spoke/bilden", _y)) < ymax) and (ymin < (getProperty("/spoke", _y) + getProperty("/spoke/bilden", _y)))) {
gotoAndPlay (167);
}
}
if (((getProperty("/spoke2", _x) + getProperty("/spoke2/2bilden", _x)) < xmax) and (xmin < (getProperty("/spoke2", _x) + getProperty("/spoke2/2bilden", _x)))) {
if (((getProperty("/spoke2", _y) + getProperty("/spoke2/2bilden", _y)) < ymax) and (ymin < (getProperty("/spoke2", _y) + getProperty("/spoke2/2bilden", _y)))) {
gotoAndPlay (167);
}
}
if (((getProperty("/spoke3", _x) + getProperty("/spoke3/3bilden", _x)) < xmax) and (xmin < (getProperty("/spoke3", _x) + getProperty("/spoke3/3bilden", _x)))) {
if (((getProperty("/spoke3", _y) + getProperty("/spoke3/3bilden", _y)) < ymax) and (ymin < (getProperty("/spoke3", _y) + getProperty("/spoke3/3bilden", _y)))) {
gotoAndPlay (167);
}
}
}
if (/pacman:ododlig == "1") {
Set("/pacman:ododligtid", /pacman:ododligtid + "0.25");
if (((getProperty("/spoke", _x) + getProperty("/spoke/bilden", _x)) < xmax) and (xmin < (getProperty("/spoke", _x) + getProperty("/spoke/bilden", _x)))) {
if (((getProperty("/spoke", _y) + getProperty("/spoke/bilden", _y)) < ymax) and (ymin < (getProperty("/spoke", _y) + getProperty("/spoke/bilden", _y)))) {
setProperty("/spoke", _x , "-100");
setProperty("/spoke", _y , "-100");
tellTarget ("/spoke") {
gotoAndStop (1);
};
poang = poang + "3";
Set("/pacman:spokedod", "1");
}
}
if (((getProperty("/spoke2", _x) + getProperty("/spoke2/2bilden", _x)) < xmax) and (xmin < (getProperty("/spoke2", _x) + getProperty("/spoke2/2bilden", _x)))) {
if (((getProperty("/spoke2", _y) + getProperty("/spoke2/2bilden", _y)) < ymax) and (ymin < (getProperty("/spoke2", _y) + getProperty("/spoke2/2bilden", _y)))) {
setProperty("/spoke2", _x , "-100");
setProperty("/spoke2", _y , "-100");
poang = poang + "3";
tellTarget ("/spoke2") {
gotoAndStop (1);
};
Set("/pacman:spoke2dod", "1");
}
}
if (((getProperty("/spoke3", _x) + getProperty("/spoke3/3bilden", _x)) < xmax) and (xmin < (getProperty("/spoke3", _x) + getProperty("/spoke3/3bilden", _x)))) {
if (((getProperty("/spoke3", _y) + getProperty("/spoke3/3bilden", _y)) < ymax) and (ymin < (getProperty("/spoke3", _y) + getProperty("/spoke3/3bilden", _y)))) {
setProperty("/spoke3", _x , "-100");
setProperty("/spoke3", _y , "-100");
poang = poang + "3";
tellTarget ("/spoke3") {
gotoAndStop (1);
};
Set("/pacman:spoke3dod", "1");
}
}
}
if (plupparkvar == "0") {
gotoAndPlay (195);
}
Frame 160
gotoAndPlay (159);
Frame 167
liv = liv - "1";
tellTarget ("/pacman") {
stop();
};
tellTarget ("/pacman/pac") {
gotoAndStop ("death");
}
Frame 188
if (liv == "0") {
gotoAndStop (265);
}
Frame 189
gotoAndPlay (149);
Frame 264
gotoAndStop (266);
Symbol 17 MovieClip Frame 10
gotoAndPlay (1);
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 5
gotoAndPlay (2);
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 30 Button
on (release) {
gotoAndPlay (5);
}
Symbol 35 Button
on (keyPress "<Up>") {
riktning = "1";
}
on (keyPress "<Right>") {
riktning = "2";
}
on (keyPress "<Down>") {
riktning = "3";
}
on (keyPress "<Left>") {
riktning = "4";
}
Symbol 40 MovieClip Frame 5
koll = "1";
while (koll < (/:boxar + "1")) {
if ((getProperty("../spoke", _x) == getProperty("../box" add koll, _x)) and ((getProperty("../spoke", _y) - "20") == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 40 MovieClip Frame 12
setProperty("../spoke", _y , getProperty("../spoke", _y) - "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (5);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke2", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 40 MovieClip Frame 15
koll = "1";
while (koll < (/:boxar + "1")) {
if (((getProperty("../spoke", _x) + "20") == getProperty("../box" add koll, _x)) and (getProperty("../spoke", _y) == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 40 MovieClip Frame 22
setProperty("../spoke", _x , getProperty("../spoke", _x) + "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (15);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 40 MovieClip Frame 25
koll = "1";
while (koll < (/:boxar + "1")) {
if ((getProperty("../spoke", _x) == getProperty("../box" add koll, _x)) and ((getProperty("../spoke", _y) + "20") == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 40 MovieClip Frame 32
setProperty("../spoke", _y , getProperty("../spoke", _y) + "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (25);
}
if (sriktning == "1") {
gotoAndPlay (5);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 40 MovieClip Frame 35
koll = "1";
while (koll < (/:boxar + "1")) {
if (((getProperty("../spoke", _x) - "20") == getProperty("../box" add koll, _x)) and (getProperty("../spoke", _y) == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 40 MovieClip Frame 42
setProperty("../spoke", _x , getProperty("../spoke", _x) - "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (35);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 40 MovieClip Frame 45
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffyn = "1";
}
diffx = getProperty("/spoke", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
still = still + "1";
if ("5" < still) {
sriktning = random("5") + "1";
still = "0";
if ("4" < sriktning) {
sriktning = "1";
}
}
Symbol 40 MovieClip Frame 46
gotoAndPlay (44);
Symbol 41 MovieClip Frame 5
koll = "1";
while (koll < (/:boxar + "1")) {
if ((getProperty("../spoke2", _x) == getProperty("../box" add koll, _x)) and ((getProperty("../spoke2", _y) - "20") == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 41 MovieClip Frame 11
setProperty("../spoke2", _y , getProperty("../spoke2", _y) - "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke2", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke2", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (5);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke2", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke2", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 41 MovieClip Frame 15
koll = "1";
while (koll < (/:boxar + "1")) {
if (((getProperty("../spoke2", _x) + "20") == getProperty("../box" add koll, _x)) and (getProperty("../spoke2", _y) == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 41 MovieClip Frame 21
setProperty("../spoke2", _x , getProperty("../spoke2", _x) + "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke2", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke2", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (15);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke2", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke2", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 41 MovieClip Frame 25
koll = "1";
while (koll < (/:boxar + "1")) {
if ((getProperty("../spoke2", _x) == getProperty("../box" add koll, _x)) and ((getProperty("../spoke2", _y) + "20") == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 41 MovieClip Frame 31
setProperty("../spoke2", _y , getProperty("../spoke2", _y) + "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke2", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke2", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (25);
}
if (sriktning == "1") {
gotoAndPlay (5);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke2", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke2", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 41 MovieClip Frame 35
koll = "1";
while (koll < (/:boxar + "1")) {
if (((getProperty("../spoke2", _x) - "20") == getProperty("../box" add koll, _x)) and (getProperty("../spoke2", _y) == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 41 MovieClip Frame 41
setProperty("../spoke2", _x , getProperty("../spoke2", _x) - "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke2", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke2", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (35);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke2", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke2", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 41 MovieClip Frame 45
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke2", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke2", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
still = still + "1";
if ("5" < still) {
sriktning = random("5") + "1";
still = "0";
if ("4" < sriktning) {
sriktning = "1";
}
}
Symbol 41 MovieClip Frame 46
gotoAndPlay (44);
Symbol 43 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 5
koll = "1";
while (koll < (/:boxar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../box" add koll, _x)) and ((getProperty("../pacman", _y) - "20") == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 44 MovieClip Frame 10
setProperty("../pacman", _y , getProperty("../pacman", _y) - "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../pacman", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (/:riktning == "1") {
gotoAndPlay (5);
}
if (/:riktning == "2") {
gotoAndPlay (15);
}
if (/:riktning == "3") {
gotoAndPlay (25);
}
if (/:riktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (5);
}
if (/:riktning == "3") {
gotoAndPlay (25);
}
plupp = "1";
while (plupp < (/:tapluppar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../taplupp" add plupp, _x)) and (getProperty("../pacman", _y) == getProperty("../taplupp" add plupp, _y))) {
Set("/:poang", /:poang + "1");
Set("/:plupparkvar", /:plupparkvar - "1");
setProperty("../taplupp" add plupp, _x , "-100");
ododlig = "1";
ododligtid = "0";
Set("/spoke:bla", "1");
Set("/spoke2:bla", "1");
Set("/spoke3:bla", "1");
}
plupp = plupp + "1";
}
if (ododlig == "1") {
tellTarget ("../spoke/bilden") {
gotoAndStop (2);
};
tellTarget ("../spoke2/2bilden") {
gotoAndStop (2);
};
tellTarget ("../spoke3/3bilden") {
gotoAndStop (2);
};
}
if ("20" < ododligtid) {
ododligtid = "0";
ododlig = "0";
if (spokedod == "1") {
setProperty("../spoke", _x , "280");
setProperty("../spoke", _y , "180");
tellTarget ("../spoke") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke/bilden") {
gotoAndStop (1);
};
if (spoke2dod == "1") {
setProperty("../spoke2", _x , "280");
setProperty("../spoke2", _y , "180");
tellTarget ("../spoke2") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke2/2bilden") {
gotoAndStop (1);
};
if (spoke3dod == "1") {
setProperty("../spoke3", _x , "280");
setProperty("../spoke3", _y , "180");
tellTarget ("../spoke3") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke3/3bilden") {
gotoAndStop (1);
};
spokedod = "0";
spoke2dod = "0";
spoke3dod = "0";
}
plup = "1";
while (plup < (/:pluppar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../plupp" add plup, _x)) and (getProperty("../pacman", _y) == getProperty("../plupp" add plup, _y))) {
Set("/:plupparkvar", /:plupparkvar - "1");
Set("/:poang", /:poang + "1");
setProperty("../plupp" add plup, _x , "-100");
}
plup = plup + "1";
}
Symbol 44 MovieClip Frame 15
koll = "1";
while (koll < (/:boxar + "1")) {
if (((getProperty("../pacman", _x) + "20") == getProperty("../box" add koll, _x)) and (getProperty("../pacman", _y) == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 44 MovieClip Frame 20
setProperty("../pacman", _x , getProperty("../pacman", _x) + "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../pacman", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (/:riktning == "1") {
gotoAndPlay (5);
}
if (/:riktning == "2") {
gotoAndPlay (15);
}
if (/:riktning == "3") {
gotoAndPlay (25);
}
if (/:riktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (15);
}
if (/:riktning == "4") {
gotoAndPlay (35);
}
plupp = "1";
while (plupp < (/:tapluppar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../taplupp" add plupp, _x)) and (getProperty("../pacman", _y) == getProperty("../taplupp" add plupp, _y))) {
Set("/:poang", /:poang + "1");
Set("/:plupparkvar", /:plupparkvar - "1");
setProperty("../taplupp" add plupp, _x , "-100");
ododlig = "1";
ododligtid = "0";
Set("/spoke:bla", "1");
Set("/spoke2:bla", "1");
Set("/spoke3:bla", "1");
}
plupp = plupp + "1";
}
if (ododlig == "1") {
tellTarget ("../spoke/bilden") {
gotoAndStop (2);
};
tellTarget ("../spoke2/2bilden") {
gotoAndStop (2);
};
tellTarget ("../spoke3/3bilden") {
gotoAndStop (2);
};
}
if ("20" < ododligtid) {
ododligtid = "0";
ododlig = "0";
if (spokedod == "1") {
setProperty("../spoke", _x , "280");
setProperty("../spoke", _y , "180");
tellTarget ("../spoke") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke/bilden") {
gotoAndStop (1);
};
if (spoke2dod == "1") {
setProperty("../spoke2", _x , "280");
setProperty("../spoke2", _y , "180");
tellTarget ("../spoke2") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke2/2bilden") {
gotoAndStop (1);
};
if (spoke3dod == "1") {
setProperty("../spoke3", _x , "280");
setProperty("../spoke3", _y , "180");
tellTarget ("../spoke3") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke3/3bilden") {
gotoAndStop (1);
};
spokedod = "0";
spoke2dod = "0";
spoke3dod = "0";
}
plup = "1";
while (plup < (/:pluppar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../plupp" add plup, _x)) and (getProperty("../pacman", _y) == getProperty("../plupp" add plup, _y))) {
Set("/:plupparkvar", /:plupparkvar - "1");
Set("/:poang", /:poang + "1");
setProperty("../plupp" add plup, _x , "-100");
}
plup = plup + "1";
}
Symbol 44 MovieClip Frame 25
koll = "1";
while (koll < (/:boxar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../box" add koll, _x)) and ((getProperty("../pacman", _y) + "20") == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 44 MovieClip Frame 30
setProperty("../pacman", _y , getProperty("../pacman", _y) + "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../pacman", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (/:riktning == "1") {
gotoAndPlay (5);
}
if (/:riktning == "2") {
gotoAndPlay (15);
}
if (/:riktning == "3") {
gotoAndPlay (25);
}
if (/:riktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (25);
}
if (/:riktning == "1") {
gotoAndPlay (5);
}
plupp = "1";
while (plupp < (/:tapluppar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../taplupp" add plupp, _x)) and (getProperty("../pacman", _y) == getProperty("../taplupp" add plupp, _y))) {
Set("/:poang", /:poang + "1");
Set("/:plupparkvar", /:plupparkvar - "1");
setProperty("../taplupp" add plupp, _x , "-100");
ododlig = "1";
ododligtid = "0";
Set("/spoke:bla", "1");
Set("/spoke2:bla", "1");
Set("/spoke3:bla", "1");
}
plupp = plupp + "1";
}
if (ododlig == "1") {
tellTarget ("../spoke/bilden") {
gotoAndStop (2);
};
tellTarget ("../spoke2/2bilden") {
gotoAndStop (2);
};
tellTarget ("../spoke3/3bilden") {
gotoAndStop (2);
};
}
if ("20" < ododligtid) {
ododligtid = "0";
ododlig = "0";
if (spokedod == "1") {
setProperty("../spoke", _x , "280");
setProperty("../spoke", _y , "180");
tellTarget ("../spoke") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke/bilden") {
gotoAndStop (1);
};
if (spoke2dod == "1") {
setProperty("../spoke2", _x , "280");
setProperty("../spoke2", _y , "180");
tellTarget ("../spoke2") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke2/2bilden") {
gotoAndStop (1);
};
if (spoke3dod == "1") {
setProperty("../spoke3", _x , "280");
setProperty("../spoke3", _y , "180");
tellTarget ("../spoke3") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke3/3bilden") {
gotoAndStop (1);
};
spokedod = "0";
spoke2dod = "0";
spoke3dod = "0";
}
plup = "1";
while (plup < (/:pluppar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../plupp" add plup, _x)) and (getProperty("../pacman", _y) == getProperty("../plupp" add plup, _y))) {
Set("/:plupparkvar", /:plupparkvar - "1");
Set("/:poang", /:poang + "1");
setProperty("../plupp" add plup, _x , "-100");
}
plup = plup + "1";
}
Symbol 44 MovieClip Frame 35
koll = "1";
while (koll < (/:boxar + "1")) {
if (((getProperty("../pacman", _x) - "20") == getProperty("../box" add koll, _x)) and (getProperty("../pacman", _y) == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 44 MovieClip Frame 40
setProperty("../pacman", _x , getProperty("../pacman", _x) - "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../pacman", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (/:riktning == "1") {
gotoAndPlay (5);
}
if (/:riktning == "2") {
gotoAndPlay (15);
}
if (/:riktning == "3") {
gotoAndPlay (25);
}
if (/:riktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (35);
}
if (/:riktning == "2") {
gotoAndPlay (15);
}
plupp = "1";
while (plupp < (/:tapluppar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../taplupp" add plupp, _x)) and (getProperty("../pacman", _y) == getProperty("../taplupp" add plupp, _y))) {
Set("/:poang", /:poang + "1");
Set("/:plupparkvar", /:plupparkvar - "1");
setProperty("../taplupp" add plupp, _x , "-100");
ododlig = "1";
ododligtid = "0";
Set("/spoke:bla", "1");
Set("/spoke2:bla", "1");
Set("/spoke3:bla", "1");
}
plupp = plupp + "1";
}
if (ododlig == "1") {
tellTarget ("../spoke/bilden") {
gotoAndStop (2);
};
tellTarget ("../spoke2/2bilden") {
gotoAndStop (2);
};
tellTarget ("../spoke3/3bilden") {
gotoAndStop (2);
};
}
if ("20" < ododligtid) {
ododligtid = "0";
ododlig = "0";
if (spokedod == "1") {
setProperty("../spoke", _x , "280");
setProperty("../spoke", _y , "180");
tellTarget ("../spoke") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke/bilden") {
gotoAndStop (1);
};
if (spoke2dod == "1") {
setProperty("../spoke2", _x , "280");
setProperty("../spoke2", _y , "180");
tellTarget ("../spoke2") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke2/2bilden") {
gotoAndStop (1);
};
if (spoke3dod == "1") {
setProperty("../spoke3", _x , "280");
setProperty("../spoke3", _y , "180");
tellTarget ("../spoke3") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke3/3bilden") {
gotoAndStop (1);
};
spokedod = "0";
spoke2dod = "0";
spoke3dod = "0";
}
plup = "1";
while (plup < (/:pluppar + "1")) {
if ((getProperty("../pacman", _x) == getProperty("../plupp" add plup, _x)) and (getProperty("../pacman", _y) == getProperty("../plupp" add plup, _y))) {
Set("/:plupparkvar", /:plupparkvar - "1");
Set("/:poang", /:poang + "1");
setProperty("../plupp" add plup, _x , "-100");
}
plup = plup + "1";
}
Symbol 44 MovieClip Frame 45
if (/:riktning == "1") {
gotoAndPlay (5);
}
if (/:riktning == "2") {
gotoAndPlay (15);
}
if (/:riktning == "3") {
gotoAndPlay (25);
}
if (/:riktning == "4") {
gotoAndPlay (35);
}
if ("20" < ododligtid) {
ododligtid = "0";
ododlig = "0";
if (spokedod == "1") {
setProperty("../spoke", _x , "280");
setProperty("../spoke", _y , "180");
tellTarget ("../spoke") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke/bilden") {
gotoAndStop (1);
};
if (spoke2dod == "1") {
setProperty("../spoke2", _x , "280");
setProperty("../spoke2", _y , "180");
tellTarget ("../spoke2") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke2/2bilden") {
gotoAndStop (1);
};
if (spoke3dod == "1") {
setProperty("../spoke3", _x , "280");
setProperty("../spoke3", _y , "180");
tellTarget ("../spoke3") {
gotoAndPlay (1);
};
}
tellTarget ("../spoke3/3bilden") {
gotoAndStop (1);
};
spokedod = "0";
spoke2dod = "0";
spoke3dod = "0";
}
Symbol 44 MovieClip Frame 46
gotoAndPlay (44);
Symbol 74 MovieClip Frame 5
koll = "1";
while (koll < (/:boxar + "1")) {
if ((getProperty("../spoke3", _x) == getProperty("../box" add koll, _x)) and ((getProperty("../spoke3", _y) - "20") == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 74 MovieClip Frame 11
setProperty("../spoke3", _y , getProperty("../spoke3", _y) - "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke3", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke3", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (5);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke3", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke3", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
if (diffx < diffy) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 74 MovieClip Frame 15
koll = "1";
while (koll < (/:boxar + "1")) {
if (((getProperty("../spoke3", _x) + "20") == getProperty("../box" add koll, _x)) and (getProperty("../spoke3", _y) == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 74 MovieClip Frame 21
setProperty("../spoke3", _x , getProperty("../spoke3", _x) + "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke3", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke3", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (15);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke3", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke3", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
if (diffx < diffy) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 74 MovieClip Frame 25
koll = "1";
while (koll < (/:boxar + "1")) {
if ((getProperty("../spoke3", _x) == getProperty("../box" add koll, _x)) and ((getProperty("../spoke3", _y) + "20") == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 74 MovieClip Frame 31
setProperty("../spoke3", _y , getProperty("../spoke3", _y) + "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke3", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke3", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (25);
}
if (sriktning == "1") {
gotoAndPlay (5);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke3", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke3", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 74 MovieClip Frame 35
koll = "1";
while (koll < (/:boxar + "1")) {
if (((getProperty("../spoke3", _x) - "20") == getProperty("../box" add koll, _x)) and (getProperty("../spoke3", _y) == getProperty("../box" add koll, _y))) {
gotoAndPlay (44);
}
koll = koll + "1";
}
Symbol 74 MovieClip Frame 41
setProperty("../spoke3", _x , getProperty("../spoke3", _x) - "20");
korsningtraff = "0";
kors = "1";
while (kors < (/:korsningar + "1")) {
if ((getProperty("../spoke3", _x) == getProperty("../korsning" add kors, _x)) and (getProperty("../spoke3", _y) == getProperty("../korsning" add kors, _y))) {
korsningtraff = "1";
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
}
kors = kors + "1";
}
if (korsningtraff == "0") {
gotoAndPlay (35);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke3", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke3", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
Symbol 74 MovieClip Frame 45
if (sriktning == "1") {
gotoAndPlay (5);
}
if (sriktning == "2") {
gotoAndPlay (15);
}
if (sriktning == "3") {
gotoAndPlay (25);
}
if (sriktning == "4") {
gotoAndPlay (35);
}
diffyn = "0";
diffxn = "0";
diffy = getProperty("/spoke3", _y) - getProperty("../pacman", _y);
if (diffy < "0") {
diffy = (diffy - diffy) - diffy;
diffyn = "1";
}
diffx = getProperty("/spoke3", _x) - getProperty("../pacman", _x);
if (diffx < "0") {
diffx = (diffx - diffx) - diffx;
diffxn = "1";
}
if (/pacman:ododlig == "0") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "2";
}
if (diffxn == "0") {
sriktning = "4";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "3";
}
if (diffyn == "0") {
sriktning = "1";
}
}
}
if (/pacman:ododlig == "1") {
if (diffy < diffx) {
if (diffxn == "1") {
sriktning = "4";
}
if (diffxn == "0") {
sriktning = "2";
}
}
if (diffx < diffy) {
if (diffyn == "1") {
sriktning = "1";
}
if (diffyn == "0") {
sriktning = "3";
}
}
}
still = still + "1";
if ("5" < still) {
sriktning = random("5") + "1";
still = "0";
if ("4" < sriktning) {
sriktning = "1";
}
}
Symbol 74 MovieClip Frame 46
gotoAndPlay (44);
Symbol 95 Button
on (release) {
gotoAndPlay (31);
}