Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
kongregate.services.connect();
__com_mochibot__("05859c08", this, 10301, true);
mochi.as2.MochiServices.connect("8fe36a924aab1447");
var _mochiads_game_id = "8fe36a924aab1447";
licenseHolder = "kongregate";
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if ((domain != "kongregate.com") && (domain != "armorgames.com")) {
mochi.as2.MochiAd.showPreGameAd({id:"8fe36a924aab1447", res:"640x426"});
} else if ((licenseHolder == "armorgames") && (domain != "armorgames.com")) {
licenseHolder = "kongregate";
mochi.as2.MochiAd.showPreGameAd({id:"8fe36a924aab1447", res:"640x426"});
}
if (domain == "kongregate.com") {
kongGuest = kongregate.services.isGuest();
}
Frame 2
if (licenseHolder == "kongregate") {
sponsorURL = "http://www.kongregate.com/?gamereferral=actionturnip";
sponsorGameURL = "http://www.kongregate.com/games/raitendo/action-turnip?gamereferral=actionturnip";
sponsorGameURLSymbols = "http%3A%2F%2Fwww.kongregate.com%2Fgames%2Fraitendo%2Faction-turnip%3Fgamereferral%3Dactionturnip";
}
doeoURL = "http://www.kongregate.com/games/raitendo/doeo?referral=actionturnip";
yoloURL = "http://www.kongregate.com/games/raitendo/you-only-live-once?referral=actionturnip";
freewillURL = "http://www.kongregate.com/games/raitendo/free-will-the-game?referral=actionturnip";
wheelURL = "http://www.kongregate.com/games/raitendo/wheel-of-misfortune?referral=actionturnip";
bhumibolURL = "http://www.kongregate.com/games/raitendo/you-have-to-defecate-upon-king-bhumibol?referral=actionturnip";
passageURL = "http://www.kongregate.com/games/raitendo/passage-in-10-seconds?referral=actionturnip";
if ((domain == "kongregate.com") or (licenseHolder != "kongregate")) {
raitendoURL = "http://www.raitendo.com/";
} else {
raitendoURL = sponsorURL;
}
realRaitendoURL = "http://www.marcusrichert.com";
musicURL = "http://mysp.ac/dyZrIy";
twitterURL = "http://twitter.com/home?status=";
bitlyURL = "http://bit.ly/bBsmy5";
deliciousURL = ("http://delicious.com/save?v=5&noui&jump=close&url=" + sponsorGameURL) + "&title=ActionTurnip";
redditURL = "http://www.reddit.com/submit?url=" + sponsorGameURL;
diggURL = "http://digg.com/submit?url=" + sponsorGameURL;
stumbleUponURL = ("http://www.stumbleupon.com/submit?url=" + sponsorGameURL) + "&title=ACTION TURNIP!!!";
facebookURL = ("http://www.facebook.com/sharer.php?u=" + sponsorGameURL) + "&t=ACTION%20TURNIP!!!";
yahooURL = ("http://buzz.yahoo.com/buzz?targetUrl=" + bitlyURL) + "&headline=ACTION TURNIP!!!";
slashdotURL = "http://slashdot.org/slashdot-it.pl?op=basic&url=" + sponsorGameURLSymbols;
stop();
domaintext.text = domain;
sponsor.onPress = function () {
getURL (sponsorURL, "_blank");
};
kongregatelogo.stop();
kongregatelogo.onEnterFrame = function () {
if ((_root.getBytesLoaded() >= (_root.getBytesTotal() - 100)) && (_root.getBytesTotal() >= 16000)) {
if (this.bajs) {
if (this._currentframe == this._totalframes) {
play();
delete this.onEnterFrame;
}
} else {
this.play();
this.bajs = true;
this.buttonPlay.onPress = function () {
this._parent.play();
};
}
} else {
framet = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 61) - 20;
this.gotoAndStop(framet);
}
};
Frame 4
function stopSoundF(sound) {
if (crazyColors) {
this[sound + "Alt"].stop();
} else if (blackAndWhite && (sound == "mainMusic")) {
mainMusicBlack.stop();
} else {
this[sound].stop();
}
}
function playSoundF(sound, offset, loops) {
if (crazyColors) {
if ((sound == "jumpS") or (sound == "rocketsS")) {
var mu = this[("jumpS" + (1 + random(6))) + "Alt"];
} else if (sound.substr(0, 7) == "thunder") {
var mu = thunderS1Alt;
} else {
var mu = this[sound + "Alt"];
}
} else if (blackAndWhite) {
if (sound == "mainMusic") {
mu = mainMusicBlack;
} else {
mu == undefined;
}
} else {
var mu = this[sound];
}
if (offset == 0) {
mu.start(0, loops);
} else {
mu.start(offset);
if (loops != undefined) {
mu.onSoundComplete = function () {
mu.start(0, loops - 1);
};
}
}
}
function showRaitendoF() {
attachMovie("raitendoIntro", "logo", 1);
logo.onPress = function () {
getURL (raitendoURL, "_blank");
};
logo.onEnterFrame = function () {
if (this.b.b._currentframe == this.b.b._totalframes) {
removeMovieClip(this);
delete this.onEnterFrame;
startMenuF();
}
};
}
function startMenuF() {
fromMenu = true;
notMenu = false;
stopSoundF("mainMusic");
attachMovie("back", "back", 1);
createEmptyMovieClip("flashes", 2);
attachMovie("berg", "berg", 3, {_y:275});
createEmptyMovieClip("extraBerg", 4);
attachMovie("menu", "menu", 5);
attachMovie("muteButton", "muteMC", 138, {_x:615, _y:16});
var _local3 = System.capabilities.language;
if (((_local3 == "zh-CN") or (_local3 == "zh-TW")) or (_local3 == "zh")) {
} else {
menu.chinese._visible = false;
}
muteMC.redBar._visible = false;
muteMC.onPress = function () {
if (mute) {
this.redBar._visible = false;
unMuteF();
} else {
this.redBar._visible = true;
muteF();
}
};
enlargeButtonF(muteMC, 140);
for (var _local2 in menu.buttons) {
enlargeButtonF(menu.buttons[_local2], 120);
}
menu.buttons.run.onPress = function () {
transitionF("startGame", "run");
};
menu.buttons.turnabalt.onPress = function () {
transitionF("startGame", "turnabalt");
};
menu.buttons.moreGames.onPress = function () {
visitSponsorF();
};
menu.sponsor.onPress = function () {
visitSponsorF();
};
menu.copyright.onPress = function () {
getURL (realRaitendoURL, "_blank");
};
enlargeButtonF(menu.music, 120);
menu.music.onPress = function () {
getURL (musicURL, "_blank");
};
menu.sponsor.onRollOver = function () {
this._xscale = 120;
this._yscale = 120;
};
menu.sponsor.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
menu.copyright.onRollOver = function () {
this._xscale = 120;
this._yscale = 120;
};
menu.copyright.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
menu.onEnterFrame = function () {
if (random(45) == 1) {
lightningF();
}
};
fading = true;
back.t = 0;
lightningF();
back.onEnterFrame = function () {
if (qualityPos == 0) {
this.back1._alpha = 100;
} else if (!paused) {
if (fading) {
if (this.back1._alpha <= 0) {
this.t++;
if (this.t == 10) {
fading = false;
this.t = 0;
}
} else {
this.back1._alpha = this.back1._alpha - 1.2;
}
} else if (this.back1._alpha >= 100) {
this.t++;
if (this.t == 10) {
fading = true;
this.t = 0;
}
} else {
this.back1._alpha = this.back1._alpha + 1.2;
}
}
};
}
function startGameF(mode) {
notMenu = true;
currentMode = mode;
initializeVarF(mode);
if (fromMenu) {
playSoundF("mainMusic", 0, 10000);
fromMenu = false;
} else {
var pos = mainMusic.position;
stopSoundF("mainMusic");
playSoundF("mainMusic", pos / 1000, 10000);
}
createEmptyMovieClip("extraBerg", 4);
createEmptyMovieClip("stage", 5);
createEmptyMovieClip("foreground", 6);
createEmptyMovieClip("cpuStuff", 8);
attachMovie("gui", "gui", 10);
platforms = stage.createEmptyMovieClip("platforms", 1);
behindHero = stage.createEmptyMovieClip("behindHero", 2);
visiblePlatforms = stage.createEmptyMovieClip("visiblePlatforms", 3);
pickUps = stage.createEmptyMovieClip("pickUps", 4);
trails = stage.createEmptyMovieClip("trails", 5);
trails._visible = false;
rainbow = stage.createEmptyMovieClip("rainbow", 6);
hero = stage.attachMovie("hero", "hero", 7);
enemies = stage.createEmptyMovieClip("enemies", 8);
lasers = stage.createEmptyMovieClip("lasers", 9);
explosions = stage.createEmptyMovieClip("explosions", 10);
moji = stage.createEmptyMovieClip("moji", 14);
mouseAim = attachMovie("mouseAim", "mouseAim", 53);
startDrag (mouseAim, true);
mouseAim._visible = false;
aim = stage.attachMovie("aim", "aim", 96);
aim.x = 0;
aim.y = 0;
aim._visible = false;
var i = 0;
while (i < 7) {
gui["s" + i].stop();
if (currentMode == "turnabalt") {
gui["s" + i]._x = gui["s" + i]._x - 70;
}
i++;
}
if (currentMode == "turnabalt") {
gui.m._x = gui.m._x - 70;
gui.score._visible = false;
gui.health._visible = false;
} else {
gui.infiniteRocket._visible = false;
gui.m._visible = false;
}
gui.rocket._visible = false;
gui.rockets._visible = false;
gui.ringBar._visible = false;
gui.onion._visible = false;
gui.masken._visible = false;
gui.ringBarOutline._visible = false;
gui.ring._visible = false;
gui.ring.stop();
rainbowPosA = new Array();
platforms._visible = false;
berg.y = berg._y;
foreground.y = foreground._y;
attachPlatformF("p0", 0);
attachPlatformF("p8", (lastPlatform.x + lastPlatform._width) + 5, lastPlatform._y + 20);
attachPlatformF("p9", (lastPlatform.x + lastPlatform._width) + 30);
initializeCharF();
if (mode == "turnabalt") {
turnabaltX = 50;
hero._x = turnabaltX;
} else {
hero._x = 150;
}
hero._y = (platforms.p0._y - hero.height) - 5;
createEmptyMovieClip("mouseChecker", 100);
with (mouseChecker) {
beginFill(16711680);
moveTo(0, 0);
lineTo(screenWidth, 0);
lineTo(screenWidth, screenHeight);
lineTo(0, screenHeight);
lineTo(0, 0);
endFill();
}
mouseChecker._alpha = 0;
mouseChecker.onPress = function () {
mouseClick = true;
mouseHold = true;
};
mouseChecker.onRelease = function () {
mouseHold = false;
};
createEmptyMovieClip("cpu", 439);
cpu.onEnterFrame = function () {
gameFrameF();
};
}
function initializeVarF(mode) {
enemy1Score = 10;
enemy1CheckScore = 10;
enemy2Score = 40;
enemy2CheckScore = 40;
visiblePlatformA = [];
longPlatformA = ["p0", "p8", "p9"];
mediumPlatformA = ["p4", "p5", "p7"];
shortPlatformA = ["p1", "p2"];
minimalPlatformA = ["p3", "p6"];
enemiesKilledPerGame = 0;
enemyLimit = 10;
jumpCombo = 0;
shootCombo = 0;
shootComboT = 0;
shootComboLimit = 32;
starrySkied = false;
runLevels = [300, 500, 1000, 2000, 2800, 4000, 6000, 90000, 999999999999];
turnabaltLevels = [200, 400, 600, 1800, 2400, 3600, 999999999999];
score = 0;
distance = 0;
instructionStayOnScreenTime = 310;
maxRockets = 5;
trailA = [];
trailGoAwayTime = 60;
pickUpCrazyd = false;
pickUpBlackAndWhited = false;
c = false;
crazyLimit = 320;
var siteP = licenseHolder;
if (((domain == "ungrounded.net") or (domain == "newgrounds.com")) or (domain == "uploads.ungrounded.net")) {
siteP = "newgrounds";
}
checkDistA = ["notbad", "raitendo", "you", "are", "awesome", "music", "by", "pelle", "och", "ponta", "wow", "now", "youre", "being", "silly", siteP];
this[siteP + "Distance"] = 600;
musicDistance = 1090;
byDistance = musicDistance + 20;
pelleDistance = musicDistance + 30;
ochDistance = musicDistance + 40;
pontaDistance = musicDistance + 50;
notbadDistance = 1500;
raitendoDistance = 2100;
wowDistance = 2900;
youDistance = 4000;
areDistance = 4120;
awesomeDistance = 4220;
nowDistance = 6100;
youreDistance = 6120;
beingDistance = 6150;
sillyDistance = 6180;
enemyA = new Array();
pickUpA = new Array();
laserT = 0;
laserInterval = 3;
ringLaserInterval = 2;
ballLaserInterval = 1;
onionInterval = 3;
nextEnemyT = 9999;
pickUpT = 0;
nextPickUp = 9999;
enemyT = 0;
t = 0;
fadeT = 0;
currentLevel = 0;
if ((mode == "run") && (KillEnemyShowed)) {
currentLevel = 1;
nextEnemyT = t + 80;
runLevels[1] = 400;
runLevels[2] = 800;
}
runStartSpeed = 10;
turnabaltStartSpeed = 12;
realScrollSpeed = eval (mode + "StartSpeed");
scrollSpeed = realScrollSpeed;
runMaxScrollSpeed = 14;
runTrueMaxScrollSpeed = 20;
turnabaltMaxScrollSpeed = 19;
turnabaltTrueMaxScrollSpeed = 22;
gravity = 3;
maxGravity = 25;
laserSpeed = 20;
ringLaserSpeed = 20;
ballLaserSpeed = 25;
enemyLaserSpeed = 13;
onionSpeed = 34;
enemyLaserA = [];
laserA = [];
ringLaserAmount = 200;
}
function initializeCharF() {
hero.width = 32.4;
hero.height = 41.4;
hero.jumping = false;
hero.jumpInterrupted = false;
hero.useRocketOK = true;
hero.laserType = "laser";
hero.ySpeed = 0;
hero.xSpeed = 6.5;
hero.jumpTimerLimit = 8;
hero.jumpIncrease = 3.6;
hero.fullHealth = 10;
hero.health = hero.fullHealth;
hero.jumpSpeed = 18;
hero.ringLaserT = 0;
if (currentMode == "turnabalt") {
hero.gotRocket = maxRockets;
}
}
function fpsCounter() {
var _local1 = new Date();
timepassed = (((_local1.getMilliseconds() - lasttime) >= 0) ? (_local1.getMilliseconds() - lasttime) : (1000 + (_local1.getMilliseconds() - lasttime)));
fops = 1000;
if (fpsT < 60) {
fpsT++;
} else if (notMenu) {
fpsA.push(Math.round(10000 / timepassed) / 10);
if (fpsA.length > 60) {
fops = 0;
for (v in fpsA) {
fops = fops + fpsA[v];
}
fops = fops / fpsA.length;
if (fpsA.length > 60) {
fpsA.splice(0, 1);
}
fops = int(fops * 10) / 10;
}
}
if ((fops < 26.5) && (qualityPos == 1)) {
_quality = "LOW";
qualityPos = 0;
} else if ((fops < 26.5) && (_quality == "HIGH")) {
_quality = "MEDIUM";
qualityPos = 1;
fpsA = [];
}
lasttime = _local1.getMilliseconds();
}
function fpsLimiter() {
newT = getTimer();
while (Math.abs(newT - oldT) < maxF) {
newT = getTimer();
}
oldT = getTimer();
}
function gameFrameF() {
cheatsF();
qualityF();
keysF();
pauseF();
if (!paused) {
t++;
levelF();
backF();
scrollF();
controlF(hero);
pickUpsF();
if (currentMode == "run") {
enemyCPUF();
pickUpCPUF();
enemyF();
enemyLaserF();
laserF();
} else {
rainbowCPUF();
}
blurF();
trailF();
gravityF(hero);
hittestF(hero);
platformCPUF();
cameraF(hero);
rainbowF();
scrollSpeedF();
lightningCPUF();
guiF();
mouseClick = false;
}
}
function cheatsF() {
if (cheatsOn) {
hero.laserType = "ringLaser";
gui.ringBarOutline._xscale = 100;
gui.masken._xscale = 100;
gui.ringBar._visible = true;
gui.masken._visible = true;
gui.ringBarOutline._visible = true;
gui.ring._visible = true;
gui.ringBar.setMask(gui.masken);
hero.ringLaserT = ringLaserAmount;
gui.rocket._visible = true;
gui.rockets._visible = true;
gui.rockets.gotoAndStop(hero.gotRocket + 1);
hero.gotRocket = 9;
}
}
function levelF() {
if (distance > eval (currentMode + "Levels")[currentLevel]) {
currentLevel++;
trace((((("LEVEL UP!: " + currentLevel) + " (nextPickUpAt: ") + nextPickUp) + " current T is: ") + t);
if (level > 4) {
nextEnemyT = nextEnemyT + 100;
nextPickUp = nextPickUp - 100;
}
}
if (currentMode == "run") {
if (t == 20) {
showInstructionsF("Move");
} else if (t == 200) {
nextEnemyT = 0;
} else if (t == 390) {
showInstructionsF("Shoot");
} else if (t == 780) {
showInstructionsF("KillEnemy");
} else if (t == 1050) {
attachPickUp = true;
attachThisPickUp = "pickUpRocket";
nextPickUp = t + 400;
} else if (t == 1500) {
showInstructionsF("Pause", 190, 15);
}
} else if (currentMode == "turnabalt") {
if (t == 10) {
showInstructionsF("jump");
} else if (t == 370) {
showInstructionsF("doubleJump");
} else if (t == 400) {
nextRainbow = t + 600;
} else if (t == 900) {
showInstructionsF("Pause", 190, 15);
}
}
}
function pauseF() {
if (P && (!hero.dead)) {
if (pPress) {
if (paused) {
hero.body.play();
removeMovieClip(pauseScreen);
delete pauseScreen.onEnterFrame;
if (blackAndWhite) {
pausedMusicPos = mainMusicBlack.position;
mainMusicBlack.start(pausedMusicPos / 1000, 0);
mainMusicBlack.onSoundComplete = function () {
noMoreBlackAndWhiteF();
};
} else if (starrySky) {
pausedMusicPos = starrySkyS.position;
starrySkyS.start(pausedMusicPos / 1000, 0);
starrySkyS.onSoundComplete = function () {
noMoreStarrySkyF();
};
} else {
pausedMusicPos = mainMusic.position;
playSoundF("mainMusic", pausedMusicPos / 1000, 99999);
}
paused = false;
} else {
hero.body.stop();
attachMovie("pauseScreen", "pauseScreen", 765, {t:0});
pauseScreen.onEnterFrame = function () {
this.t++;
var _local2 = [this.p, this.a, this.u, this.s, this.e, this.d];
var _local3 = int((this.t % (_local2.length * 5)) / 5);
_local2[_local3]._xscale = 120;
_local2[_local3]._yscale = 120;
for (var _local4 in _local2) {
if (_local4 != _local3) {
_local2[_local4]._xscale = 100;
_local2[_local4]._yscale = 100;
}
}
};
if (blackAndWhite) {
mainMusicBlack.stop();
} else if (starrySky) {
stopSoundF("starrySkyS");
} else {
pausedMusicPos = mainMusic.position;
stopSoundF("mainMusic");
}
paused = true;
}
}
pPress = false;
} else {
pPress = true;
}
}
function trailF() {
for (var _local2 in trailA) {
var _local1 = trailA[_local2];
if (_local1.goAwayTime == t) {
removeMovieClip(_local1);
trailA.splice(_local2, 1);
} else if (crazyColors) {
_local1._alpha = (_local1.goAwayTime - t) * (100 / trailGoAwayTime);
}
}
}
function enlargeButtonF(what, amount) {
what.onRollOver = function () {
this._xscale = amount;
this._yscale = amount;
};
what.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
}
function blackAndWhiteF() {
submitStat("blackAndWhite", 1);
if (starrySky) {
noMoreStarrySkyF();
}
stopAllSounds();
blackAndWhite = true;
mainMusicBlack.start(0, 0);
mainMusicBlack.onSoundComplete = function () {
noMoreBlackAndWhiteF();
};
back.gotoAndStop(3);
tintItF(gui, 0, 0, 0, 100);
tintItF(berg, 0, 0, 0, 100);
tintItF(moji, 255, 255, 255, 100);
tintItF(visiblePlatforms, 255, 255, 255, 100);
tintItF(enemies, 0, 0, 0, 100);
tintItF(pickUps, 255, 255, 255, 100);
tintItF(lasers, 255, 255, 255, 100);
tintItF(enemyLasers, 0, 0, 0, 100);
tintItF(behindHero, 255, 255, 255, 100);
tintItF(explosions, 255, 255, 255, 100);
tintItF(flashes, 0, 0, 0, 100);
tintItF(foreground, 255, 255, 255, 100);
tintItF(hero, 255, 255, 255, 100);
}
function noMoreBlackAndWhiteF() {
blackAndWhite = false;
back.gotoAndStop(1);
pausedPos = mainMusic.position;
stopAllSounds();
playSoundF("mainMusic", pausedPos / 1000, 99999);
unTintItF(moji);
unTintItF(gui);
unTintItF(berg);
unTintItF(visiblePlatforms);
unTintItF(enemies);
unTintItF(pickUps);
unTintItF(lasers);
unTintItF(enemyLasers);
unTintItF(behindHero);
unTintItF(explosions);
unTintItF(flashes);
unTintItF(foreground);
unTintItF(hero);
}
function noMoreCrazyF() {
mainMusicAlt.stop();
crazyColors = false;
trails._visible = false;
gui._visible = true;
pausedPos = mainMusic.position;
playSoundF("mainMusic", pausedPos / 1000, 99999);
back.gotoAndStop(1);
tintHandler.removeMovieClip();
delete tintHandler.onEnterFrame;
hero.invincible = false;
if (hero.ringLaserT > 0) {
hero.laserType = "ringLaser";
} else {
hero.laserType = "laser";
}
moji._visible = true;
unTintItF(berg);
unTintItF(extraBerg);
unTintItF(visiblePlatforms);
unTintItF(enemies);
unTintItF(pickUps);
unTintItF(behindHero);
unTintItF(explosions);
unTintItF(flashes);
unTintItF(foreground);
unTintItF(hero);
for (var _local3 in enemyA) {
unTintItF(enemyA[_local3]);
}
for (var _local3 in laserA) {
var _local2 = laserA[_local3];
unTintItF(_local2);
}
for (var _local3 in enemyLaserA) {
var _local2 = enemyLaserA[_local3];
unTintItF(_local2);
}
for (var _local3 in visiblePlatformA) {
var _local1 = visiblePlatformA[_local3];
unTintItF(_local1);
}
}
function starrySkyF() {
submitStat(currentMode + "RainbowButt", 1);
if (currentMode != "turnabalt") {
var _local2 = lastPlatform.x + lastPlatform._width;
if (!starrySkied) {
starrySkied = true;
attachPlatformF("pNICECOMBO", (_local2 + 100) + random(110), 215, 1);
}
}
for (var _local1 in enemyLaserA) {
enemyLaserA[_local1].removeMovieClip();
enemyLaserA.splice(_local1, 1);
_local1--;
}
flashF();
stopAllSounds();
starrySky = true;
playSoundF("starrySkyS", 0);
starrySkyS.onSoundComplete = function () {
noMoreStarrySkyF();
};
berg.b1.gotoAndStop(2);
berg.b2.gotoAndStop(2);
if (extraBerg.berg != undefined) {
extraBerg.berg.removeMovieClip();
}
back.gotoAndStop(4);
tintItF(visiblePlatforms, 0, 0, 0, 65);
tintItF(foreground, 0, 0, 0, 65);
unTintItF(hero);
tintItF(enemies, 0, 0, 0, 30);
tintItF(pickUps, 0, 0, 0, 30);
}
function noMoreStarrySkyF() {
flashF();
for (var _local1 in enemyA) {
enemyA[_local1].shotT = t + random(100);
}
if (currentMode == "turnabalt") {
hero.ySpeed = 0;
}
stopSoundF("starrySkyS");
starrySky = false;
pausedPos = mainMusic.position;
playSoundF("mainMusic", pausedPos / 1000, 99999);
rainbow.clear();
berg.b1.gotoAndStop(1);
berg.b2.gotoAndStop(1);
back.gotoAndStop(1);
}
function crazyColorsF() {
submitStat("flashingColors", 1);
if (starrySky) {
noMoreStarrySkyF();
}
pausedPos = mainMusic.position;
trails._visible = true;
stopSoundF("mainMusic");
crazyColors = true;
playSoundF("mainMusic", 0, 99);
hero.invincible = true;
gui._visible = false;
moji._visible = false;
hero.laserType = "ballLaser";
back.gotoAndStop(2);
for (var _local3 in pickUpA) {
removeMovieClip(pickUpA[_local3]);
pickUpA.splice(_local3, 1);
_local3--;
}
tintItF(berg, 149, 254, 103, 100);
tintItF(extraBerg, 149, 254, 103, 100);
tintItF(behindHero, 255, 255, 255, 100);
tintItF(explosions, 255, 255, 255, 100);
tintItF(flashes, 255, 100, 100);
tintItF(foreground, 20, 57, 141, 100);
createEmptyMovieClip("tintHandler", 478);
tintHandler.t = 0;
tintHandler.onEnterFrame = function () {
tintItF(hero, random(256), random(256), random(256), 100);
for (var _local3 in enemyA) {
tintItF(enemyA[_local3], random(256), random(256), random(256), 100);
}
for (var _local3 in laserA) {
var _local2 = laserA[_local3];
tintItF(_local2, random(256), random(256), random(256), 100);
}
for (var _local3 in enemyLaserA) {
var _local2 = enemyLaserA[_local3];
tintItF(_local2, random(256), random(256), random(256), 100);
}
for (var _local3 in visiblePlatformA) {
var _local1 = visiblePlatformA[_local3];
if (!_local1.tinted) {
_local1.tinted = true;
tintItF(_local1, random(256), random(256), random(256), 100);
}
}
tintHandler.t++;
if (tintHandler.t > crazyLimit) {
noMoreCrazyF();
}
};
}
function muteF() {
mute = true;
for (var _local2 in soundA) {
this[soundA[_local2]].setVolume(0);
this[soundA[_local2] + "Alt"].setVolume(0);
}
}
function unMuteF() {
mute = false;
for (var _local2 in soundA) {
this[soundA[_local2]].setVolume(100);
this[soundA[_local2] + "Alt"].setVolume(100);
}
}
function transitionF(funct, method) {
createEmptyMovieClip("transition", 978);
transition.t = 0;
transition.onEnterFrame = function () {
this.t++;
if (this.t > 10) {
removeMovieClip(this);
delete this.onEnterFrame;
if (funct == "startGame") {
startGameF(method);
}
}
};
}
function visitSponsorF() {
getURL (sponsorURL, "_blank");
}
function scrollSpeedF() {
var _local3 = this[currentMode + "MaxScrollSpeed"];
var _local2 = this[currentMode + "TrueMaxScrollSpeed"];
if (scSp < _local2) {
if ((intDistance % 2000) == 1999) {
this[currentMode + "MaxScrollSpeed"]++;
}
}
if (realScrollSpeed < _local3) {
if (currentMode == "turnabalt") {
if (starrySky) {
realScrollSpeed = realScrollSpeed + 0.008;
} else {
realScrollSpeed = realScrollSpeed + 0.005;
}
} else {
realScrollSpeed = realScrollSpeed + 0.006;
}
}
if (!((currentMode == "turnabalt") && (starrySky))) {
scrollSpeed = int(realScrollSpeed * 10) / 10;
}
}
function rainbowCPUF() {
if (t > nextRainbow) {
attachRainbowF();
nextRainbow = (800 + (Math.ceil(t / 1200) * 1200)) + random(1200);
}
}
function attachRainbowF() {
var _local1 = pickUps.getNextHighestDepth();
var _local2 = pickUps.attachMovie("pickUpRainbow", "rb" + _local1, _local1, {_x:screenWidth, _y:50 - random(40), type:"pickUpRainbow"});
pickUpA.push(_local2);
}
function turnabaltRainbowF() {
starrySkyF();
nextRainbow = nextRainbow + 260;
scrollSpeed = 30;
var _local2 = cpuStuff.getNextHighestDepth();
var _local3 = cpuStuff.createEmptyMovieClip("rain" + _local2, _local2);
_local3.t = t;
hero.startY = hero._y;
_local3.onEnterFrame = function () {
if (!paused) {
if (this.t <= (t - 260)) {
noMoreStarrySkyF();
hero.useRocketOK = true;
removeMovieClip(this);
delete this.onEnterFrame;
} else {
if (this.t == (t - 203)) {
var _local2 = 230 + random(100);
attachPlatformF(longPlatformA[random(longPlatformA.length)], (lastPlatform.x + lastPlatform._width) + 60, _local2, 1);
attachPlatformF(mediumPlatformA[random(mediumPlatformA.length)], (lastPlatform.x + lastPlatform._width) + 5, _local2 + 40, 1);
}
if (hero._x < 200) {
hero._x = hero._x + hero.xSpeed;
}
var _local3 = Math.sin((125.663706143592 * t) / 500) * 60;
hero._y = hero.startY + _local3;
}
}
};
}
function pickUpCPUF() {
if (((!hero.dead) && (!crazyColors)) && (!blackAndWhite)) {
if ((hero.health <= 2) && (hero.health > 0)) {
if (random(400)) {
nextPickUp = nextPickUp - 15;
}
}
if (t >= nextPickUp) {
var _local1 = (4 - currentLevel) * 30;
if (_local1 < 0) {
_local1 = 0;
}
nextPickUp = t + ((350 + random(500)) - _local1);
attachPickUp = true;
}
}
}
function blurF() {
if ((blurMC == undefined) && (random(100) == 1)) {
blurMC = foreground.attachMovie("blurredPlatform", "blurMC", 1, {_x:screenWidth});
blurMC.gotoAndStop(random(blurMC._totalframes) + 1);
blurMC._y = screenHeight - (random(blurMC._height - 100) + 100);
blurMC.onEnterFrame = function () {
if (!paused) {
this._x = this._x - (scrollSpeed * 5);
if ((this._x + this._width) < 0) {
removeMovieClip(this);
delete this.onEnterFrame;
blurMC = undefined;
}
}
};
}
}
function deathF(hero) {
if (crazyColors) {
noMoreCrazyF();
} else if (blackAndWhite) {
noMoreBlackAndWhiteF();
} else if (starrySky) {
noMoreStarrySkyF();
}
gameOverT = 0;
hero.health = 0;
mouseAim._visible = false;
Mouse.show();
hero.gotoAndStop("death");
hero.t = 0;
hero.ySpeed = -8;
var _local3 = lastPlatform.x + lastPlatform._width;
attachPlatformF("pGAMEOVER", (_local3 + 100) + random(110), 215, 1);
hero.dead = true;
hero._alpha = 100;
mouseChecker.removeMovieClip();
mouseClick = false;
mouseHold = false;
createEmptyMovieClip("got", 92);
got.t = 0;
got.onEnterFrame = function () {
this.t++;
if (this.t > 5) {
removeMovieClip(this);
delete this.onEnterFrame;
gameOverF();
}
};
}
function gameOverF() {
notMenu = false;
gui.removeMovieClip();
pauseScreen.removeMovieClip();
attachMovie("gameOver", "gameOver", 10);
gameOver.submitting._visible = false;
gameOver.cancel._visible = false;
if (currentMode == "turnabalt") {
var whichOne = "intDistance";
gameOver.score._visible = false;
var personalBest = true;
if (intDistance > save.data.personalBestTurnabalt) {
save.data.personalBestTurnabalt = intDistance;
} else {
gameOver.personalBest._visible = false;
}
} else {
var whichOne = "score";
gameOver.youRan._visible = false;
gameOver.m._visible = false;
if (score > save.data.personalBestRun) {
save.data.personalBestRun = score;
var personalBest = true;
} else {
gameOver.personalBest._visible = false;
}
}
if (personalBest) {
pbt = 0;
gameOver.personalBest.onEnterFrame = function () {
pbt++;
if (pbt < 8) {
this._xscale = (this._yscale = this._yscale + 3);
} else if ((pbt > 8) && (pbt < 16)) {
this._xscale = (this._yscale = this._yscale - 3);
} else if (pbt > 17) {
pbt = 0;
}
};
}
var amount = 6;
var pf = String(int(eval (whichOne))).split("");
while (pf.length < amount) {
pf.splice(0, 0, "0");
}
var i = 0;
while (i < pf.length) {
gameOver["s" + i].gotoAndStop(Number(pf[i]) + 1);
i++;
}
if (licenseHolder == "kongregate") {
otherGamesA = ["doeo", "freewill", "wheel", "yolo", "bhumibol", "passage"];
var i = 0;
while (i < 2) {
var og = gameOver["otherGame" + i];
var m = otherGamesA.splice(random(otherGamesA.length), 1);
og.gotoAndStop(m);
og.m = m;
og.onPress = function () {
getURL (eval (this.m + "URL"), "_blank");
};
enlargeButtonF(og, 110);
i++;
}
} else {
gameOver.otherGame0._visible = false;
gameOver.otherGame1._visible = false;
}
var bA = [gameOver.sponsor, gameOver.social.slashdot, gameOver.social.twitterT, gameOver.social.delicious, gameOver.social.stumbleUpon, gameOver.social.facebook, gameOver.social.reddit];
for (var i in bA) {
bA[i].onRollOver = function () {
this.swapDepths(this._parent.getNextHighestDepth());
this._xscale = 140;
this._yscale = 140;
};
bA[i].onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
bA[i].onPress = function () {
if (this._name == "twitterT") {
sendTweetF(currentMode);
} else if (this._name == "sponsor") {
visitSponsorF();
} else {
getURL (eval (this._name + "URL"), "_blank");
}
};
}
restartButtonPress = false;
gameOverT = 0;
if (enemiesKilledPerGame >= 50) {
unlockMedal("EXTERMINATOR");
}
if (currentMode == "run") {
if (score >= 10000) {
unlockMedal("THE REAL DEAL");
} else if (score >= 1000) {
unlockMedal("TURNIP");
}
}
gameOver.onEnterFrame = function () {
gameOverT++;
if (UP && (gameOverT > 12)) {
restartButtonPress = true;
} else if (restartButtonPress && (this.buttons._y > -1000)) {
removeMovieClip(this);
delete this.onEnterFrame;
delete cpu.onEnterFrame;
startGameF(currentMode);
}
};
gameOver.cancel.onPress = function () {
this._visible = false;
submittingHighScore = true;
gameOver.submitting._visible = false;
gameOver.buttons._y = gameOver.buttons._y + 3000;
};
gameOver.buttons.tryAgain.onPress = function () {
removeMovieClip(gameOver);
delete gameOver.onEnterFrame;
delete cpu.onEnterFrame;
startGameF(currentMode);
};
gameOver.buttons.moreGames.onPress = function () {
visitSponsorF();
};
if (domain == "kongregate.com") {
if (currentMode == "turnabalt") {
var v = intDistance;
} else {
var v = score;
}
if ((!kongGuest) or cheater) {
gameOver.buttons.submitHighscore._visible = false;
gameOver.buttons.moreGames._y = 24.9;
}
if (!cheater) {
submitStat(currentMode + "HighScore", v);
}
}
gameOver.buttons.submitHighscore.onPress = function () {
if (currentMode == "turnabalt") {
var _local1 = intDistance;
} else {
var _local1 = score;
}
submitHighscoreF(_local1, currentMode);
};
gameOver.buttons.mainMenu.onPress = function () {
removeMovieClip(gameOver);
delete cpu.onEnterFrame;
startMenuF();
};
gameOver.cancel.onRollOver = function () {
this._xscale = 120;
this._yscale = 120;
};
gameOver.cancel.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
for (var i in gameOver.buttons) {
gameOver.buttons[i].onRollOver = function () {
this.swapDepths(this._parent.getNextHighestDepth());
this._xscale = 120;
this._yscale = 120;
};
gameOver.buttons[i].onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
}
}
function showInstructionsF(instructions, fadeOutTime, fadeIn) {
if (fadeOutTime == undefined) {
var fadeOutTime = instructionStayOnScreenTime;
fadeIn = 15;
}
if (this[instructions + "Showed"]) {
} else {
this[instructions + "Showed"] = true;
var _local6 = gui.getNextHighestDepth();
var _local3 = gui.attachMovie("instructions" + instructions, "instructions" + instructions, _local6);
ms = [_local3.m1, _local3.m2, _local3.m3, _local3.m4, _local3.m5, _local3.m6, _local3.m7, _local3.m8, _local3.m9, _local3.m10, _local3.m11, _local3.m12];
var i = 0;
while (i < ms.length) {
if ((ms[i] == undefined) or (ms[i] == "")) {
ms.splice(i, 1);
i--;
} else {
ms[i]._alpha = 0;
}
i++;
}
var i = 0;
while (i < ms.length) {
var _local2 = ms[i];
_local2.fadeInTime = t + (fadeIn * i);
_local2.i = i;
_local2.l = ms.length - 1;
_local2.onEnterFrame = function () {
if (this.click != undefined) {
if ((t % 15) == 1) {
if (this.click._visible) {
this.click._visible = false;
} else {
this.click._visible = true;
}
}
}
if (t > (this.fadeInTime + fadeOutTime)) {
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else if (this.i == this.l) {
removeMovieClip(this._parent);
delete this.onEnterFrame;
}
} else if (t >= this.fadeInTime) {
if (this._alpha < 100) {
this._alpha = this._alpha + 2;
}
}
};
i++;
}
}
}
function guiF() {
shootComboT++;
if (shootComboT >= shootComboLimit) {
shootCombo = 0;
shootComboT = 0;
}
if ((((hero.health <= 0) or (hero._y > (screenHeight + 20))) or (hero._x < -60)) && (!hero.dead)) {
deathF(hero);
}
if (!hero.dead) {
if (currentMode == "run") {
var whichOne = "score";
if ((t % 8) == 1) {
var scCheck = score;
score = score + 1;
if (score != (scCheck + 1)) {
cheater = true;
}
}
} else {
var whichOne = "distance";
}
var muf = (scrollSpeed / 40);
distance = distance + muf;
intDistance = int(distance);
decDistace = int(distance * 10) / 10;
var amount = 6;
var p = String(int(eval (whichOne))).split("");
while (p.length < amount) {
p.splice(0, 0, "0");
}
var i = 0;
while (i < p.length) {
gui["s" + i].gotoAndStop(Number(p[i]) + 1);
i++;
}
var i = 0;
while (i < 10) {
var h = gui.health["h" + i];
if (i < hero.health) {
tintItF(h, 0, 204, 0, 100);
} else {
tintItF(h, 204, 0, 0, 100);
}
i++;
}
}
}
function tintItF(what, r, g, b, alpha) {
var _local1 = new Color(what);
_local1.setTint(r, g, b, alpha);
}
function unTintItF(what) {
var _local1 = new Color(what);
_local1.setTint(0, 0, 0, 0);
}
function enemyCPUF() {
enemyT++;
if ((enemyT > nextEnemyT) && (enemyA.length < enemyLimit)) {
enemyT = 0;
nextEnemyT = int((10 / (currentLevel + 1)) + (random(240) / (currentLevel + 1)));
if ((((currentLevel >= 2) && (random(6) == 1)) && (!blackAndWhite)) && (enemyQueuing == undefined)) {
var _local1 = "enemy2";
} else {
var _local1 = "enemy1";
}
attachEnemyF(_local1);
}
}
function attachEnemyF(enemyType) {
var _local4 = enemies.getNextHighestDepth();
var _local1 = enemies.attachMovie(enemyType, "e" + _local4, _local4, {type:enemyType, dir:random(2)});
if (_local1.dir == 0) {
_local1.dir = -1;
if ((currentLevel < 2) or (enemyType == "enemy2")) {
_local1.dir = 1;
}
}
if (enemyType == "enemy1") {
_local1.scale = 100 * _local1.dir;
_local1.body._xscale = _local1.scale;
var _local3 = (screenWidth + (_local1._width * 2)) / 2;
_local1._x = (_local3 + (_local3 * _local1.dir)) - (_local1._width * 2);
_local1.shotT = (t + 70) + int(random(100) / (currentLevel + 1));
_local1._y = 80 + random((screenHeight - _local1._height) - 50);
_local1.s = 0;
if (currentLevel == 0) {
_local1.favouriteX = 60 + random(40);
_local1.favouriteY = 10;
} else {
_local1.favouriteX = 60 + random(55);
_local1.favouriteY = random(35);
}
_local1.breakWingPos = 0;
_local1.health = 1;
} else if (enemyType == "enemy2") {
_local1.stop();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._x = 1000;
_local1._y = 250;
enemyQueuing = _local1;
_local1.walkPos = 0;
_local1.s = 0;
_local1.body.stop();
_local1.initiated = false;
_local1.health = 2;
}
enemyA.push(_local1);
}
function shakeScreenF(amount) {
var _local2 = cpuStuff.getNextHighestDepth();
var _local3 = cpuStuff.createEmptyMovieClip("shake" + _local2, _local2);
_local3.t = 0;
_local3.onEnterFrame = function () {
this.t++;
_x = (_x + ((amount * ((this.t % 3) - 1)) / Math.ceil(this.t / 3)));
_y = (_y + ((amount * ((this.t % 3) - 1)) / Math.ceil(this.t / 3)));
if (this.t > 12) {
_x = 0;
_y = 0;
removeMovieClip(this);
delete this.onEnterFrame;
}
};
}
function damageF(hero, causerX) {
if (((!hero.invincible) && (!hero.dead)) && (!crazyColors)) {
if (starrySky) {
noMoreStarrySkyF();
}
playSoundF("buzzS");
shakeScreenF(8);
hero.health--;
hero.invincible = true;
hero.damageT = 0;
if ((hero._x + (hero._width / 2)) > causerX) {
hero.dir = 1;
} else {
hero.dir = -1;
}
hero.onEnterFrame = function () {
if ((!paused) && (!hero.dead)) {
this.damageT++;
if (this.damageT < 5) {
this._x = this._x + ((7 - this.damageT) * this.dir);
}
if (int((this.damageT % 8) / 4) == 0) {
hero._alpha = 0;
} else {
hero._alpha = 100;
}
if (this.damageT > 30) {
hero._alpha = 100;
hero.invincible = false;
delete this.onEnterFrame;
}
}
};
}
}
function enemyF() {
var _local2 = 0;
while (_local2 < enemyA.length) {
var _local1 = enemyA[_local2];
enemyMovementF(_local1);
if (_local1.health <= 0) {
if (_local1.laserDeath) {
shootCombo++;
shootComboT = 0;
var _local3 = shootCombo;
}
killEnemyF(_local1, _local2, shootCombo + jumpCombo);
} else if ((hero.ySpeed >= 5) && (_local1.hit.hitTest(hero.below))) {
jumpCombo = jumpCombo + 1;
killEnemyF(_local1, _local2, jumpCombo + shootCombo);
hero.ySpeed = (-hero.jumpSpeed) * 1.5;
} else if (_local1.hit.hitTest(hero.hit)) {
damageF(hero, _local1._x + (_local1._width / 2));
}
if ((_local1.type == "enemy2") && ((((_local1._x + _local1._width) + 200) < 0) or (_local1._y < -200))) {
removeMovieClip(_local1);
enemyA.splice(_local2, 1);
_local2--;
}
_local2++;
}
}
function enemyMovementF(enemy) {
if ((enemy.type == "enemy2") && (enemy.initiated)) {
enemy._x = enemy._x - scrollSpeed;
enemy._y = enemy._y + 4;
while (platforms.hitTest(enemy._x + (enemy.width / 2), ((enemy._y + enemy.height) - 4) + stage._y, true)) {
enemy._y = enemy._y - 0.5;
}
var _local5 = [1, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2];
enemy.body.gotoAndStop(enemy.walkPos + 1);
enemy._x = enemy._x - (_local5[enemy.walkPos] * 2);
enemy.walkPos++;
if (enemy.walkPos >= enemy.body._totalframes) {
enemy.walkPos = 0;
}
} else if (enemy.type == "enemy1") {
var _local7 = true;
var _local3 = 3;
if (!(enemy.s === 0)) {
} else {
if ((enemy.dir == 1) && ((enemy._x + (enemy._width / 2)) < (hero._x + (hero.width / 2)))) {
enemy.dir = -1;
enemy.scale = -100;
enemy.body._xscale = enemy.scale;
var _local10 = true;
} else if ((enemy.dir == -1) && ((enemy._x + (enemy._width / 2)) > (hero._x + (hero.width / 2)))) {
enemy.dir = 1;
enemy.scale = 100;
enemy.body._xscale = enemy.scale;
var _local10 = true;
}
if ((_local10 or (enemy.goal == undefined)) or (random(15) == 1)) {
enemy.goal = {x:hero._x + (enemy.favouriteX * enemy.dir), y:hero._y - enemy.favouriteY};
}
if (Math.abs(enemy._x - enemy.goal.x) < 4) {
_local3 = 0;
} else {
_local3 = 4;
}
if (currentLevel == 0) {
enemy.shotT++;
}
if ((((!enemy.shooting) && (enemy.shotT <= t)) && (currentLevel > 0)) && (!starrySky)) {
if (enemy.body.hitTest(mouseChecker)) {
enemyPreFireF(enemy);
}
}
}
var _local9 = findAngleF(enemy, enemy.goal);
var _local6 = enemy._x;
moveTowardsAngleF(enemy, _local3, _local9);
if ((enemy._x > _local6) && ((enemy._x + enemy._width) > screenWidth)) {
enemy._x = _local6;
enemy.goal.x = enemy.goal.x - 20;
}
if (_local7) {
var _local5 = [3, 2, 1, 0, 0, 0, 0, -1, -2, -3, -4, -6, -4, 5];
var _local8 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 11, 11, 1, 2, 3];
if (enemy.breakWingPos == _local5.length) {
enemy.breakWingPos = 0;
}
enemy.body.gotoAndStop(_local8[enemy.breakWingPos]);
enemy._y = enemy._y + _local5[enemy.breakWingPos];
enemy.breakWingPos++;
}
}
if (crazyColors) {
if ((t % 10) == 1) {
var _local4 = trails.getNextHighestDepth();
var _local2 = trails.attachMovie("enemyTrail", "t" + _local4, _local4, {_x:enemy._x + (enemy._width / 2), _y:enemy._y + (enemy._height / 2), goAwayTime:t + trailGoAwayTime});
_local2.gotoAndStop(random(_local2._totalframes) + 1);
trailA.push(_local2);
}
}
}
function killEnemyF(enemy, i, combo) {
if (((jumpCombo * 2) - 1) >= 18) {
unlockMedal("BAT RIDER");
}
var _local12 = (combo * 2) - 1;
if (_local12 >= 20) {
} else if (_local12 >= 10) {
}
shootComboT = 0;
enemiesKilledPerGame++;
playSoundF("enemyExplosionS");
playSoundF("enemyDeathS");
enemyA.splice(i, 1);
if (crazyColors) {
var _local11 = trails.getNextHighestDepth();
var _local13 = trails.attachMovie("trailSkull", "t" + _local11, _local11, {_x:enemy._x + (enemy._width / 2), _y:enemy._y + (enemy._height / 2), goAwayTime:(t + trailGoAwayTime) + 10});
trailA.push(_local13);
}
if ((combo >= 8) && (combo != undefined)) {
if ((awesomeT == undefined) or ((awesomeT != undefined) && (awesomeT > (t + 800)))) {
awesomeT = t;
var x = (lastPlatform.x + lastPlatform._width);
attachPlatformF("pAWESOMECOMBO", (x + 100) + random(110), 215, 1);
}
}
if ((combo > 1) && (combo != undefined)) {
var _local10 = (combo - 1) * 2;
submitStat("highestCombo", _local10);
var _local16 = this[enemy.type + "Score"] * _local10;
var _local14 = this[enemy.type + "Score"] * _local10;
var _local15 = score;
if (_local16 != (this[enemy.type + "CheckScore"] * _local10)) {
cheater = true;
}
var _local3 = String(this[enemy.type + "Score"]).split("");
_local3.push("x");
comboA = String(_local10).split("");
_local3 = _local3.concat(comboA);
} else {
var _local16 = this[enemy.type + "Score"];
var _local14 = this[enemy.type + "Score"];
var _local15 = score;
var _local3 = String(this[enemy.type + "Score"]).split("");
}
for (i in _local3) {
if (_local3[i] != "x") {
_local3[i] = Number(_local3[i]) + 1;
}
}
var _local11 = moji.getNextHighestDepth();
var _local7 = moji.createEmptyMovieClip("m" + _local11, _local11);
var _local8 = 0;
if (!starrySkyed) {
var _local17 = 2;
} else if (currentLevel < 3) {
var _local17 = 3;
} else if (currentLevel < 4) {
var _local17 = 4;
} else if (currentLevel < 5) {
var _local17 = 5;
} else {
var _local17 = 6;
}
if (((((combo > _local17) && (!starrySky)) && (!crazyColors)) && (!blackAndWhite)) && (!hero.dead)) {
starrySkyF();
starrySkyed = true;
}
var _local9 = 100 + ((combo - 1) * 16);
if (combo > 5) {
_local9 = _local9 - (8 * (combo - 5));
}
i = 0;
while (i < _local3.length) {
_local11 = _local7.getNextHighestDepth();
var _local2 = _local7.attachMovie("mojiNumber", "m" + _local11, _local11, {_x:_local8});
_local2._xscale = (_local2._yscale = _local9);
_local2.gotoAndStop(_local3[i]);
if ((combo > 1) && (combo != undefined)) {
tintItF(_local2.b, 100 + random(156), 100 + random(156), 100 + random(156), 100);
} else {
tintItF(_local2.b, 104, 245, 103, 100);
}
_local8 = _local8 + _local2._width;
i++;
}
_local7.cacheAsBitmap = true;
_local7.x = enemy._x - (_local7._width / 2);
_local7.y = enemy._y + (enemy._height / 2);
_local7._x = 2000;
_local11 = moji.getNextHighestDepth();
var expl = moji.attachMovie("scoreExplosion", "s" + _local11, _local11, {_x:enemy._x, _y:enemy._y + (enemy._width / 2)});
expl._xscale = (expl._yscale = _local9);
_local7.t = 0;
_local7.onEnterFrame = function () {
if (!paused) {
if (expl._currentframe < 6) {
} else if (expl._currentframe == 6) {
this._x = this.x;
this._y = this.y;
} else {
if (expl._currentframe == expl._totalframes) {
removeMovieClip(expl);
}
this.t++;
if (this.t <= 5) {
this._y = this._y + (3 - this.t);
} else if (this.t > 22) {
this._y = this._y - (11 + ((this.t - 22) * 1.3));
this._alpha = this._alpha - (11 + (this.t - 22));
}
if (this._alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
}
};
if (!hero.dead) {
score = score + _local16;
if (score != (_local15 + _local14)) {
cheater = true;
}
}
enemy.gotoAndStop(1);
enemy.dead = true;
if (enemy.type == "enemy2") {
enemy.gotoAndStop(2);
enemy.onEnterFrame = function () {
this._x = this._x - scrollSpeed;
if ((this._x + this._width) < 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
} else if (enemy.type == "enemy1") {
enemy.body.gotoAndStop(2);
enemy._yscale = -enemy._yscale;
enemy._y = enemy._y + enemy._height;
enemy.t = 0;
enemy.onEnterFrame = function () {
if (!paused) {
if (crazyColors) {
tintItF(this, random(256), random(256), random(256), 100);
}
this.t++;
this._x = this._x - (scrollSpeed * (this.t / 20));
this._y = this._y + (2 + this.t);
if (this._y > (screenHeight + this._height)) {
removeMovieClip(this);
delete eval (this.onEnterFrame());
}
}
};
}
}
function lightningCPUF() {
if ((random(350) == 1) && (!starrySky)) {
lightningF();
}
}
function lightningF() {
var _local4 = random(2) + 1;
var _local3 = flashes.getNextHighestDepth();
var _local2 = flashes.attachMovie("lightning" + _local4, "l" + _local3, _local3);
_local2._x = random(screenWidth - 40) + 20;
_local2._y = random(120) + 20;
_local2._xscale = (_local2._yscale = 250 - _local2._y);
if (this._x > (screenWidth / 2)) {
this._xscale = -this._xscale;
}
_local2.flashStart = 10 + random(10);
_local2.t = 0;
_local2.onEnterFrame = function () {
if (paused) {
this.stop();
}
if (!paused) {
this.play();
if (this._currentframe == 3) {
flashF();
} else if (this._currentframe == this._totalframes) {
this.stop();
this.t++;
if ((this.t == this.flashStart) && (!starrySky)) {
playSoundF("thunderS" + (random(4) + 1));
removeMovieClip(this);
delete this.onEnterFrame;
}
}
}
};
}
function flashF() {
shakeScreenF(2);
var depth = flashes.getNextHighestDepth();
var f = flashes.createEmptyMovieClip("flashMC" + depth, depth);
with (f) {
beginFill(16777215);
moveTo(-10, -10);
lineTo(screenWidth + 20, -10);
lineTo(screenWidth + 20, screenHeight + 20);
lineTo(-10, screenHeight + 20);
lineTo(-10, -10);
endFill();
}
blackenF(70);
f.onEnterFrame = function () {
if (!paused) {
if (this.t == undefined) {
this.t = 0;
} else {
this._alpha = this._alpha - 54;
blackenF(20);
if (this._alpha <= 0) {
blackenF(0);
removeMovieClip(this);
delete this.onEnterFrame;
}
}
}
};
}
function blackenF(amount) {
if (((!crazyColors) && (!blackAndWhite)) && (!starrySky)) {
if (menu != undefined) {
tintItF(menu, 0, 0, 0, amount);
} else if (gameOver != undefined) {
tintItF(gameOver, 0, 0, 0, amount);
tintItF(pickUps, 0, 0, 0, amount);
tintItF(visiblePlatforms, 0, 0, 0, amount);
tintItF(foreground, 0, 0, 0, amount);
tintItF(enemies, 0, 0, 0, amount);
} else {
tintItF(enemies, 0, 0, 0, amount);
tintItF(hero, 0, 0, 0, amount);
tintItF(pickUps, 0, 0, 0, amount);
tintItF(visiblePlatforms, 0, 0, 0, amount);
tintItF(foreground, 0, 0, 0, amount);
}
}
}
function cameraF(hero) {
var _local1 = 0;
while ((((hero._y + stage._y) > 40) && (stage._y > 0)) && (_local1 < 15)) {
_local1++;
stage._y--;
berg.y = berg.y - 0.1;
foreground.y = foreground.y - 5;
}
_local1 = 0;
while (((hero._y + stage._y) < 40) && (_local1 < 25)) {
_local1++;
stage._y++;
berg.y = berg.y + 0.1;
foreground.y = foreground.y + 5;
}
extraBerg._y = berg.y - 275;
berg._y = berg.y;
foreground._y = foreground.y;
}
function backF() {
var _local1 = int(scrollSpeed / 10);
if (extraBerg.berg != undefined) {
extraBerg.berg._x = extraBerg.berg._x - _local1;
if ((extraBerg.berg._x + extraBerg.berg._width) < 0) {
trace("remove extraberg");
removeMovieClip(extraBerg.berg);
}
}
berg._x = berg._x - _local1;
if (berg._x < (-screenWidth)) {
berg._x = berg._x + screenWidth;
if (((extraBerg.berg == undefined) && (!starrySky)) && (random(10) == 1)) {
trace("go! extraberg" + berg._x);
var _local2 = ["kongregateBerg", "raitendoBerg"];
if ((lastA == undefined) or (licenseHolder != "kongregate")) {
lastA = 1;
} else if (lastA == 1) {
lastA = 1;
} else {
lastA = 0;
}
extraBerg.attachMovie(_local2[lastA], "berg", 1, {_x:berg._x});
}
}
}
function enemyLaserF() {
for (var _local2 in enemyLaserA) {
var _local1 = enemyLaserA[_local2];
moveTowardsAngleF(_local1, enemyLaserSpeed);
if (_local1.hitTest(hero.hit)) {
damageF(hero, _local1._x);
explosionF(_local1._x, _local1._y, 7, [204, 153, 255, 90]);
removeMovieClip(_local1);
enemyLaserA.splice(_local2, 1);
_local2--;
} else if ((((_local1._x > (screenWidth + 20)) or (_local1._x < -20)) or (_local1._y < -250)) or (_local1._y > (screenHeight + 20))) {
removeMovieClip(_local1);
enemyLaserA.splice(_local2, 1);
_local2--;
}
}
}
function laserF() {
if (hero.laserType == "ringLaser") {
if (hero.ringLaserT < 0) {
hero.laserType = "laser";
gui.ringBar._visible = false;
gui.masken._visible = false;
gui.ringBarOutline._visible = false;
gui.ring._visible = false;
}
}
for (var i in laserA) {
var laser = laserA[i];
if (hero.laserType == "onion") {
rotateTowardsAngleF(laser, {x:laser._x, y:1000}, 4);
var o = Math.abs(laser._rotation);
laser.speed = laser.speed + moveTowardsAngleF(laser, laser.speed);
} else {
moveTowardsAngleF(laser, eval (laser.type + "Speed"));
if (hero.laserType == "ringLaser") {
laser._xscale = laser._xscale + 5;
laser._yscale = laser._yscale + 5;
}
}
for (var o in enemyA) {
var enemy = enemyA[o];
if (laser.hit.hitTest(enemy.hit)) {
explosionF(laser._x, laser._y, 12);
removeMovieClip(laser);
laserA.splice(i, 1);
i--;
enemy.health--;
if (enemy.health <= 0) {
enemy.laserDeath = true;
}
}
}
if ((((laser._x > (screenWidth + 20)) or (laser._x < -20)) or (laser._y < -250)) or (laser._y > (screenHeight + 20))) {
removeMovieClip(laser);
laserA.splice(i, 1);
i--;
}
}
}
function platformCPUF() {
var mn = false;
if (!((currentMode == "turnabalt") && (starrySky))) {
for (var i in checkDistA) {
var a = checkDistA[i];
if (distance > eval (a + "Distance")) {
var x = (lastPlatform.x + lastPlatform._width);
attachPlatformF("p" + a.toUpperCase(), (x + 100) + random(110), 215, 1);
checkDistA.splice(i, 1);
mn = true;
i--;
}
}
}
var x = (lastPlatform.x + lastPlatform._width);
if ((!mn) && (x < (screenWidth + 50))) {
if (currentMode == "run") {
if (distance < runLevels[0]) {
var a = [mediumPlatformA[random(mediumPlatformA.length)]];
var z = longPlatformA.concat(a);
var h = 50;
var d = 20;
} else if (distance < runLevels[1]) {
var a = shortPlatformA[random(shortPlatformA.length)];
var z = longPlatformA.concat(mediumPlatformA, longPlatformA, a);
var h = 50;
var d = 40;
} else if (distance < runLevels[2]) {
var z = longPlatformA.concat(mediumPlatformA, shortPlatformA, longPlatformA);
var h = 70;
var d = 75;
} else if (distance < runLevels[3]) {
var a = minimalPlatformA[random(minimalPlatformA.length)];
var z = longPlatformA.concat(mediumPlatformA, shortPlatformA, longPlatformA, a);
var h = 90;
var d = 90;
} else if (distance < runLevels[4]) {
var z = longPlatformA.concat(mediumPlatformA, shortPlatformA, minimalPlatformA);
var h = 100;
var d = 100;
} else if (distance < runLevels[5]) {
var a = longPlatformA[random(longPlatformA.length)];
var z = minimalPlatformA.concat(mediumPlatformA, shortPlatformA, a);
var h = 100;
var d = 100;
} else if (distance < runLevels[6]) {
var a = longPlatformA[random(longPlatformA.length)];
var z = minimalPlatformA.concat(mediumPlatformA, shortPlatformA, mediumPlatformA, shortPlatformA, a);
var h = 100;
var d = 100;
} else if (distance < runLevels[7]) {
var a = longPlatformA[random(longPlatformA.length)];
var z = minimalPlatformA.concat(mediumPlatformA, shortPlatformA, shortPlatformA, a);
var h = 100;
var d = 100;
}
} else if (currentMode == "turnabalt") {
if (currentLevel == 0) {
var z = mediumPlatformA.concat(longPlatformA);
var h = 70;
var d = 70;
} else if (currentLevel == 1) {
var z = shortPlatformA.concat(mediumPlatformA, longPlatformA, mediumPlatformA);
var h = 90;
var d = 150;
} else if (currentLevel == 2) {
var a = minimalPlatformA[random(minimalPlatformA.length)];
var z = shortPlatformA.concat(shortPlatformA, mediumPlatformA, mediumPlatformA, longPlatformA, a);
var h = 100;
var d = 170;
} else if (currentLevel == 3) {
var a = minimalPlatformA[random(minimalPlatformA.length)];
var z = shortPlatformA.concat(mediumPlatformA, mediumPlatformA, shortPlatformA, longPlatformA, a, a);
var h = 100;
var d = 185;
} else if (currentLevel == 4) {
var a = minimalPlatformA[random(minimalPlatformA.length)];
var z = minimalPlatformA.concat(mediumPlatformA, mediumPlatformA, shortPlatformA, longPlatformA, a);
var h = 110;
var d = 210;
} else if (currentLevel >= 5) {
var a = longPlatformA[random(longPlatformA.length)];
var z = minimalPlatformA.concat(mediumPlatformA, shortPlatformA, longPlatformA, a, minimalPlatformA, mediumPlatformA, shortPlatformA);
var h = 120;
var d = 240;
}
}
plat = z[random(z.length)];
h = h / 100;
d = d / 100;
attachPlatformF(plat, x + ((70 + random(140)) * d), 350 - (random(135) * h));
}
}
function attachPlatformF(platformName, x, y, xScale) {
if (x == undefined) {
x = screenWidth;
}
if (y == undefined) {
y = 300;
}
var _local4 = platforms.getNextHighestDepth();
var _local2 = platforms.attachMovie(platformName + "geo", "p" + _local4, _local4, {_x:x, x:x});
var _local3 = visiblePlatforms.attachMovie(platformName, "p" + _local4, _local4, {_x:x, x:x});
visiblePlatformA.push(_local3);
if (xScale == undefined) {
if (random(2) == 1) {
_local2._xscale = (_local3._xscale = -_local2._xscale);
_local2._x = _local2._x + _local2._width;
_local3._x = _local3._x + _local2._width;
}
}
lastPlatform = _local2;
var _local5 = platformName;
_local5 = _local5.substr(1, 1);
if (int(_local5) == 0) {
lastPlatformWasAWord = true;
} else {
lastPlatformWasAWord = false;
}
_local3._y = (_local2._y = y);
if (attachPickUp) {
attachPickUpF(lastPlatform, attachThisPickUp);
}
if ((((!lastPlatformWasAWord) && (enemyQueuing != undefined)) && (_local2._width > 500)) && (!blackAndWhite)) {
enemyQueuing._x = (_local2.x + (_local2._width / 3)) + random(_local2._width / 2);
enemyQueuing._y = _local2._y;
enemyQueuing.initiated = true;
enemyQueuing = undefined;
}
_local3.splicer = true;
_local3.onEnterFrame = (_local2.onEnterFrame = function () {
if (!paused) {
this._x = this._x - scrollSpeed;
this.x = this.x - scrollSpeed;
var x = (this.x + this._width);
if ((x + 20) < 0) {
if (this.splicer) {
visiblePlatformA.splice(0, 1);
}
removeMovieClip(this);
delete this.onEnterFrame;
}
}
});
}
function attachPickUpF(platform, pickUp) {
if (lastPlatformWasAWord or (currentMode == "turnabalt")) {
} else {
attachPickUp = false;
if (pickUp == undefined) {
if (currentLevel >= 2) {
if (enemyA.length >= 2) {
var _local5 = 6;
} else {
var _local5 = 5;
}
} else {
var _local5 = 4;
}
var _local2 = random(_local5);
if ((hero.health <= 2) && (hero.health > 0)) {
if (random(3) != 1) {
_local2 = 0;
}
} else if (hero.health >= (hero.fullHealth - 1)) {
if (_local2 == 0) {
_local2 = random(_local5 - 1) + 1;
}
}
if ((_local2 == 3) && (pickUpCrazyd)) {
_local2 = 4;
} else if ((_local2 == 4) && (pickUpBlackAndWhited)) {
_local2 = 3;
}
if ((pickUpCrazyd && (pickUpBlackAndWhited)) && (random(10) >= 4)) {
_local2 = random(4);
if (_local2 == 3) {
_local2 = 5;
}
}
switch (_local2) {
case 0 :
pickUp = "pickUpHealth";
break;
case 1 :
pickUp = "pickUpRing";
break;
case 2 :
pickUp = "pickUpRocket";
break;
case 3 :
pickUp = "pickUpCrazy";
break;
case 4 :
pickUp = "pickUpBlack";
break;
case 5 :
pickUp = "pickUpAnnihilation";
}
}
var _local7 = (platform.x + 50) + random(platform._width - 100);
var _local4 = pickUps.getNextHighestDepth();
var _local1 = pickUps.attachMovie(pickUp, pickUp + _local4, _local4, {_x:_local7, _y:platform._y + 50, type:pickUp});
while (platforms.hitTest(_local1._x + (_local1._width / 2), (_local1._y + _local1._height) + stage._y, true)) {
_local1._y--;
}
_local1._y = _local1._y - 5;
pickUpA.push(_local1);
attachThisPickUp = undefined;
}
}
function pickUpsF() {
var i = 0;
while (i < pickUpA.length) {
var pu = pickUpA[i];
pu._x = pu._x - scrollSpeed;
if ((pu._x + pu._width) < 0) {
removeMovieClip(pu);
pickUpA.splice(i, 1);
i--;
} else if (pu.hitTest(hero) && (!hero.dead)) {
score = score + 10;
eval (pu.type + "F")(hero);
removeMovieClip(pu);
pickUpA.splice(i, 1);
i--;
}
i++;
}
}
function pickUpRainbowF(hero) {
turnabaltRainbowF();
}
function pickUpAnnihilationF(hero) {
annihilationF();
}
function pickUpBlackF(hero) {
pickUpBlackAndWhited = true;
blackAndWhiteF();
}
function pickUpCrazyF(hero) {
pickUpCrazyd = true;
crazyColorsF();
}
function pickUpHealthF(hero) {
hero.health = hero.fullHealth;
}
function pickUpOnionF(hero) {
hero.laserType = "onion";
}
function pickUpRingF(hero) {
hero.laserType = "ringLaser";
gui.ringBarOutline._xscale = 100;
gui.masken._xscale = 100;
gui.ringBar._visible = true;
gui.masken._visible = true;
gui.ringBarOutline._visible = true;
gui.ring._visible = true;
gui.ringBar.setMask(gui.masken);
hero.ringLaserT = ringLaserAmount;
}
function pickUpRocketF(hero) {
playSoundF("powerUpS");
showInstructionsF("rockets");
hero.gotRocket = maxRockets;
gui.rocket._visible = true;
gui.rockets._visible = true;
gui.rockets.gotoAndStop(hero.gotRocket + 1);
}
function annihilationF() {
flashF();
shakeScreenF(10);
playSoundF("annihilationS");
var _local2 = 0;
while (_local2 < enemyA.length) {
var _local1 = enemyA[_local2];
if (_local1.initiated or (_local1.type != "enemy2")) {
explosionF(_local1._x + (_local1._width / 2), _local1._y + (_local1._height / 2), 17, [255, 255, 255, 100]);
killEnemyF(_local1, _local2, 0);
_local2--;
}
_local2++;
}
}
function scrollF() {
}
function qualityF() {
if (G) {
if (!gTap) {
gTap = true;
qualityA = ["LOW", "MEDIUM", "HIGH"];
if (qualityPos == undefined) {
qualityPos = 2;
}
qualityPos++;
if (qualityPos >= qualityA.length) {
qualityPos = 0;
}
_quality = qualityA[qualityPos];
}
} else {
gTap = false;
}
}
function keysF() {
G = Key.isDown(71);
UP = ((Key.isDown(38) or Key.isDown(32)) or Key.isDown(87)) or Key.isDown(90);
RIGHT = Key.isDown(39) or Key.isDown(68);
LEFT = (Key.isDown(37) or Key.isDown(81)) or Key.isDown(65);
P = Key.isDown(80);
I = Key.isDown(73);
J = Key.isDown(74);
K = Key.isDown(75);
L = Key.isDown(76);
U = Key.isDown(85);
O = Key.isDown(79);
PLUS = Key.isDown(187);
NUM1 = Key.isDown(97) or (J && (K));
NUM2 = Key.isDown(98) or ((K && (!J)) && (!L));
NUM3 = Key.isDown(99) or (K && (L));
NUM4 = Key.isDown(100) or ((J && (!K)) && (!I));
NUM5 = Key.isDown(101);
NUM6 = Key.isDown(102) or ((L && (!K)) && (!I));
NUM7 = Key.isDown(103) or (J && (I));
NUM8 = Key.isDown(104) or ((I && (!J)) && (!L));
NUM9 = Key.isDown(105) or (I && (L));
}
function controlF(hero) {
if ((!hero.dead) && (!((currentMode == "turnabalt") && (starrySky)))) {
movedRight = false;
movedLeft = false;
laserT++;
if (hero._currentframe == 4) {
if ((hero.body._currentframe == hero.body._totalframes) && (!hero.dead)) {
hero.gotoAndStop("running");
}
}
if (currentMode == "run") {
var herox = (hero._x + (hero.width / 2));
var heroy = (hero._y + (hero.height / 2));
if (mouseHold) {
if (!mouseAim._visible) {
mouseAim._visible = true;
Mouse.hide();
}
if (laserT > eval (hero.laserType + "Interval")) {
fireLaserF(hero);
}
} else if ((((((((NUM1 or NUM2) or NUM3) or NUM4) or NUM5) or NUM6) or NUM7) or NUM8) or NUM9) {
if (NUM1) {
var x = (herox - 10);
var y = (heroy + 10);
var num = "num1";
} else if (NUM2) {
var x = herox;
var y = (heroy + 10);
var num = "num2";
} else if (NUM3) {
var x = (herox + 10);
var y = (heroy + 10);
var num = "num3";
} else if (NUM4) {
var x = (herox - 10);
var y = heroy;
var num = "num4";
} else if (NUM5) {
var x = (herox + ((random(3) - 1) * 10));
var y = (heroy + ((random(3) - 1) * 10));
var num = "num5";
} else if (NUM6) {
var x = (herox + 10);
var y = heroy;
var num = "num6";
} else if (NUM7) {
var x = (herox - 10);
var y = (heroy - 10);
var num = "num7";
} else if (NUM8) {
var x = herox;
var y = (heroy - 10);
var num = "num8";
} else if (NUM9) {
var x = (herox + 10);
var y = (heroy - 10);
var num = "num9";
}
mouseAim._visible = false;
Mouse.show();
aim._x = herox + aim.x;
aim._y = heroy + aim.y;
dist = findDistanceF({x:aim._x, y:aim._y}, {x:x, y:y});
if ((((laserT > 12) or (dist > 16)) or ((previousNum == "num8") && (num == "num2"))) or ((previousNum == "num2") && (num == "num8"))) {
aim._x = x;
aim._y = y;
} else {
rotateTowardsAngleF(aim, {x:x, y:y});
moveTowardsAngleF(aim, 1);
}
previousNum = num;
aim.x = aim._x - herox;
aim.y = aim._y - heroy;
if (laserT > eval (hero.laserType + "Interval")) {
fireLaserF(hero, {x:aim._x, y:aim._y});
}
}
}
if (((LEFT && (!RIGHT)) && (currentMode == "run")) or ((currentMode == "turnabalt") && (hero._x > (turnabaltX + 7)))) {
if (hero._x > hero.xSpeed) {
hero._x = hero._x - hero.xSpeed;
movedLeft = true;
}
}
if (((RIGHT && (!LEFT)) && (currentMode == "run")) or ((currentMode == "turnabalt") && (hero._x < (turnabaltX - 2)))) {
if (hero._x < ((screenWidth - hero.width) - hero.xSpeed)) {
hero._x = hero._x + hero.xSpeed;
movedRight = true;
}
}
if (UP or ((currentMode == "turnabalt") && (mouseHold))) {
if (((hero.jumping && (!hero.falling)) && (!hero.jumpingInterrupted)) && (hero.jumpTimer < hero.jumpTimerLimit)) {
increaseJumpF(hero);
} else if (!hero.jumping) {
jumpF(hero);
if (crazyColors) {
rocketStuffF(hero);
}
playSoundF("jumpS");
} else if (((hero.gotRocket > 0) && (hero.jumpingInterrupted)) && (hero.useRocketOK)) {
if (currentMode == "run") {
hero.gotRocket--;
}
hero.useRocketOK = false;
if (hero.gotRocket == 0) {
gui.rocket._visible = false;
gui.rockets._visible = false;
} else {
gui.rockets.gotoAndStop(hero.gotRocket + 1);
}
jumpF(hero, 1.1);
playSoundF("steamS");
playSoundF("rocketsS");
rocketStuffF(hero);
}
} else if (hero.jumping) {
hero.jumpingInterrupted = true;
}
}
}
function rocketStuffF(hero) {
var _local5 = behindHero.getNextHighestDepth();
var _local4 = behindHero.createEmptyMovieClip("b" + _local5, _local5);
_local4.t = 0;
_local4.t2 = 0;
_local4.onEnterFrame = function () {
if (!paused) {
if (this.t2 > 90) {
removeMovieClip(this);
delete eval (this.onEnterFrame());
} else {
var _local3 = 10;
if (this.t2 > 60) {
_local3 = _local3 - int((this.t2 - 60) / 5);
}
var _local2 = 0;
while (_local2 < _local3) {
rocketFluffF();
this.t2++;
_local2++;
}
}
}
};
}
function rocketFluffF() {
var _local4 = behindHero.getNextHighestDepth();
var _local3 = "rocketFire" + random(8);
var _local2 = behindHero.attachMovie(_local3, _local3 + _local4, _local4);
_local2._x = ((hero._x + (hero._width / 2)) + random(6)) - 3;
_local2._y = ((hero._y + hero._height) - 10) + random(5);
_local2.speed = 8 + random(6);
_local2.cacheAsBitmap = true;
_local2.angle = (180 + random(60)) - 30;
_local2.t = 0;
_local2.onEnterFrame = function () {
if (!paused) {
this.t++;
this.speed = this.speed * 0.9;
if (this.t > 7) {
this._alpha = this._alpha - 20;
}
this._x = this._x - (scrollSpeed / 2);
moveTowardsAngleF(this, this.speed, this.angle);
if (((this._y - this._height) > screenHeight) or (this._alpha <= 0)) {
this.removeMovieClip();
delete this.onEnterFrame;
}
}
};
}
function explosionF(x, y, amount, tint) {
var _local1 = 0;
while (_local1 < amount) {
explosion2F(x, y, tint, amount);
_local1++;
}
}
function explosion2F(x, y, tint, amount) {
var _local5 = explosions.getNextHighestDepth();
var _local4 = "rocketFire" + random(8);
var _local2 = explosions.attachMovie(_local4, _local4 + _local5, _local5);
if (tint != undefined) {
tintItF(_local2, tint[0], tint[1], tint[2], tint[3]);
}
_local2._x = (x + random(amount / 3)) - 3;
_local2._y = (y + random(amount / 3)) - 3;
_local2.speed = (2 + random(3)) + Math.floor(amount / 4);
_local2.cacheAsBitmap = true;
_local2.angle = random(360);
_local2.t = 0;
_local2.onEnterFrame = function () {
if (!paused) {
this.t++;
this.speed = this.speed * 0.9;
if (this.t > 5) {
this._alpha = this._alpha - 20;
}
this._x = this._x - (scrollSpeed / 2);
moveTowardsAngleF(this, this.speed, this.angle);
if (((this._y - this._height) > screenHeight) or (this._alpha <= 0)) {
this.removeMovieClip();
delete this.onEnterFrame;
}
}
};
}
function fireLaserF(hero, target) {
playSoundF("playerLaserS");
laserT = 0;
if (hero.laserType == "ringLaser") {
hero.ringLaserT--;
var rbo = int((hero.ringLaserT / ringLaserAmount) * 100);
gui.ringBarOutline._xscale = rbo;
gui.masken._xscale = rbo;
}
var depth = lasers.getNextHighestDepth();
var laser = lasers.attachMovie(hero.laserType, "l" + depth, depth, {_x:hero._x + (hero.width / 2), _y:hero._y + (hero.height / 2), type:hero.laserType, speed:eval (hero.laserType + "Speed")});
laser.gotoAndStop(random(laser._totalframes) + 1);
if (target == undefined) {
var target = {x:_xmouse, y:_ymouse};
}
rotateTowardsAngleF(laser, target);
laserA.push(laser);
}
function enemyPreFireF(enemy) {
enemy.shooting = true;
playSoundF("enemyPreFireS");
var _local2 = lasers.getNextHighestDepth();
var _local3 = lasers.attachMovie("enemyPreShot", "pre" + _local2, _local2, {_x:enemy._x + (enemy._width / 2), _y:enemy._y + (enemy._height / 2)});
_local3.onEnterFrame = function () {
if (starrySky) {
removeMovieClip(this);
delete this.onEnterFrame;
} else if (paused) {
this.stop();
} else {
this.play();
if (((enemy == undefined) or enemy.dead) or (enemy == "")) {
removeMovieClip(this);
enemy.shooting = false;
} else {
this._x = enemy._x + (enemy._width / 2);
this._y = enemy._y + (enemy._height / 2);
if (this._currentframe == this._totalframes) {
removeMovieClip(this);
enemyFireLaserF(enemy, Math.ceil(currentLevel / 2));
}
}
}
};
}
function enemyFireLaserF(enemy, amount) {
playSoundF("enemyLaserSound");
enemy.severalShotsA = [];
var _local2 = 0;
while (_local2 < amount) {
enemy.severalShotsA.push(t + (_local2 * 10));
_local2++;
}
enemy.onEnterFrame = function () {
if (t >= this.severalShotsA[0]) {
this.severalShotsA.splice(0, 1);
playSoundF("enemyLaserS");
var _local3 = lasers.getNextHighestDepth();
var _local2 = lasers.attachMovie("purpleLaser", "l" + _local3, _local3, {_x:this._x + (this._width / 2), _y:this._y + (this._height / 2)});
_local2.gotoAndStop(random(_local2._totalframes) + 1);
var _local4 = {x:((hero._x + (hero.width / 2)) + random(50)) - 25, y:((hero._y + (hero.height / 2)) + random(50)) - 25};
rotateTowardsAngleF(_local2, _local4);
enemyLaserA.push(_local2);
}
if (this.severalShotsA.length == 0) {
enemy.shooting = false;
enemy.shotT = (t + 130) + int(random(150) / (currentLevel + 1));
delete this.onEnterFrame;
}
};
}
function jumpF(hero, multiple) {
if (multiple == undefined) {
multiple = 1;
}
runningS.stop();
hero.jumpTimer = 0;
hero.jumpingInterrupted = false;
hero.jumping = true;
hero.ySpeed = (-hero.jumpSpeed) * multiple;
}
function increaseJumpF(hero) {
hero.jumpTimer++;
if (hero.jumpTimer > (hero.jumpTimerLimit / 2)) {
hero.ySpeed = hero.ySpeed - (hero.jumpIncrease * 0.6);
} else {
hero.ySpeed = hero.ySpeed - hero.jumpIncrease;
}
}
function landF(hero) {
jumpCombo = 0;
playSoundF("landingS");
landingS.onSoundComplete = function () {
if (hero != jumping) {
playSoundF("runningS", 0, 99);
}
};
if (!hero.dead) {
hero.gotoAndStop("landing");
}
}
function landedF(hero) {
hero.useRocketOK = true;
hero.jumping = false;
hero.falling = false;
hero.jumpingInterrupted = false;
}
function gravityF(hero) {
if (!(starrySky && (currentMode == "turnabalt"))) {
hero._y = hero._y + hero.ySpeed;
hero.ySpeed = hero.ySpeed + gravity;
if (hero.jumping && (!hero.dead)) {
if (hero.ySpeed < -4) {
hero.gotoAndStop("jumping");
} else if (hero.ySpeed > 8) {
hero.gotoAndStop("falling");
} else if (hero._currentframe != 4) {
hero.gotoAndStop("running");
}
} else if ((hero._currentframe != 4) && (!hero.dead)) {
hero.gotoAndStop("running");
}
if (hero.ySpeed > maxGravity) {
hero.ySpeed = maxGravity;
}
}
}
function hittestF(hero) {
if (!hero.dead) {
var _local2 = 5;
if ((hero.ySpeed > _local2) && (platforms.hitTest(hero._x + (hero.width / 2), (hero._y + (hero.height * 3)) + stage._y, true))) {
_local2 = 15;
}
if ((hero.ySpeed > _local2) && (!hero.jumping)) {
hero.jumping = true;
hero.falling = true;
runningS.stop();
}
while (platforms.hitTest(hero._x + (hero.width / 2), (hero._y + hero.height) + stage._y, true)) {
if (hero.jumping) {
landedF(hero);
}
if (hero.ySpeed >= 14) {
landF(hero);
}
hero.ySpeed = 0;
hero._y = hero._y - 0.2;
}
while (platforms.hitTest(((hero._x + hero.width) + hero.xSpeed) + scrollSpeed, (hero._y + (hero.height / 2)) + stage._y, true)) {
hero._x--;
}
}
}
function moveTowardsAngleF(object, speed, angle) {
if (angle == undefined) {
angle = object._rotation;
}
object._y = object._y + (Math.sin(((angle - 90) * 3.14) / 180) * speed);
object._x = object._x + (Math.cos(((angle - 90) * 3.14) / 180) * speed);
}
function findDistanceF(object, target) {
var _local2 = Math.round(object.x - target.x);
var _local1 = Math.round(object.x - target.x);
var _local3 = Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
return(_local3);
}
function findAngleF(object, target) {
var _local1 = int((-Math.atan2(object._x - target.x, object._y - target.y)) / 0.0174444444444444);
return(_local1);
}
function rotateTowardsAngleF(object, target, speed) {
var _local1 = object;
var _local2 = int((-Math.atan2(object._x - target.x, object._y - target.y)) / 0.0174444444444444);
_local2 = _local2 + 180;
var _local3 = _local1._rotation + 180;
if (speed == undefined) {
_local1._rotation = _local2 - 180;
} else if (Math.abs(_local3 - _local2) > 5) {
if (_local2 > _local3) {
if ((_local2 - _local3) < 180) {
_local1._rotation = _local1._rotation + int(1 + speed);
} else {
_local1._rotation = _local1._rotation - int(1 + speed);
}
} else if ((_local3 - _local2) > 180) {
_local1._rotation = _local1._rotation + int(1 + speed);
} else {
_local1._rotation = _local1._rotation - int(1 + speed);
}
}
}
function rainbowF() {
if ((t % 2) or ((currentMode == "turnabalt") && (starrySky))) {
rainbowPosA.push({x:hero._x + (hero._width / 2), y:hero._y + 5});
}
rainbow.clear();
var _local1 = 0;
while (_local1 < rainbowPosA.length) {
if ((currentMode == "turnabalt") && (_local1 >= (rainbowPosA.length - 1))) {
} else {
var _local4 = rainbowPosA[_local1];
if ((rainbowPosA[_local1 + 1].x - scrollSpeed) < 0) {
rainbowPosA.splice(_local1, 1);
_local1--;
} else {
_local4.x = _local4.x - scrollSpeed;
}
}
_local1++;
}
var _local5 = [16670542, 16690783, 16773231, 8253294, 13408767];
var _local3 = 8;
if (starrySky) {
var _local2 = 0;
while (_local2 < _local5.length) {
rainbow.lineStyle(_local3 + 0.1, _local5[_local2], 100, true);
rainbow.moveTo(rainbowPosA[0].x, rainbowPosA[0].y + (_local2 * _local3));
_local1 = 0;
while (_local1 < rainbowPosA.length) {
rainbow.lineTo(rainbowPosA[_local1].x, rainbowPosA[_local1].y + (_local2 * _local3));
_local1++;
}
rainbow.lineTo(hero._x + (hero._width / 2), (hero._y + 5) + (_local2 * _local3));
_local2++;
}
}
}
function sendTweetF(mode) {
var t = parseF(eval (((mode + "Tweet") + "_") + langue));
var theURL = ((twitterURL + t) + bitlyURL);
getURL (theURL, "_blank");
}
function parseF(str) {
if (str.indexOf("#") != -1) {
var splitStr = str.split("#");
str = "";
var i = 0;
while (i < splitStr.length) {
if ((i % 2) == 1) {
var parsed = splitStr[i].slice(0, splitStr[i].length);
parsed = eval (parsed);
} else {
var parsed = splitStr[i];
}
str = String(str) + String(parsed);
i++;
}
}
return(str);
}
function submitHighscoreF(score, mode) {
submittingHighScore = true;
gameOver.buttons._y = gameOver.buttons._y - 3000;
gameOver.submitting._visible = true;
gameOver.cancel._visible = true;
if (mode == "run") {
if (cheatsOn) {
var _local2 = {n:[11, 12, 7, 15, 5, 15, 10, 1, 2, 0, 0, 3, 6, 9, 9, 2], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
} else {
var _local2 = {n:[15, 7, 12, 7, 10, 7, 1, 15, 12, 2, 9, 3, 4, 2, 1, 7], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
}
} else {
var _local2 = {n:[9, 11, 5, 8, 8, 2, 15, 11, 9, 0, 6, 10, 5, 11, 13, 1], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
}
var _local3 = _local2.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local3, score:score, onClose:function () {
if (gameOver.buttons._y < -1000) {
gameOver.buttons._y = gameOver.buttons._y + 3000;
}
gameOver.submitting._visible = false;
gameOver.cancel._visible = false;
submittingHighScore = false;
}});
}
function unlockMedal(medal_name) {
if (domain == "ungrounded.net") {
API.unlockMedal(medal_name);
}
}
function submitStat(stat, valu) {
kongregate.stats.submit(stat, valu);
}
save = SharedObject.getLocal("actionturnip");
if (save.data.personalBestRun == undefined) {
save.data.personalBestRun = 0;
}
if (save.data.personalBestTurnabalt == undefined) {
save.data.personalBestTurnabalt = 0;
}
if (domain == "arcadeprehacks.com") {
cheater = true;
cheatsOn = true;
}
cheatsOn = false;
oldT = getTimer();
maxF = 31;
fps = 50;
timeinit = new Date();
lasttime = timeinit.getMilliseconds();
fpsA = [];
fpsT = 0;
this.createEmptyMovieClip("FPSer", 441);
FPSer.onEnterFrame = function () {
if (!submittingHighScore) {
fpsCounter();
}
};
langue = "en";
turnabaltTweet_en = "I ran #intDistance# m before falling to my doom in @Raitendo's ACTION TURNIP!!!'s Turnabalt mode. Hmm, wait, what? ";
runTweet_en = "I got a high score of #score# in @Raitendo's ACTION TURNIP!!! ";
createEmptyMovieClip("soundMC", 101);
screenWidth = 640;
screenHeight = 426;
textRocketDone = true;
textShootingDone = true;
textMovementDone = true;
soundA = ["steamS", "powerUpS", "buzzS", "starrySkyS", "enemyLaserSound", "enemyPreFireS", "enemyExplosionS", "annihilationS", "mainMusic", "mainMusicBlack", "thunderS1", "thunderS2", "thunderS3", "thunderS4", "pickUpSound", "runningS", "landingS", "playerLaserS", "enemyLaserS", "ringLaserS", "jumpS", "rocketsS", "enemyDeathS", "jumpS1", "jumpS2", "jumpS3", "jumpS4", "jumpS5", "jumpS6"];
for (var i in soundA) {
var poppa = this.createEmptyMovieClip(String(soundA[i] + "Container"), 1000 + i);
this[soundA[i]] = new Sound(poppa);
this[soundA[i]].attachSound(soundA[i]);
poppa = this.createEmptyMovieClip(String(soundA[i] + "AltContainer"), (1000 + i) + soundA.length);
this[soundA[i] + "Alt"] = new Sound(poppa);
this[soundA[i] + "Alt"].attachSound(soundA[i] + "Alt");
}
Color.prototype.setTint = function (r, g, b, amount) {
var _local4 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local4));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
Color.prototype.removeTint = function () {
this.setTint(0, 0, 0, 0);
};
showRaitendoF();
stop();
Symbol 27 MovieClip Frame 89
stop();
Symbol 37 MovieClip Frame 67
stop();
Symbol 43 MovieClip [fps] Frame 1
fps = 32;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
fps = [];
this.onEnterFrame = function () {
var _local1 = new Date();
timepassed = (((_local1.getMilliseconds() - lasttime) >= 0) ? (_local1.getMilliseconds() - lasttime) : (1000 + (_local1.getMilliseconds() - lasttime)));
fps.push(Math.round(10000 / timepassed) / 10);
fops = 0;
for (v in fps) {
fops = fops + fps[v];
}
fops = fops / fps.length;
if (fps.length > 32) {
fps.splice(0, 1);
}
lasttime = _local1.getMilliseconds();
};
Symbol 67 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
this._alpha = 0;
Symbol 243 MovieClip Frame 7
stop();
Symbol 246 MovieClip Frame 5
stop();
Symbol 295 MovieClip Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2892 % 511) * true);
return(\x03);
}
var \x01 = (-160 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 297 MovieClip Frame 10
stop();
Symbol 299 MovieClip Frame 37
_parent.setGotoFrame("done");
stop();
Symbol 311 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (737 % 511) * true);
return(\x03);
}
var \x01 = (9 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 311 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 2
medal.attachIcon(icon);
Symbol 311 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 10
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2142 % 511) * true);
return(\x03);
}
var \x01 = (78 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 311 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 317 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2309 % 511) * true);
return(\x03);
}
var \x01 = (253 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 317 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 10
stop();
Symbol 317 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 320 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 1
!!!ERROR
Symbol 320 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 10
stop();
Symbol 320 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 341 MovieClip [NewgroundsAPIAsset_big_popup_background] Frame 1
!!!ERROR
Symbol 345 Button
on (release) {
!!!ERROR
Symbol 351 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 353 MovieClip [NewgroundsAsset_New_Version_Available] Frame 1
!!!ERROR
Symbol 354 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 358 MovieClip [NewgroundsAsset_Illegal_Host] Frame 1
!!!ERROR
Symbol 359 MovieClip [API Connector (NewgroundsAPI)] Frame 1
#initclip 30
Object.registerClass("API Connector (NewgroundsAPI)", com.newgrounds.components.APIConnector);
#endinitclip
Symbol 359 MovieClip [API Connector (NewgroundsAPI)] Frame 20
_visible = false;
Symbol 804 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
!!!ERROR
Symbol 805 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
!!!ERROR
Symbol 806 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
!!!ERROR
Symbol 807 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
!!!ERROR
Symbol 808 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
!!!ERROR
Symbol 809 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
!!!ERROR
Symbol 810 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
!!!ERROR
Symbol 811 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
!!!ERROR
Symbol 287 MovieClip [__Packages.com.newgrounds.components.APIConnector] Frame 0
!!!ERROR
Symbol 360 MovieClip [__Packages.com.newgrounds.APIError] Frame 0
!!!ERROR
Symbol 361 MovieClip [__Packages.com.newgrounds.API] Frame 0
!!!ERROR
Symbol 362 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
!!!ERROR
Symbol 363 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
!!!ERROR
Symbol 364 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
!!!ERROR
Symbol 365 MovieClip [__Packages.com.newgrounds.ValidationTools] Frame 0
!!!ERROR
Symbol 366 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
!!!ERROR
Symbol 367 MovieClip [__Packages.com.newgrounds.SaveGroupQuery] Frame 0
!!!ERROR
Symbol 368 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
!!!ERROR
Symbol 369 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
!!!ERROR
Symbol 370 MovieClip [__Packages.com.newgrounds.encoders.SerialXML] Frame 0
!!!ERROR
Symbol 371 MovieClip [__Packages.com.newgrounds.encoders.LZW2] Frame 0
!!!ERROR
Symbol 372 MovieClip [__Packages.com.newgrounds.encoders.LZW] Frame 0
!!!ERROR
Symbol 373 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
!!!ERROR
Symbol 374 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
!!!ERROR
Symbol 375 MovieClip [__Packages.com.newgrounds.Score] Frame 0
!!!ERROR
Symbol 376 MovieClip [__Packages.com.newgrounds.encoders.RC4] Frame 0
!!!ERROR
Symbol 377 MovieClip [__Packages.com.newgrounds.encoders.JSON] Frame 0
!!!ERROR
Symbol 378 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
!!!ERROR
Symbol 379 MovieClip [__Packages.com.newgrounds.encoders.MD5] Frame 0
!!!ERROR
Symbol 413 MovieClip Frame 61
stop();
Symbol 415 Button
on (keyPress "<Space>") {
play();
}
Symbol 454 MovieClip [back] Frame 1
stop();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 3
stop();
Symbol 456 MovieClip Frame 4
stop();
Symbol 456 MovieClip Frame 5
stop();
Symbol 495 MovieClip Frame 1
this._x = 5 + random(this._parent._width - 10);
this._y = 5 + random(this._parent._height - 10);
Symbol 619 MovieClip Frame 1
var l = System.capabilities.language;
if (((l == "zh") or (l == "zh-TW")) or (l == "zh-CN")) {
gotoAndStop (2);
} else if (l == "ru") {
gotoAndStop (3);
} else if (l == "pt") {
gotoAndStop (4);
} else {
stop();
}