Frame 1
stop();
Frame 4
score = "0";
i = "1";
while (i < "4") {
duplicateMovieClip ("/e_0", "e_" + i, i);
setProperty("/e_" + i, _x , "190");
setProperty("/e_" + i, _y , "100" + ("10" * i));
i = i + "1";
}
setProperty("/head1", _x , "190");
setProperty("/head1", _y , "140");
coda = "1";
testa = "3";
xv = "0";
yv = "1";
x = "190";
y = "130";
numero = "0";
allunga = "1";
s_0_0 = "o";
Frame 5
xx = x + (xv * "10");
yy = y + (yv * "10");
if (eval ((("s_" add xx) add "_") add yy) eq "o") {
gotoAndStop (8);
}
testa = testa + "1";
duplicateMovieClip ("/e_0", "e_" + testa, testa);
setProperty("e_" + testa, _x , xx);
setProperty("e_" + testa, _y , yy);
if (xv == "1") {
setProperty("/head1", _x , xx + "10");
setProperty("/head1", _y , yy);
setProperty("/head1", _rotation , "270");
}
if (xv == (-"1")) {
setProperty("/head1", _x , xx - "10");
setProperty("/head1", _y , yy);
setProperty("/head1", _rotation , "90");
}
if (yv == (-"1")) {
setProperty("/head1", _x , xx);
setProperty("/head1", _y , yy - "10");
setProperty("/head1", _rotation , "180");
}
if (yv == "1") {
setProperty("/head1", _x , xx);
setProperty("/head1", _y , yy + "10");
setProperty("/head1", _rotation , "0");
}
Set((("s_" add xx) add "_") add yy, "o");
if (allunga == "0") {
Set((("s_" add getProperty("e_" + coda, _x)) add "_") add getProperty("e_" + coda, _y), "x");
removeMovieClip("e_" + coda);
coda = coda + "1";
} else {
allunga = allunga - "1";
}
x = xx;
y = yy;
if ((((x < "30") or ("310" < x)) or (y < "30")) or ("310" < y)) {
gotoAndStop (8);
}
if (numero == "0") {
numero = random("3") + "3";
Set("/numeretto:quanto", numero);
xnum = (random("23") * "10") + "80";
ynum = (random("28") * "10") + "30";
setProperty("/numeretto", _x , xnum - "3");
setProperty("/numeretto", _y , ynum);
} else if (random("100") == "4") {
numero = numero - "1";
Set("/numeretto:quanto", numero);
}
if ((getProperty("/head1", _x) == (xnum - "50")) and (getProperty("/head1", _y) == ynum)) {
score = score + (numero * "10");
allunga = numero;
numero = "0";
}
if ((x == (xnum - "50")) and (y == ynum)) {
score = score + (numero * "10");
allunga = numero;
numero = "0";
}
Frame 6
gotoAndPlay (5);
Frame 8
coda = "0";
while (coda < "5000") {
Set((("s_" add getProperty("e_" + coda, _x)) add "_") add getProperty("e_" + coda, _y), "p");
removeMovieClip("/e" + coda);
coda = coda + "1";
}
tellTarget ("/gameup1") {
play();
gotoAndPlay (1);
}
Symbol 15 Button
on (release) {
gotoAndPlay (4);
}
Symbol 28 Button
on (keyPress "<Right>") {
if (xv == "0") {
yv = "0";
xv = "1";
}
}
on (keyPress "<Left>") {
if (xv == "0") {
yv = "0";
xv = -"1";
}
}
on (keyPress "<Up>") {
if (yv == "0") {
yv = -"1";
xv = "0";
}
}
on (keyPress "<Down>") {
if (yv == "0") {
yv = "1";
xv = "0";
}
}
Symbol 31 Button
on (press) {
coda = "0";
while (coda < "1000") {
Set((("s_" add getProperty("e_" + coda, _x)) add "_") add getProperty("e_" + coda, _y), "p");
removeMovieClip("/e" + coda);
coda = coda + "1";
}
gotoAndPlay (4);
}
Symbol 32 Button
on (release) {
gotoAndStop (7);
}
Symbol 33 Button
on (press) {
coda = "0";
while (coda < "1000") {
Set((("s_" add getProperty("e_" + coda, _x)) add "_") add getProperty("e_" + coda, _y), "p");
removeMovieClip("/e" + coda);
coda = coda + "1";
}
gotoAndStop (1);
}
Symbol 40 Button
on (release) {
gotoAndPlay (5);
}
Symbol 45 Button
on (press) {
gotoAndPlay (4);
}
Symbol 46 Button
on (release) {
gotoAndStop (1);
}
Symbol 54 MovieClip Frame 11
stop();