Frame 3
Set("/:gGameID", "rocket_ride");
Set("/:gGameState", "LOADING");
Frame 9
duplicateMovieClip ("/hs_scripts_TYPE", "hs_scripts", 100);
setProperty("/hs_scripts_TYPE", _x , "-2000");
Frame 11
tellTarget ("/hs_scripts") {
gotoAndPlay ("init");
};
Frame 13
if (/hs_scripts/:gLoaded == "1") {
gotoAndPlay (22);
}
Frame 14
gotoAndPlay (13);
Frame 22
tellTarget ("/hs_scripts") {
call("mLoaded");
};
Frame 29
stop();
Frame 36
level = "1";
lives = "3";
stage = "1";
btext = "1";
bonus = "0";
leveltext = "1";
tempvar = "1";
tempvar = "0";
pose = "2";
oldpose = "2";
gScore = "0";
tellTarget ("/hs_scripts") {
call("mPlay");
};
Frame 37
if (winlose == "1") {
level = level + "1";
nextlevel = level + "1";
leveltext = leveltext + "1";
if ("3" < leveltext) {
leveltext = "1";
}
if (int((level - "1") / "3") <> "0") {
if (int((level - "1") / "3") == ((level - "1") / "3")) {
screen = "1";
stage = stage + "1";
lives = lives + "1";
if ("10" < lives) {
lives = "10";
}
btext = btext + "1";
if ("3" < btext) {
btext = "1";
}
}
}
}
Frame 38
totaltime = "60";
timemod = "100" * ((stage + leveltext) / "3");
totaldistance = (totaltime * timemod) * "4";
setProperty("/shadow", _x , "182.4");
tempx = "0";
curtime = getTimer() * "0.001";
coyoteangle = "0";
pose = "2";
rm = "1";
rmx = "177.5";
rmx2 = "187.7";
tempvar1 = "1";
tempvar2 = "0";
tempvar3 = "0";
tempvar4 = "0";
staticmove = "0";
distance = "0";
tellTarget ("/distbar") {
gotoAndStop (1);
};
banner = "0";
move = "0";
oldmove = "0";
timer = "0";
winlose = "0";
playagain = "0";
lifecount = "0";
setProperty("/tobst1n1", _x , "1000");
setProperty("/tobst1n1", _visible , "0");
tellTarget ("/tobst1n1") {
gotoAndStop (1);
};
setProperty("/tobst2n1", _x , "1000");
setProperty("/tobst2n1", _visible , "0");
tellTarget ("/tobst2n1") {
gotoAndStop (1);
};
setProperty("/tobst3n1", _x , "1000");
setProperty("/tobst3n1", _visible , "0");
tellTarget ("/tobst3n1") {
gotoAndStop (1);
};
tobstrl = "0";
obstrl1 = "0";
tempvar = "1";
tempvar2 = "1";
while (tempvar < "4") {
while (tempvar2 < "6") {
tellTarget ((("/obst" add tempvar) add "n") add tempvar2) {
gotoAndStop (1);
};
setProperty((("/obst" add tempvar) add "n") add tempvar2, _x , "1000");
setProperty((("/obst" add tempvar) add "n") add tempvar2, _visible , "0");
tempvar2 = tempvar2 + "1";
}
setProperty("/bgstatic/bg" add tempvar, _visible , "0");
tempvar2 = "1";
tempvar = tempvar + "1";
}
tempvar = "1";
tempvar2 = "1";
ospeed = "0";
tospeed = "0";
obstx = "1000";
setProperty("/bgstatic/bg" add btext, _visible , "1");
while (tempvar2 < "6") {
while (tempvar < "4") {
setProperty((("/pvb" add tempvar2) add "/gtxt") add tempvar, _visible , "0");
tempvar = tempvar + "1";
}
tempvar = "1";
tempvar2 = tempvar2 + "1";
}
tempvar = "1";
tempvar2 = "1";
while (tempvar < "6") {
setProperty((("/pvb" add tempvar) add "/gtxt") add btext, _visible , "1");
tempvar = tempvar + "1";
}
tempvar = "0";
stopAllSounds();
setProperty("/bg1", _x , "322.5");
setProperty("/bg2", _x , "2289.3");
setProperty("/bbg", _x , "981.5");
setProperty("/bbg2", _x , "2947.5");
setProperty("/bg1/bgt1", _visible , "0");
setProperty("/bg1/bgt2", _visible , "0");
setProperty("/bg1/bgt3", _visible , "0");
setProperty("/bg2/bgt1", _visible , "0");
setProperty("/bg2/bgt2", _visible , "0");
setProperty("/bg2/bgt3", _visible , "0");
setProperty("/bg1/bgt" add btext, _visible , "1");
setProperty("/bg2/bgt" add btext, _visible , "1");
if (stage == "3") {
setProperty("/bbg/bbbg1", _visible , "0");
setProperty("/bbg/bbbg2", _visible , "1");
setProperty("/bbg2/bbbg1", _visible , "0");
setProperty("/bbg2/bbbg2", _visible , "1");
} else {
setProperty("/bbg/bbbg1", _visible , "1");
setProperty("/bbg/bbbg2", _visible , "0");
setProperty("/bbg2/bbbg1", _visible , "1");
setProperty("/bbg2/bbbg2", _visible , "0");
}
setProperty("/tracks", _visible , "0");
if (btext == "3") {
setProperty("/tracks", _visible , "1");
}
tframe = "1";
Frame 42
Set("/:gLevel", level);
tellTarget ("/hs_scripts") {
call("mLevelStart");
};
Frame 121
call("mSetSpeed");
call("mBottomObst");
call("mTopObst");
call("mRocketMount");
call("mMoveRocket");
call("mSyncBGs");
call("mMoveSpeedbar");
call("mMoveTrack");
call("mUpdateStatus");
Frame 122
gotoAndPlay (121);
Frame 123
if (quit == "1") {
quit = "0";
exit = "0";
gotoAndPlay (136);
}
if (quit == "2") {
quit = "0";
exit = "0";
gotoAndPlay (121);
}
Frame 124
gotoAndPlay (123);
Frame 125
gotoAndPlay (121);
Frame 126
stopAllSounds();
if (winlose == "1") {
gLevelPoints = (level * timer) * "100";
gScore = gScore + gLevelPoints;
gotoAndPlay (127);
} else {
lives = lives - "1";
if ("0" >= lives) {
winlose = "3";
}
if (winlose == "2") {
gotoAndPlay (132);
} else if (winlose == "3") {
gotoAndPlay (136);
}
}
Frame 128
call("mWinAnim");
Frame 129
gotoAndPlay (128);
Frame 132
tellTarget ("/static") {
gotoAndPlay ("fireout");
};
Frame 133
call("mEndAnim");
Frame 134
gotoAndPlay (133);
Frame 136
tellTarget ("/static") {
gotoAndPlay ("fireout");
};
Set("/:gLevel", level);
tellTarget ("/hs_scripts") {
call("mGameOver");
};
Frame 137
call("mEndAnim");
Frame 138
gotoAndPlay (137);
Frame 146
wallmove = wallmove + "0.3";
if ("70" < wallmove) {
wallmove = "70";
}
Frame 150
wallmove = wallmove / "1.1";
if (wallmove < "0.001") {
wallmove = "0";
}
Frame 155
if (obstrl1 == "0") {
obst1release = int(random(leveltext * "10"));
trace("Release: " add obst1release);
obstrl1 = "1";
if ("5" < obst1release) {
obstrl1 = "2";
}
if ("10" < obst1release) {
obstrl1 = "3";
}
if ("15" < obst1release) {
obstrl1 = "4";
}
if ("22" < obst1release) {
obstrl1 = "5";
}
tempvar = "0";
while (tempvar < "6") {
tempvar = tempvar + "1";
setProperty((("/obst" add btext) add "n") add tempvar, _visible , "0");
}
setProperty((("/obst" add btext) add "n") add obstrl1, _visible , "1");
tellTarget ((("/obst" add btext) add "n") add obstrl1) {
gotoAndPlay ("start");
};
tempvar = "0";
}
obstx = getProperty((("/obst" add btext) add "n") add obstrl1, _x);
if ("0" < obstrl1) {
if (obstr < "0") {
obstx = "1000";
tellTarget ((("/obst" add btext) add "n") add obstrl1) {
gotoAndStop (1);
};
setProperty((("/obst" add btext) add "n") add obstrl1, _x , "1000");
setProperty((("/obst" add btext) add "n") add obstrl1, _visible , "0");
obstrl1 = "0";
}
obstmove = wallmove + (ospeed * "2");
obstx = obstx - obstmove;
setProperty((("/obst" add btext) add "n") add obstrl1, _x , obstx);
}
if ("0" < obstrl1) {
pInset = "40";
} else {
pInset = "0";
}
obstwidth = getProperty((("/obst" add btext) add "n") add obstrl1, _width) - pInset;
obstheight = getProperty((("/obst" add btext) add "n") add obstrl1, _height) - pInset;
obsty = getProperty((("/obst" add btext) add "n") add obstrl1, _y);
obstx = getProperty((("/obst" add btext) add "n") add obstrl1, _x);
if (((("/obst" add btext) add "n") add obstrl1) eq "/obst3n3") {
obstwidth = "50";
obstx = obstx + "50";
}
obstt = obsty - (obstheight / "2");
obstb = obsty + (obstheight / "2");
obstr = obstx + (obstwidth / "2");
obstl = obstx - (obstwidth / "2");
setProperty("collision_guide_obst", _x , obstx);
setProperty("collision_guide_obst", _y , obsty);
setProperty("collision_guide_obst", _width , obstwidth);
setProperty("collision_guide_obst", _height , obstheight);
if (obsthit <> "2") {
if (((((obstl < str) && (stl < obstr)) && (obstt < stb)) && (stt < obstb)) && (bonus1 <> "1")) {
obsthit = "1";
tellTarget ("/bonk") {
gotoAndPlay (2);
};
}
}
if (obsthit == "1") {
pose = "1";
obsthit = "2";
wallmove = wallmove / "3";
}
if (obstr < stl) {
obsthit = "0";
}
Frame 160
if (tobstrl == "0") {
tobstrelease = int(random("800"));
if ("750" < tobstrelease) {
tobstrl = "1";
setProperty("/tobst1n1", _visible , "1");
tellTarget ("/tobst1n1") {
gotoAndPlay (1);
};
tobstyy = random("200");
setProperty("/tobst1n1", _y , tobstyy);
}
}
if (tobstrl == "1") {
tobst = getProperty("/tobst1n1", _x);
tobst = (tobst - wallmove) + tospeed;
if (tobst < "-100") {
tellTarget ("/tobst1n1") {
gotoAndStop (1);
};
setProperty("/tobst1n1", _x , "893");
tobst = "893";
tobstrl = "0";
tospeed = "0";
}
setProperty("/tobst1n1", _x , tobst);
}
tobsty = getProperty("/tobst1n1", _y);
tobstx = getProperty("/tobst1n1", _x);
tobstwidth = "50";
tobstheight = "50";
tobstb = tobsty + (tobstheight / "2");
tobstt = tobsty - (tobstheight / "2");
tobstr = tobstx + (tobstwidth / "2");
tobstl = tobstx - (tobstwidth / "2");
setProperty("collision_guide_tobst", _x , tobstx);
setProperty("collision_guide_tobst", _y , tobsty);
if ((((((tobsthit <> "2") && (tobstl < str)) && (stl < tobstr)) && (stt < tobstb)) && (tobstt < stb)) && (bonus1 <> "1")) {
tobsthit = "1";
tellTarget ("/bonk") {
gotoAndPlay (2);
};
}
if (tobsthit == "1") {
pose = "3";
tobsthit = "2";
wallmove = wallmove / "2";
}
if (tobstr < stl) {
tobsthit = "0";
}
Frame 165
if (rm == "1") {
rmx = getProperty("/mount1", _x);
rmx2 = getProperty("/mount2", _x);
rmx = rmx - wallmove;
rmx2 = rmx2 - wallmove;
if (rmx < "-100") {
setProperty("/mount1", _visible , "0");
setProperty("/mount2", _visible , "0");
rm = "0";
}
setProperty("/mount1", _x , rmx);
setProperty("/mount2", _x , rmx2);
}
Frame 170
newstaticpos = getProperty("/static", _y);
if (pose == "3") {
if (coyoteangle < "25") {
coyoteangle = coyoteangle + "10";
}
} else if (pose == "2") {
if (CoyoteAngle < "0") {
CoyoteAngle = CoyoteAngle + "10";
} else if ("0" < CoyoteAngle) {
CoyoteAngle = CoyoteAngle - "10";
}
if (CoyoteAngle < "10") {
if ("-10" < CoyoteAngle) {
CoyoteAngle = "0";
}
}
} else if (pose == "1") {
coyoteangle = coyoteangle - "10";
}
if (CoyoteAngle < "-25") {
CoyoteAngle = "-25";
}
if ("25" < CoyoteAngle) {
CoyoteAngle = "25";
}
newstaticpos = newstaticpos + (coyoteAngle / "3");
setProperty("/static", _rotation , CoyoteAngle);
sty = getProperty("/static", _y);
stx = getProperty("/static", _x);
setProperty("/rocket_rotation_line", _x , stx);
setProperty("/rocket_rotation_line", _y , sty);
setProperty("/rocket_rotation_line", _rotation , CoyoteAngle);
stwidth = getProperty("/rocket_rotation_line", _width);
stheight = "50" - (getProperty("/rocket_rotation_line", _height) / "2");
stt = sty - (stheight / "2");
stb = sty + (stheight / "2");
str = stx + (stwidth / "2");
stl = stx - (stwidth / "2");
if ("310" < newstaticpos) {
newstaticpos = "315";
setProperty("/dust", _visible , "1");
pose = "2";
tellTarget ("/dirt") {
play();
};
} else {
setProperty("/dust", _visible , "0");
}
if (newstaticpos < "-10") {
newstaticpos = "-10";
pose = "3";
}
shadow = int(((newstaticpos - "60") * "0.3891") / "2") + "50";
setProperty("/shadow", _alpha , shadow);
setProperty("/shadow", _xscale , shadow);
setProperty("/shadow", _yscale , shadow);
if ("10" < lives) {
lives = "10";
}
setProperty("/static", _y , newstaticpos);
setProperty("/collision_guide_rocket", _x , stx);
setProperty("/collision_guide_rocket", _y , sty);
setProperty("/collision_guide_rocket", _width , stwidth);
setProperty("/collision_guide_rocket", _height , stheight);
Frame 175
bgmove = wallmove;
bg1 = getProperty("/bg1", _x);
bg1 = bg1 - bgmove;
if (bg1 < "-1622.6") {
screens = screens + "1";
bg1 = bg1 + "1966.8";
}
setProperty("/bg1", _x , bg1);
setProperty("/bg2", _x , bg1 + "1966.8");
bbgmove = wallmove / "5";
bbg = getProperty("/bbg", _x);
bbg = bbg - bbgmove;
if (bbg < "-1622.6") {
bbg = bbg + "1966.8";
}
setProperty("/bbg", _x , bbg);
setProperty("/bbg2", _x , bbg + "1966");
pavloop = pavloop + "1";
while (pavloop < "5") {
Set("pvbmove" add pavloop, (wallmove + (wallmove * pavloop)) / "2");
Set("pvb" add pavloop, getProperty("/pvb" add pavloop, _x));
Set("pvb" add pavloop, eval ("pvb" add pavloop) - eval ("pvbmove" add pavloop));
if (eval ("pvb" add pavloop) < "-400") {
Set("pvb" add pavloop, "750");
}
setProperty("/pvb" add pavloop, _x , eval ("pvb" add pavloop));
pavloop = pavloop + "1";
}
pavloop = "0";
Frame 180
speed = int(wallmove) + "1";
tellTarget ("/speedbar") {
gotoAndStop(../:speed);
};
Frame 185
if (btext == "3") {
tframe = int(tframe + bgmove);
if ("100" < tframe) {
tframe = tframe - "100";
}
tellTarget ("/tracks") {
gotoAndStop(../:tframe);
};
}
Frame 190
if (winlose <> "0") {
gotoAndPlay (126);
}
timerz = (getTimer() * "0.001") - curtime;
timer = int(totaltime - timerz);
distance = (distance + wallmove) + oldmove;
oldmove = wallmove;
if (timer < "0") {
winlose = "2";
} else if (totaldistance < distance) {
winlose = "1";
}
distmark = int(("100" / totaldistance) * distance);
tellTarget ("/distbar") {
gotoAndStop(../:distmark);
};
if (exit == "1") {
gotoAndPlay (123);
}
Frame 195
stx = getProperty("/static", _x);
if (coyoteangle < "0") {
coyoteangle = coyoteangle + "1";
} else if ("0" < coyoteangle) {
coyoteangle = coyoteangle - "1";
}
tempx = tempx + "2";
if ("1000" < (tempx + stx)) {
tempx = "0";
}
setProperty("/static", _x , stx + tempx);
setProperty("/shadow", _x , stx + tempx);
setProperty("/static", _rotation , CoyoteAngle);
call("mSetEndSpeed");
call("mSyncBGs");
obstx = getProperty((("/obst" add btext) add "n") add obstrl1, _x);
if ("0" < obstrl1) {
if (obstr < "0") {
obstx = "1000";
tellTarget ((("/obst" add btext) add "n") add obstrl1) {
gotoAndStop (1);
};
setProperty((("/obst" add btext) add "n") add obstrl1, _x , "1000");
setProperty((("/obst" add btext) add "n") add obstrl1, _visible , "0");
obstrl1 = "0";
}
obstmove = wallmove + (ospeed * "2");
obstx = obstx - obstmove;
setProperty((("/obst" add btext) add "n") add obstrl1, _x , obstx);
}
if (tobstrl == "1") {
tobst = getProperty("/tobst1n1", _x);
tobst = (tobst - wallmove) + tospeed;
if (tobst < "-100") {
tellTarget ("/tobst1n1") {
gotoAndStop (1);
};
setProperty("/tobst1n1", _x , "893");
tobst = "893";
tobstrl = "0";
tospeed = "0";
}
setProperty("/tobst1n1", _x , tobst);
}
call("mMoveTrack");
Frame 200
sty = getProperty("/static", _y);
if (coyoteangle < "0") {
coyoteangle = coyoteangle + "1";
} else if ("0" < coyoteangle) {
coyoteangle = coyoteangle - "1";
}
tempy = tempy + "1";
if ("307" < (tempy + sty)) {
tempy = "0";
sty = "307";
}
setProperty("/static", _y , sty + tempy);
setProperty("/static", _rotation , CoyoteAngle);
shadow = int(((newstaticpos - "60") * "0.3891") / "2") + "50";
setProperty("/shadow", _alpha , shadow);
setProperty("/shadow", _xscale , shadow);
setProperty("/shadow", _yscale , shadow);
call("mSetEndSpeed");
call("mSyncBGs");
obstx = getProperty((("/obst" add btext) add "n") add obstrl1, _x);
if ("0" < obstrl1) {
if (obstr < "0") {
obstx = "1000";
tellTarget ((("/obst" add btext) add "n") add obstrl1) {
gotoAndStop (1);
};
setProperty((("/obst" add btext) add "n") add obstrl1, _x , "1000");
setProperty((("/obst" add btext) add "n") add obstrl1, _visible , "0");
obstrl1 = "0";
}
obstmove = wallmove + (ospeed * "2");
obstx = obstx - obstmove;
setProperty((("/obst" add btext) add "n") add obstrl1, _x , obstx);
}
if (tobstrl == "1") {
tobst = getProperty("/tobst1n1", _x);
tobst = (tobst - wallmove) + tospeed;
if (tobst < "-100") {
tellTarget ("/tobst1n1") {
gotoAndStop (1);
};
setProperty("/tobst1n1", _x , "893");
tobst = "893";
tobstrl = "0";
tospeed = "0";
}
setProperty("/tobst1n1", _x , tobst);
}
call("mMoveTrack");
Symbol 6 MovieClip Frame 3
trace("SCRIPTS: target: " add _target);
stop();
Symbol 6 MovieClip Frame 4
loadMovie ("/games/med/HSScripts.swf", "");
Symbol 6 MovieClip Frame 6
stop();
Symbol 6 MovieClip Frame 8
gotoAndPlay (4);
Symbol 6 MovieClip Frame 18
gotoAndPlay (4);
Symbol 6 MovieClip Frame 28
gotoAndPlay (4);
Symbol 6 MovieClip Frame 38
gotoAndPlay (4);
Symbol 6 MovieClip Frame 48
gotoAndPlay (4);
Symbol 19 Button
on (release) {
gotoAndStop (35);
}
Symbol 28 Button
on (release, keyPress "`") {
gotoAndPlay (36);
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
Set("../:ospeed", "1");
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
Set("../:ospeed", "5");
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
Set("../:tospeed", "6");
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
Set("../:ospeed", "0");
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
Set("../:tospeed", "6");
Symbol 126 MovieClip Frame 1
_visible = "0";
Symbol 135 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
_visible = "0";
loadMovie ("/games/med/HSMinScore.swf", "");
Symbol 166 MovieClip Frame 4
stop();
Symbol 220 MovieClip Frame 3
gotoAndPlay (1);
Symbol 220 MovieClip Frame 22
stop();
Symbol 231 Button
on (keyPress "<Down>") {
pose = "3";
}
on (keyPress "<Up>") {
pose = "1";
}
on (keyPress "<Right>") {
pose = "2";
}
on (keyPress "p") {
pause = pause + "1";
if ("2" < pause) {
pause = "0";
}
if (pause == "1") {
stop();
} else if (pause == "2") {
play();
pause = "0";
}
}
on (keyPress "q") {
pause = "1";
exit = "1";
}
Symbol 239 Button
on (release) {
Set("../:quit", "1");
}
Symbol 241 Button
on (release) {
Set("../:quit", "2");
}
Symbol 245 MovieClip Frame 1
nlev = ../:level + "1";
stop();
Symbol 245 MovieClip Frame 2
gotoAndPlay (1);
Symbol 246 Button
on (release, keyPress "`") {
gotoAndPlay (37);
}
Symbol 253 MovieClip Frame 1
_visible = "0";
Symbol 253 MovieClip Frame 5
stop();
Symbol 264 Button
on (release, keyPress "`") {
gotoAndPlay (38);
}
Symbol 265 Button
on (release, keyPress "`") {
gotoAndPlay (36);
}