Frame 22
ifFrameLoaded (88) {
gotoAndPlay (31);
}
Frame 23
Set("pts:xvel", "8");
Set("pts:yvel", "5");
Set("pts:xpos", getProperty("pts/pts", _x));
Set("pts:ypos", getProperty("pts/pts", _y));
Set("pts2:xvel", "-4");
Set("pts2:yvel", "9");
Set("pts2:xpos", getProperty("pts2/pts", _x));
Set("pts2:ypos", getProperty("pts2/pts", _y));
Set("pts3:xvel", "5");
Set("pts3:yvel", "-4");
Set("pts3:xpos", getProperty("pts3/pts", _x));
Set("pts3:ypos", getProperty("pts3/pts", _y));
Frame 24
ifFrameLoaded (88) {
gotoAndPlay (31);
}
Frame 29
gotoAndPlay (24);
Frame 40
stop();
Frame 44
t = "400";
getridof = "138";
duplicateMovieClip ("/doodtemplate", "dood", 1001);
curve = "5";
speed = "1.066";
gravity = "11";
acceleration = "25";
friction = "0.9";
doodybase = "180.3";
message = "Ride the Pipe";
grinding = "-40";
Set("/:swayfactor", "5");
Set("/:maxspeed", "70");
numtracks = "6";
musictrack = "0";
tellTarget ("/jumppower") {
stop();
};
setProperty("/jumppower", _alpha , "0");
Frame 51
startDrag ("tracker", true);
Frame 59
t = t - "1";
if (t == "396") {
setProperty("/dood", _x , "60");
}
duplicateMovieClip ("/seg0", "seg" add t, t);
ob = random("30" + level);
if (/:obstacles < "6") {
if (((ob == "3") or (ob == "4")) or (ob == "33")) {
tellTarget ("seg" add t) {
gotoAndPlay (3);
};
Set("/:obstacles", /:obstacles + "1");
} else if (ob == "9") {
tellTarget ("seg" add t) {
gotoAndPlay (5);
};
Set("/:obstacles", /:obstacles + "1");
} else if (ob == "10") {
tellTarget ("seg" add t) {
gotoAndPlay (7);
};
Set("/:obstacles", /:obstacles + "1");
} else if (ob == "14") {
tellTarget ("seg" add t) {
gotoAndPlay (11);
};
Set("/:obstacles", /:obstacles + "1");
} else if (ob == "15") {
tellTarget ("seg" add t) {
gotoAndPlay (9);
};
Set("/:obstacles", /:obstacles + "1");
} else if (ob == "16") {
tellTarget ("seg" add t) {
gotoAndPlay (13);
};
Set("/:obstacles", /:obstacles + "1");
} else if (ob == "17") {
tellTarget ("seg" add t) {
gotoAndPlay (15);
};
Set("/:obstacles", /:obstacles + "1");
} else if (ob == "18") {
tellTarget ("seg" add t) {
gotoAndPlay (17);
};
Set("/:obstacles", /:obstacles + "1");
}
}
if ("20000" < /:points) {
level = "6";
} else {
"10" < /:points;
if ("0") {
level = "4";
} else {
level = "0";
}
}
Set(("/seg" add t) add ":t", t);
removeMovieClip("/seg" add toremove);
if (dir eq "right") {
startx = startx + curve;
} else {
startx = startx - curve;
}
if ("70" < startx) {
dir = "left";
}
if (startx < "-70") {
dir = "right";
}
setProperty("/seg" add t, _x , "200" + startx);
setProperty("/city", _x , "200" - (startx / curve));
tscale = getProperty("/city", _xscale);
setProperty("/city", _xscale , "1.001" * tscale);
setProperty("/city", _yscale , "1.001" * tscale);
if (t == "1") {
Set("/:currentsound", "gameover");
gotoAndPlay (122);
}
Frame 65
gotoAndPlay (59);
Frame 78
Set("/:musictrack", /:musictrack + "1");
if (/:numtracks < /:musictrack) {
Set("/:musictrack", "1");
}
if (/:musiclock ne "true") {
tellTarget ("/music") {
gotoAndPlay ("track1");
Set("/:musiclock", "true");
};
}
Frame 88
Set("/:points", /:points + "100");
Set("/scorebubble/scorebubble:scorebubble", "100 points");
setProperty("/scorebubble", _x , /:fram);
setProperty("/scorebubble", _y , "120");
tellTarget ("/scorebubble") {
gotoAndPlay (1);
};
Frame 96
Set("/:points", /:points + "200");
Set("/scorebubble/scorebubble:scorebubble", "200 points");
setProperty("/scorebubble", _x , /:fram);
setProperty("/scorebubble", _y , "120");
tellTarget ("/scorebubble") {
gotoAndPlay (1);
};
Frame 105
Set("/:points", /:points + "300");
Set("/scorebubble/scorebubble:scorebubble", "300 points");
setProperty("/scorebubble", _x , /:fram);
setProperty("/scorebubble", _y , "120");
if (/:musiclock ne "true") {
call("newmusic");
}
tellTarget ("/scorebubble") {
gotoAndPlay (1);
};
Frame 114
Set("/:points", /:points + "500");
Set("/scorebubble/scorebubble:scorebubble", "500 points");
setProperty("/scorebubble", _x , /:fram);
setProperty("/scorebubble", _y , "120");
if (/:musiclock ne "true") {
call("newmusic");
}
tellTarget ("/scorebubble") {
gotoAndPlay (1);
};
Frame 122
ttt = "1";
removeMovieClip("dood");
Frame 130
removeMovieClip("seg" add ttt);
ttt = ttt + "1";
Frame 133
if (ttt < "12") {
gotoAndPlay (130);
}
Frame 141
gotoAndPlay (140);
Frame 146
stop();
Symbol 4 MovieClip Frame 2
fl = getProperty("/", _framesloaded);
tf = getProperty("/", _totalframes);
frpercent = (fl / tf) * "300";
if (("2" < frpercent) and (frpercent < "100")) {
loading = ("L O A D I N G : " add (substring(frpercent, "0", "2"))) add "%";
}
gotoAndPlay (1);
Symbol 29 MovieClip Frame 2
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "20" + ("2" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
}
gotoAndPlay (1);
Symbol 29 MovieClip Frame 4
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "40" + ("4" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
Set("/:obstacles", /:obstacles - "1");
}
if ((("100" < sc) and (sc < "129")) and (/:jumping ne "true")) {
if (("155" < /:fram) and (/:fram < "245")) {
Set("/:kicker", int("88" - sc));
if (/:kicker < "-25") {
Set("/:kicker", "-25");
}
if (/:kicker < "-10") {
Set("/:bigair", "true");
} else if (/:kicker < "0") {
Set("/:bigair", "kickflip");
}
if (("126" < sc) and (sc < "129")) {
Set("/:jumpvelocity", "-44");
Set("/:kicker", "0");
Set("/:jumping", "true");
Set("/:bigair", "kickflip");
call("/:points100");
Set("/:message", "jump earlier for major air");
Set("/:currentsound", "jump");
}
}
}
gotoAndPlay (3);
Symbol 29 MovieClip Frame 6
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "20" + ("2" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
Set("/:obstacles", /:obstacles - "1");
}
if (("60" < sc) and (sc < "150")) {
railx = "104" + (/:startx / /:curve);
if ((railx - "20") < /:fram) {
if (/:fram < (railx + "20")) {
if (/:jumping eq "true") {
if ("5" < /:jumpvelocity) {
Set("/:grinding", "20");
Set("/:pipegrind", "true");
Set("/:currentsound", "grind");
}
} else {
Set("/:xmomentum", "24");
Set("/:fram", int(/:fram + /:xmomentum));
Set("/:currentsound", "stop");
tellTarget ("/sounds") {
gotoAndPlay (1);
};
tellTarget ("/dood/doodbody") {
gotoAndStop ("wreck");
};
Set("/:wrecked", "6");
Set("/:message", "Ouch! that hurt.");
}
}
}
} else if (/:wrecked < "0") {
Set("/:grinding", "-3");
if (/:pipegrind ne "false") {
Set("/:pipegrind", "false");
call("/:points300");
tellTarget ("/dood/doodbody") {
gotoAndStop (1);
};
}
}
gotoAndPlay (5);
Symbol 29 MovieClip Frame 8
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "20" + ("2" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
Set("/:obstacles", /:obstacles - "1");
}
if (("80" < sc) and (sc < "105")) {
railx = "260";
if ((railx - "35") < /:fram) {
if (/:fram < (railx + "35")) {
if (/:jumping eq "true") {
if ((/tracker/:dif < "105") and ("0" < /:jumpvelocity)) {
call("/:points300");
Set("/:jumpvelocity", "-20");
Set("/:bigair", "true");
Set("/:currentsound", "clang");
Set("/:message", "Jump the barrel");
}
} else {
Set("/:xmomentum", "-24");
Set("/:fram", int(/:fram + /:xmomentum));
Set("/:currentsound", "clang");
tellTarget ("/sounds") {
gotoAndPlay (1);
};
tellTarget ("/dood/doodbody") {
gotoAndStop ("wreckl");
};
Set("/:wrecked", "6");
Set("/:message", "Ouch! that hurt.");
}
}
}
}
gotoAndPlay (7);
Symbol 29 MovieClip Frame 10
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "20" + ("2" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
Set("/:obstacles", /:obstacles - "1");
}
if (("80" < sc) and (sc < "105")) {
railx = "128";
if ((railx - "35") < /:fram) {
if (/:fram < (railx + "35")) {
if (/:jumping eq "true") {
if ((/tracker/:dif < "105") and ("0" < /:jumpvelocity)) {
call("/:points300");
Set("/:jumpvelocity", "-20");
Set("/:bigair", "true");
Set("/:currentsound", "clang");
Set("/:message", "Jump the barrel");
}
} else {
Set("/:xmomentum", "24");
Set("/:fram", int(/:fram + /:xmomentum));
Set("/:currentsound", "clang");
tellTarget ("/sounds") {
gotoAndPlay (1);
};
tellTarget ("/dood/doodbody") {
gotoAndStop ("wreck");
};
Set("/:wrecked", "6");
Set("/:message", "Ouch! that hurt.");
}
}
}
}
gotoAndPlay (9);
Symbol 29 MovieClip Frame 12
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "20" + ("2" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
Set("/:obstacles", /:obstacles - "1");
}
if (("60" < sc) and (sc < "150")) {
railx = "320" + (/:startx / /:curve);
if ((railx - "20") < /:fram) {
if (/:fram < (railx + "20")) {
if (/:jumping eq "true") {
if ("5" < /:jumpvelocity) {
Set("/:grinding", "20");
Set("/:currentsound", "grind");
Set("/:pipegrind", "trueright");
}
} else {
Set("/:xmomentum", "-24");
Set("/:fram", int(/:fram + /:xmomentum));
Set("/:currentsound", "stop");
tellTarget ("/sounds") {
gotoAndPlay (1);
};
tellTarget ("/dood/doodbody") {
gotoAndStop ("wreckl");
};
Set("/:wrecked", "6");
Set("/:message", "Ouch! that hurt.");
}
}
}
} else if (/:wrecked < "0") {
Set("/:grinding", "-3");
Set("/:pipegrind", "false");
tellTarget ("/dood/doodbody") {
gotoAndStop (1);
};
}
gotoAndPlay (11);
Symbol 29 MovieClip Frame 14
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "20" + ("2" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
Set("/:obstacles", /:obstacles - "1");
}
if (("80" < sc) and (sc < "100")) {
railx = "380";
if ((railx - "25") < /:fram) {
if (/:fram < (railx + "25")) {
call("/:points100");
Set("/:currentsound", "points");
gotoAndPlay (1);
} else {
gotoAndPlay (13);
}
} else {
gotoAndPlay (13);
}
} else {
gotoAndPlay (13);
}
Symbol 29 MovieClip Frame 16
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "20" + ("2" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
Set("/:obstacles", /:obstacles - "1");
}
if (("80" < sc) and (sc < "100")) {
railx = "40";
if ((railx - "25") < /:fram) {
if (/:fram < (railx + "25")) {
call("/:points100");
Set("/:currentsound", "points");
gotoAndPlay (1);
} else {
gotoAndPlay (15);
}
} else {
gotoAndPlay (15);
}
} else {
gotoAndPlay (15);
}
Symbol 29 MovieClip Frame 18
sc = /:speed * getProperty("/seg" add t, _xscale);
cx = getProperty("/seg" add t, _x);
setProperty("/seg" add t, _xscale , sc);
setProperty("/seg" add t, _alpha , "20" + ("2" * sc));
setProperty("/seg" add t, _x , cx + (("200" - cx) / ("35" * sc)));
setProperty("/seg" add t, _yscale , sc);
if (/:getridof < sc) {
Set("/:toremove", t);
Set("/:obstacles", /:obstacles - "1");
}
if (("90" < sc) and (sc < "103")) {
railx = "215";
if ((railx - "25") < /:fram) {
if (/:fram < (railx + "25")) {
if (/:jumping ne "true") {
Set("/:fellin", "1");
Set("/:jumping", "true");
Set("/:jumpvelocity", "0");
Set("/:points", /:points - "500");
Set("/:currentsound", "fellin");
Set("/:fram", "220");
Set("/:xmomentum", "0");
tellTarget ("/dood/doodbody") {
gotoAndPlay ("fellin");
};
}
}
}
}
gotoAndPlay (17);
Symbol 33 MovieClip Frame 2
xpos = xpos + xvel;
ypos = ypos + yvel;
if ((xpos < "10") or ("400" < xpos)) {
xvel = "-1" * xvel;
}
if ((ypos < "10") or ("400" < ypos)) {
yvel = "-1" * yvel;
}
setProperty("pts", _x , xpos);
setProperty("pts", _y , ypos);
gotoAndPlay (1);
Symbol 34 MovieClip Frame 2
xpos = xpos + xvel;
ypos = ypos + yvel;
if ((xpos < "10") or ("400" < xpos)) {
xvel = "-1" * xvel;
}
if ((ypos < "10") or ("400" < ypos)) {
yvel = "-1" * yvel;
}
setProperty("pts", _x , xpos);
setProperty("pts", _y , ypos);
gotoAndPlay (1);
Symbol 35 MovieClip Frame 2
xpos = xpos + xvel;
ypos = ypos + yvel;
if ((xpos < "10") or ("400" < xpos)) {
xvel = "-1" * xvel;
}
if ((ypos < "10") or ("400" < ypos)) {
yvel = "-1" * yvel;
}
setProperty("pts", _x , xpos);
setProperty("pts", _y , ypos);
gotoAndPlay (1);
Symbol 49 MovieClip Frame 2
if (/:currentsound ne "") {
gotoAndPlay(/:currentsound);
} else {
gotoAndPlay (1);
}
Symbol 49 MovieClip Frame 5
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 9
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 16
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 20
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 27
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 34
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 44
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 50
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 51
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 56
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 74
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 49 MovieClip Frame 76
Set("/:currentsound", "");
gotoAndPlay (1);
Symbol 54 Button
on (release) {
play();
}
Symbol 57 MovieClip Frame 1
Set("/:musictrack", "1");
Symbol 57 MovieClip Frame 3
loadMovie (("track" add /:musictrack) add ".swf", "clip");
Symbol 57 MovieClip Frame 14
Set("/:musiclock", "");
stop();
Symbol 57 MovieClip Frame 16
loadMovie ("track2.swf", "clip");
Symbol 57 MovieClip Frame 28
Set("/:musiclock", "");
stop();
Symbol 57 MovieClip Frame 30
loadMovie ("track3.swf", "clip");
Symbol 57 MovieClip Frame 42
Set("/:musiclock", "");
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 38
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
if (/:shadowbase eq "") {
Set("/:shadowbase", getProperty("shadow", _y));
Set("/:shadowbasex", getProperty("shadow", _x));
}
stop();
Symbol 124 MovieClip Frame 1
play();
Symbol 124 MovieClip Frame 15
stop();
Symbol 127 Button
on (press) {
if (/:jumping ne "true") {
Set("/:jumptimer", getTimer());
tellTarget ("/jumppower") {
gotoAndPlay (1);
};
Set("/:jumpmeter", "true");
tellTarget ("/dood/doodbody") {
gotoAndStop (2);
};
}
}
on (release) {
if (/:jumping ne "true") {
Set("/:currentsound", "jump");
Set("/:jumping", "true");
Set("/:jumpvelocity", ("-1" * (getTimer() - /:jumptimer)) / "15");
if (/:jumpvelocity < "-40") {
Set("/:jumpvelocity", "-40" + /:kicker);
} else if ("-20" < /:jumpvelocity) {
Set("/:jumpvelocity", "-20" + /:kicker);
}
if (/:jumpvelocity < "-57") {
Set("/:message2", "Whoa! Major air");
call("/:points500");
}
Set("/:points", /:points + ("5" * /:kicker));
tellTarget ("/dood/doodbody") {
gotoAndStop ("leaping2");
};
}
tellTarget ("/jumppower") {
stop();
};
}
Symbol 128 MovieClip Frame 2
if ("0" < /:grinding) {
Set("/:xmomentum", "0");
Set("/:grinding", /:grinding - "1");
if (/:pipegrind eq "true") {
Set("/:message2", "Pipe Grind!");
Set("/:fram", "114");
doody = /:doodybase - "40";
tellTarget ("/dood/doodbody") {
gotoAndStop ("grindingleft");
};
} else if (/:pipegrind eq "trueright") {
Set("/:message2", "Pipe Grind!");
Set("/:fram", "326");
doody = /:doodybase - "40";
tellTarget ("/dood/doodbody") {
gotoAndStop ("grindingright");
};
} else {
Set("/:message", "Rail Grind!");
if (/:fram < "100") {
Set("/:fram", "18");
tellTarget ("/dood/doodbody") {
gotoAndStop ("grindingleft");
};
} else {
Set("/:fram", "408");
tellTarget ("/dood/doodbody") {
gotoAndStop ("grindingright");
};
}
}
if (/:grinding < "2") {
call("/:points300");
Set("/:pipegrind", "false");
tellTarget ("/dood/doodbody") {
gotoAndStop (1);
};
}
} else if (/:jumping eq "true") {
if ((/:jumpvelocity - /:kicker) < "-40") {
Set("/:jumpvelocity", "-40" + /:kicker);
if (/:kicker < "-15") {
Set("/:bigair", "true");
call("/:points500");
} else if (/:kicker < "0") {
Set("/:bigair", "kickflip");
call("/:points100");
}
}
Set("/:xmomentum", /:xmomentum * /:friction);
doody = doody + /:jumpvelocity;
dif = /:doodybase - doody;
Set("/:jumpvelocity", /:jumpvelocity + "8");
if ("0" < /:fellin) {
dif = "100";
Set("/:jumpvelocity", "0");
tellTarget ("/dood/doodbody") {
gotoAndStop("fellin" add /:fellin);
};
Set("/:fellin", /:fellin + "1");
if (/:fellin == "7") {
Set("/:fellin", "0");
Set("/:jumpvelocity", "-40");
Set("/tracker:doody", "-390");
Set("/:fram", "60");
}
} else if (/:doodybase < doody) {
Set("/:fellin", "0");
Set("/:currentsound", "land");
Set("/:message2", "");
Set("/:kicker", "0");
Set("/:bigair", "false");
if (/:fram < "40") {
Set("/:xmomentum", /:jumpvelocity * "1.1");
Set("/:fram", int(/:fram + /:xmomentum));
} else if ("370" < /:fram) {
Set("/:xmomentum", /:jumpvelocity * "-1.1");
Set("/:fram", int(/:fram + /:xmomentum));
}
doody = /:doodybase;
dif = /:doodybase - doody;
Set("/:jumpmeter", "false");
Set("/:jumping", "false");
tellTarget ("/dood/doodbody") {
gotoAndStop ("landing");
};
} else if (/:bigair eq "true") {
Set("/:$X", /:jumpvelocity);
if (((/:$X < "0") ? (-/:$X) : (/:$X)) < "30") {
Set("/:rotframe", /:rotframe + "1");
} else {
Set("/:rotframe", "1");
}
if (/:rotframe == "6") {
Set("/:rotframe", "1");
call("points100");
}
tellTarget ("/dood/doodbody") {
gotoAndStop("r" add /:rotframe);
};
} else if (/:bigair eq "kickflip") {
Set("/:$X", /:jumpvelocity);
if (((/:$X < "0") ? (-/:$X) : (/:$X)) < "30") {
Set("/:rotframe", /:rotframe + "1");
} else {
Set("/:rotframe", "1");
}
if (/:rotframe == "9") {
Set("/:rotframe", "1");
call("points100");
}
tellTarget ("/dood/doodbody") {
gotoAndStop("k" add /:rotframe);
};
} else if ("-5" < /:jumpvelocity) {
tellTarget ("/dood/doodbody") {
gotoAndStop ("peak");
};
} else if ("-10" < /:jumpvelocity) {
tellTarget ("/dood/doodbody") {
gotoAndStop ("leaping4");
};
} else if ("-30" < /:jumpvelocity) {
tellTarget ("/dood/doodbody") {
gotoAndStop ("leaping3");
};
}
if (/:fram < "50") {
setProperty("/dood/doodbody/body", _rotation , "8" + (dif / "3"));
} else if ("350" < /:fram) {
setProperty("/dood/doodbody/body", _rotation , "-8" + (dif / "-3"));
}
Set("/:shadowoffset", int("0.7" * dif));
} else if ((/:jumping ne "true") and (/:grinding < "1")) {
if (/:wrecked < "0") {
mx = getProperty("/tracker", _x);
Set("/:xmomentum", /:xmomentum + ((mx - /:fram) / /:acceleration));
}
Set("/:xmomentum", /:xmomentum * /:friction);
if (mx < "1") {
mx = "1";
}
if ("400" < mx) {
mx = "400";
}
if (/:fram < "150") {
Set("/:xmomentum", /:xmomentum + (("150" - /:fram) / /:gravity));
if ("25" < /:xmomentum) {
Set("/:currentsound", "left2right");
}
} else if ("250" < /:fram) {
Set("/:xmomentum", /:xmomentum - ((/:fram - "250") / /:gravity));
if (/:xmomentum < "-25") {
Set("/:currentsound", "right2left");
}
}
doody = /:doodybase;
if (((/:fram < "28") and (/:grinding < "-20")) or (("405" < /:fram) and (/:grinding < "-20"))) {
Set("/:$X", /:xmomentum);
if (((/:$X < "0") ? (-/:$X) : (/:$X)) < "25") {
Set("/:grinding", "20");
if (/:fram < "200") {
Set("/:currentsound", "skidleft");
} else {
Set("/:currentsound", "skidright");
}
}
}
if ((/:xmomentum < "-22") and (/:wrecked < "0")) {
tellTarget ("/dood/doodbody") {
gotoAndStop ("left");
};
} else if (("22" < /:xmomentum) and (/:wrecked < "0")) {
tellTarget ("/dood/doodbody") {
gotoAndStop ("right");
};
} else if (/:wrecked < "0") {
tellTarget ("/dood/doodbody") {
gotoAndStop (1);
};
}
setProperty("/dood/doodbody/body", _rotation , /:xmomentum / /:swayfactor);
Set("/:$X", /:xmomentum);
if (/:maxspeed < ((/:$X < "0") ? (-/:$X) : (/:$X))) {
Set("/:$X", /:xmomentum);
Set("/:xmomentum", /:maxspeed * (((/:$X < "0") ? (-/:$X) : (/:$X)) / /:xmomentum));
}
}
Set("/:grinding", /:grinding - "1");
Set("/:wrecked", /:wrecked - "1");
setProperty("/dood", _y , doody);
ttt = getProperty("/seg" add (/:t + "9"), _x) - "140";
doodx = getProperty("/dood", _x);
if (ttt < doodx) {
setProperty("/dood", _x , doodx - "0.7");
} else {
setProperty("/dood", _x , doodx + "0.7");
}
setProperty("/dood/shadow", _y , /:shadowbase + dif);
setProperty("/dood/shadow", _alpha , "100" - dif);
Set("/:fram", int(/:fram + /:xmomentum));
tellTarget ("/dood/shadow") {
gotoAndStop(/:fram + /:shadowoffset);
};
tellTarget ("/dood") {
gotoAndStop(/:fram);
};
gotoAndPlay (1);
Symbol 134 MovieClip Frame 2
if (/:jumpmeter eq "true") {
setProperty("/jumppower", _alpha , "100");
if (/:jumping ne "true") {
Set("/:jumpvelocity", ("-1" * (getTimer() - /:jumptimer)) / "15");
if (/:jumpvelocity < "-40") {
Set("/:jumpvelocity", "-40" + /:kicker);
}
setProperty("olybar", _xscale , "-2" * /:jumpvelocity);
}
} else {
setProperty("/jumppower", _alpha , "0");
stop();
}
gotoAndPlay (1);
Symbol 145 Button
on (release) {
mykey = /:points;
if (mykey < "1") {
mykey = "0";
}
key1 = substring(mykey, "0", "1");
key2 = substring(mykey, length(mykey), "1");
key3 = key1 + key2;
key = key1 add key3;
if (/:webname eq "") {
Set("/:noname", "You must enter a name to post your score");
gotoAndPlay (122);
} else {
Set("/:noname", "Please Wait...");
getURL ((((("http://cgi2.sikids.com/servlet/com.sikids.servlet.HighScores?key=" add /:key) add "&game=trickmaster&name=") add webname) add "&score=") add /:points);
gotoAndPlay (145);
}
}
Symbol 149 Button
on (release) {
gotoAndPlay (1);
Set("/:points", "0");
}