STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228109
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/89938658?noj=FRM89938658-8DC" width="1" height="1"></div>

Gray Lines - guide the man safely to the portal.swf

This is the info page for
Flash #91419

(Click the ID number above for more basic data on this flash file.)


Text
<p align="left"></p>

Go to Level

Play

Achievements

No Jumps

Least Lines

Options

Over-Achiever

Complete all regular achievements.

Don't fear
the Reaper

Die over 100 times to
unlock this achievement.

OVER
9000!

... sort of.  Draw 901 total
lines for this achievement.

Rave Meister

Complete the game with
Rave Mode activated.

So I herd...

So I herd u liek  copyrighted
material.  Play the game as me.

Springless

Complete the "No Jumps"
challenge mode.

Artist

Complete the "Least Lines"
challenge mode.

Still Alive

Complete the game
without dying.

Teh H4X
CHEATZ!!

Unlock all cheats to unlock this
achievement.

Start the
Game!

Start the game to unlock, wait, you
definately already have this one.

Level 9

Level 10

Level 11

Level 13

Level 8

Level 12

Main Menu

Level 14

Clear Data

Credits

Music On/Off

Stats

Input Cheat

CODE:

My Char

Rave Mode

Mage

All Levels

Hello # 121, welcome to GRAY.  Please jump over the holes.  We apologize for the inconvenience.  Jump into the portal to progress to the next area.  Use A & D to move, W to jump and double jump, F to look around with the mouse, and ESC to pause.

You've now reached the second area.  Please stand on the switches to open
the gates to progress.  Careful though, they close quickly.  Once again use
the portal to leave this area.

Hmmm.  Can't reach the portal this time?  Now we see what GRAY is all about.
You can use the mouse to draw a line, which can be jumped on to get to the
portal!  You can't draw lines while moving though,  or while in the air.

Now how do you get past that button?  Try holding it down with a line!
You can also hold them down by circling them.

You have now unlocked a second line.  You can use E to switch between lines.
Please proceed as normal.   Also note that if you find yourself stuck in a level
due to failure to plan ahead, suicide can be the answer with RETURN or ENTER.

So I herd there wuz spoz'd
to be a different joke here...

CODE: mygame

Remember that if you delete a line while it is holding down a switch, the door
which it  opened will close.  If you're stuck use Return or Enter to kill yourself.

CODE: magus

CODE: wtf? beta?

Congratulations # 121 on your completion of the 14
test levels of the GRAY complex.  You will now be
cryogenically frozen until your next test date.  Goodbye,
and again, congratulations.

GRAY

Design

Concept

Programming

Art

Animation

Music

Production

Eric Kasper

Testing

Beta Testers

Jackson Johnson

Andrew "Snake" Rans

Dorian Snyder

Michael "Hatty" Healy

Kyle Donlan

Eric Gellar

Daniel Quinn

Jason Levein

Brynne Johnson

Special Thanks to

Phil and Lynn Kasper

Carr and Karen Johnson

for supporting me in everything I've done

treating me like family and letting me
spend so much time at your house.

Gayle Ancheta

for introducing me to Flash

Online Tutorial Writers

for writing the tutorials I learned so
many things from

and Anyone I forgot to mention here, you get thanked twice

Fun Facts

I ate a lot of Cheeze Its and Doritos while making this game

The "time" which you supposedly finished the game in wasn't
really in seconds.

The flipkick from hitting the spacebar does nothing whatsoever

I liek Mudkipz

If you manage to get all the achievements you can draw 3 lines!
not really though.

Extra Achievements

Dorian's Lambda - Kill 10 Combine

Tyler's  Bloody Knuckles - Play until your fingers bleed

Andrew's MGS - Be Snake

JJ's Jet Plane - WTF?!?

Tyler Morrow

RAVE MODE:     Code:     unce unce

ActionScript [AS1/AS2]

Frame 1
loadingPercent = getBytesLoaded() / getBytesTotal(); loadingBar._width = loadingPercent * 630.1; loadingText.text = Math.round(loadingPercent * 100) + "%";
Frame 2
if (loadingPercent >= 1) { gotoAndStop ("intro"); } else { gotoAndPlay (1); }
Frame 3
stopAllSounds();
Frame 6
function displayText() { seeVars.blendMode = "invert"; seeVars.txt1.text = ""; seeVars.txt2.text = ""; } function lastLevel() { } function noFun() { } function onEnterFrame() { customCursor(); } function customCursor() { cursor.gotoAndStop(1); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } stop(); Mouse.hide(); gamePaused = false; gray_so = SharedObject.getLocal("gray"); if (gray_so.data.lvlsavailable == undefined) { gray_so.data.lvlsavailable = 1; gray_so.data.totalJumps = 0; gray_so.data.totalLines = 0; gray_so.data.totalDeaths = 0; gray_so.data.bestTime = Infinity; gray_so.data.totalTimer = 0; gray_so.data.musicOff = false; gray_so.data.springlessunlocked = false; gray_so.data.artistachunlocked = false; gray_so.data.allcheatsunlocked = false; gray_so.data.soiherdunlocked = false; gray_so.data.ravemeisterunlocked = false; gray_so.data.stillaliveunlocked = false; gray_so.data.overachieverunlocked = false; achpopup.startthegame._visible = true; achpopup.gotoAndPlay("start"); gray_so.data.lvl3noJump = false; gray_so.data.lvl4noJump = false; gray_so.data.lvl5noJump = false; gray_so.data.lvl6noJump = false; gray_so.data.lvl7noJump = false; gray_so.data.lvl8noJump = false; gray_so.data.lvl9noJump = false; gray_so.data.lvl10noJump = false; gray_so.data.lvl11noJump = false; gray_so.data.lvl13noJump = false; gray_so.data.lvl6leastLines = false; gray_so.data.lvl7leastLines = false; gray_so.data.lvl8leastLines = false; gray_so.data.lvl9leastLines = false; gray_so.data.lvl10leastLines = false; gray_so.data.lvl11leastLines = false; gray_so.data.lvl12leastLines = false; gray_so.data.lvl13leastLines = false; gray_so.data.lvl14leastLines = false; gray_so.data.lvl6leastLinesPlayer = 100; gray_so.data.lvl7leastLinesPlayer = 100; gray_so.data.lvl8leastLinesPlayer = 100; gray_so.data.lvl9leastLinesPlayer = 100; gray_so.data.lvl10leastLinesPlayer = 100; gray_so.data.lvl11leastLinesPlayer = 100; gray_so.data.lvl12leastLinesPlayer = 100; gray_so.data.lvl13leastLinesPlayer = 100; gray_so.data.lvl14leastLinesPlayer = 100; } mudkipcheat = false; outlineCheat = false; magecheat = false; noJumpMode = false; leastLinesMode = false; deathsThisTime = Infinity; timer = Infinity; timerPart = Infinity; var myMenu_cm = new ContextMenu(); myMenu_cm.hideBuiltInItems(); var newItem1_cmi = new ContextMenuItem("No Right Click Exploits!", lastLevel); var newItem2_cmi = new ContextMenuItem("Eric Kasper - All Rights Reserved", noFun); newItem1_cmi.enabled = false; newItem2_cmi.enabled = false; newItem2_cmi.separatorBefore = true; myMenu_cm.customItems.push(newItem1_cmi, newItem2_cmi); _root.menu = myMenu_cm; function changeSong() { chooseMusic++; if (chooseMusic > 2) { chooseMusic = 0; } levelsound.stop(); if (_root.raveLights._visible == false) { if (chooseMusic == 0) { levelsound.attachSound("levelMusic"); } else if (chooseMusic == 1) { levelsound.attachSound("levelMusic2"); } else if (chooseMusic == 2) { levelsound.attachSound("levelMusic3"); } } else { levelsound.attachSound("raveMusic"); } levelsound.start(); levelMusicOn = true; } function music() { if (levelsound.position >= (levelsound.duration - 1)) { changeSong(); } } musicOff = false; levelMusicOn = false; levelsound.stop(); levelsound = new Sound(this); menusound = new Sound(this); menusound.attachSound("menuMusic"); menusound.start(0, 9999); chooseMusic = -1; if (gray_so.data.musicOff == true) { _root.levelsound.setVolume(0); _root.menusound.setVolume(0); } else if (gray_so.data.musicOff == false) { _root.levelsound.setVolume(100); _root.menusound.setVolume(100); }
Instance of Symbol 38 MovieClip "bwhite" in Frame 6
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 110 MovieClip "achpopup" in Frame 6
onClipEvent (enterFrame) { if (((((((((_root.gray_so.data.springlessunlocked == true) && (_root.gray_so.data.artistachunlocked == true)) && (_root.gray_so.data.allcheatsunlocked == true)) && (_root.gray_so.data.soiherdunlocked == true)) && (_root.gray_so.data.ravemeisterunlocked == true)) && (_root.gray_so.data.stillaliveunlocked == true)) && (_root.gray_so.data.totalLines >= 900)) && (_root.gray_so.data.totalDeaths >= 100)) && (_root.gray_so.data.overachieverunlocked == false)) { _root.gray_so.data.overachieverunlocked = true; _root.achpopup.overachiever._visible = true; _root.achpopup.gotoAndPlay("start"); } }
Frame 7
function onEnterFrame() { customCursor(); if (gray_so.data.lvlsavailable >= 1) { lvl1button._visible = true; } } function customCursor() { cursor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } stop(); Mouse.hide(); lvlbetabutton._visible = false; lvl1button._visible = false; lvl2button._visible = false; lvl3button._visible = false; lvl4button._visible = false; lvl5button._visible = false; lvl6button._visible = false; lvl7button._visible = false; lvl8button._visible = false; lvl9button._visible = false; lvl10button._visible = false; lvl11button._visible = false; lvl12button._visible = false; lvl13button._visible = false; lvl14button._visible = false; if (gray_so.data.lvlsavailable >= 1) { lvl1button._visible = true; } if (gray_so.data.lvlsavailable >= 2) { lvl2button._visible = true; } if (gray_so.data.lvlsavailable >= 3) { lvl3button._visible = true; } if (gray_so.data.lvlsavailable >= 4) { lvl4button._visible = true; } if (gray_so.data.lvlsavailable >= 5) { lvl5button._visible = true; } if (gray_so.data.lvlsavailable >= 6) { lvl6button._visible = true; } if (gray_so.data.lvlsavailable >= 7) { lvl7button._visible = true; } if (gray_so.data.lvlsavailable >= 8) { lvl8button._visible = true; } if (gray_so.data.lvlsavailable >= 9) { lvl9button._visible = true; } if (gray_so.data.lvlsavailable >= 10) { lvl10button._visible = true; } if (gray_so.data.lvlsavailable >= 11) { lvl11button._visible = true; } if (gray_so.data.lvlsavailable >= 12) { lvl12button._visible = true; } if (gray_so.data.lvlsavailable >= 13) { lvl13button._visible = true; } if (gray_so.data.lvlsavailable >= 14) { lvl14button._visible = true; } if (gray_so.data.lvlsavailable >= 100) { lvlbetabutton._visible = true; }
Frame 8
function onEnterFrame() { customCursor(); } function customCursor() { cursor.gotoAndStop(1); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } if (gray_so.data.totalDeaths <= 99) { regachievements.dontfearthereaper._alpha = 70; } if (gray_so.data.totalLines <= 900) { regachievements.over9000._alpha = 70; } if (gray_so.data.allcheatsunlocked == false) { regachievements.tehh4xcheatz._alpha = 70; } if (gray_so.data.springlessunlocked == false) { regachievements.springless._alpha = 70; } if (gray_so.data.artistachunlocked == false) { regachievements.artistach._alpha = 70; } if (gray_so.data.soiherdunlocked == false) { regachievements.soiherd._alpha = 70; } if (gray_so.data.ravemeisterunlocked == false) { regachievements.ravemeister._alpha = 70; } if (gray_so.data.stillaliveunlocked == false) { regachievements.stillalive._alpha = 70; } if (gray_so.data.overachieverunlocked == false) { regachievements.overachiever._alpha = 70; }
Frame 9
if (gray_so.data.springlessunlocked == false) { if (gray_so.data.lvl3noJump == true) { if (gray_so.data.lvl4noJump == true) { if (gray_so.data.lvl5noJump == true) { if (gray_so.data.lvl6noJump == true) { if (gray_so.data.lvl7noJump == true) { if (gray_so.data.lvl8noJump == true) { if (gray_so.data.lvl9noJump == true) { if (gray_so.data.lvl10noJump == true) { if (gray_so.data.lvl11noJump == true) { if (gray_so.data.lvl13noJump == true) { achpopup.springless._visible = true; achpopup.gotoAndPlay("start"); gray_so.data.springlessunlocked = true; } } } } } } } } } } } if (gray_so.data.lvl3noJump == true) { lvl3box.gotoAndStop(2); } if (gray_so.data.lvl4noJump == true) { lvl4box.gotoAndStop(2); } if (gray_so.data.lvl5noJump == true) { lvl5box.gotoAndStop(2); } if (gray_so.data.lvl6noJump == true) { lvl6box.gotoAndStop(2); } if (gray_so.data.lvl7noJump == true) { lvl7box.gotoAndStop(2); } if (gray_so.data.lvl8noJump == true) { lvl8box.gotoAndStop(2); } if (gray_so.data.lvl9noJump == true) { lvl9box.gotoAndStop(2); } if (gray_so.data.lvl10noJump == true) { lvl10box.gotoAndStop(2); } if (gray_so.data.lvl11noJump == true) { lvl11box.gotoAndStop(2); } if (gray_so.data.lvl13noJump == true) { lvl13box.gotoAndStop(2); } lvlbetabutton._visible = false; lvl1button._visible = false; lvl2button._visible = false; lvl3button._visible = false; lvl4button._visible = false; lvl5button._visible = false; lvl6button._visible = false; lvl7button._visible = false; lvl8button._visible = false; lvl9button._visible = false; lvl10button._visible = false; lvl11button._visible = false; lvl12button._visible = false; lvl13button._visible = false; lvl14button._visible = false; if (gray_so.data.lvlsavailable >= 1) { lvl1button._visible = true; } if (gray_so.data.lvlsavailable >= 2) { lvl2button._visible = true; } if (gray_so.data.lvlsavailable >= 3) { lvl3button._visible = true; } if (gray_so.data.lvlsavailable >= 4) { lvl4button._visible = true; } if (gray_so.data.lvlsavailable >= 5) { lvl5button._visible = true; } if (gray_so.data.lvlsavailable >= 6) { lvl6button._visible = true; } if (gray_so.data.lvlsavailable >= 7) { lvl7button._visible = true; } if (gray_so.data.lvlsavailable >= 8) { lvl8button._visible = true; } if (gray_so.data.lvlsavailable >= 9) { lvl9button._visible = true; } if (gray_so.data.lvlsavailable >= 10) { lvl10button._visible = true; } if (gray_so.data.lvlsavailable >= 11) { lvl11button._visible = true; } if (gray_so.data.lvlsavailable >= 12) { lvl12button._visible = true; } if (gray_so.data.lvlsavailable >= 13) { lvl13button._visible = true; } if (gray_so.data.lvlsavailable >= 14) { lvl14button._visible = true; } if (gray_so.data.lvlsavailable >= 100) { lvlbetabutton._visible = true; }
Frame 10
function displayText() { seeVars.blendMode = "invert"; seeVars.txt1.text = ""; seeVars.txt2.text = levelLinesPlayer + " lines"; } function onEnterFrame() { customCursor(); linesToBeatbox.text = currentOverLinesToBeatVar; bestTrybox.text = currentOverBestTryVar; } if (gray_so.data.lvl6leastLinesPlayer <= 1) { gray_so.data.lvl6leastLines = true; } if (gray_so.data.lvl7leastLinesPlayer <= 2) { gray_so.data.lvl7leastLines = true; } if (gray_so.data.lvl8leastLinesPlayer <= 1) { gray_so.data.lvl8leastLines = true; } if (gray_so.data.lvl9leastLinesPlayer <= 3) { gray_so.data.lvl9leastLines = true; } if (gray_so.data.lvl10leastLinesPlayer <= 4) { gray_so.data.lvl10leastLines = true; } if (gray_so.data.lvl11leastLinesPlayer <= 7) { gray_so.data.lvl11leastLines = true; } if (gray_so.data.lvl12leastLinesPlayer <= 4) { gray_so.data.lvl12leastLines = true; } if (gray_so.data.lvl13leastLinesPlayer <= 6) { gray_so.data.lvl13leastLines = true; } if (gray_so.data.lvl14leastLinesPlayer <= 5) { gray_so.data.lvl14leastLines = true; } levelLinesPlayer = 0; if (gray_so.data.lvl6leastLines == true) { lvl6box.gotoAndStop(2); } if (gray_so.data.lvl7leastLines == true) { lvl7box.gotoAndStop(2); } if (gray_so.data.lvl8leastLines == true) { lvl8box.gotoAndStop(2); } if (gray_so.data.lvl9leastLines == true) { lvl9box.gotoAndStop(2); } if (gray_so.data.lvl10leastLines == true) { lvl10box.gotoAndStop(2); } if (gray_so.data.lvl11leastLines == true) { lvl11box.gotoAndStop(2); } if (gray_so.data.lvl12leastLines == true) { lvl12box.gotoAndStop(2); } if (gray_so.data.lvl13leastLines == true) { lvl13box.gotoAndStop(2); } if (gray_so.data.lvl14leastLines == true) { lvl14box.gotoAndStop(2); } if (gray_so.data.artistachunlocked == false) { if (gray_so.data.lvl6leastLines == true) { if (gray_so.data.lvl7leastLines == true) { if (gray_so.data.lvl8leastLines == true) { if (gray_so.data.lvl9leastLines == true) { if (gray_so.data.lvl10leastLines == true) { if (gray_so.data.lvl11leastLines == true) { if (gray_so.data.lvl12leastLines == true) { if (gray_so.data.lvl13leastLines == true) { if (gray_so.data.lvl14leastLines == true) { achpopup.artistach._visible = true; achpopup.gotoAndPlay("start"); gray_so.data.artistachunlocked = true; } } } } } } } } } } lvl6playerBox.text = gray_so.data.lvl6leastLinesPlayer; lvl7playerBox.text = gray_so.data.lvl7leastLinesPlayer; lvl8playerBox.text = gray_so.data.lvl8leastLinesPlayer; lvl9playerBox.text = gray_so.data.lvl9leastLinesPlayer; lvl10playerBox.text = gray_so.data.lvl10leastLinesPlayer; lvl11playerBox.text = gray_so.data.lvl11leastLinesPlayer; lvl12playerBox.text = gray_so.data.lvl12leastLinesPlayer; lvl13playerBox.text = gray_so.data.lvl13leastLinesPlayer; lvl14playerBox.text = gray_so.data.lvl14leastLinesPlayer; seeVars._visible = true; currentOverLinesToBeatVar = ""; currentOverBestTryVar = ""; lvlbetabutton._visible = false; lvl1button._visible = false; lvl2button._visible = false; lvl3button._visible = false; lvl4button._visible = false; lvl5button._visible = false; lvl6button._visible = false; lvl7button._visible = false; lvl8button._visible = false; lvl9button._visible = false; lvl10button._visible = false; lvl11button._visible = false; lvl12button._visible = false; lvl13button._visible = false; lvl14button._visible = false; if (gray_so.data.lvlsavailable >= 1) { lvl1button._visible = true; } if (gray_so.data.lvlsavailable >= 2) { lvl2button._visible = true; } if (gray_so.data.lvlsavailable >= 3) { lvl3button._visible = true; } if (gray_so.data.lvlsavailable >= 4) { lvl4button._visible = true; } if (gray_so.data.lvlsavailable >= 5) { lvl5button._visible = true; } if (gray_so.data.lvlsavailable >= 6) { lvl6button._visible = true; } if (gray_so.data.lvlsavailable >= 7) { lvl7button._visible = true; } if (gray_so.data.lvlsavailable >= 8) { lvl8button._visible = true; } if (gray_so.data.lvlsavailable >= 9) { lvl9button._visible = true; } if (gray_so.data.lvlsavailable >= 10) { lvl10button._visible = true; } if (gray_so.data.lvlsavailable >= 11) { lvl11button._visible = true; } if (gray_so.data.lvlsavailable >= 12) { lvl12button._visible = true; } if (gray_so.data.lvlsavailable >= 13) { lvl13button._visible = true; } if (gray_so.data.lvlsavailable >= 14) { lvl14button._visible = true; } if (gray_so.data.lvlsavailable >= 100) { lvlbetabutton._visible = true; }
Frame 12
statsArrow._rotation = -(random(41) + 20);
Frame 14
function onMouseDown() { if (terrainVar == 1) { createEmptyMovieClip("terrain1", platforms.getDepth() - 2); terrain1.lineStyle(25, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; } } else if (terrainVar == 2) { createEmptyMovieClip("terrain2", platforms.getDepth() - 1); terrain2.lineStyle(25, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; pauseGame(); customCursor(); if (gamePaused == false) { Drawing(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; man.sprite.gotoAndStop(1); platforms._x = platx; platforms._y = platy; man._x = manx; man._y = many; } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if (((((Key.isDown(87) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) or (((wallClinging == true) && (man.sprite._xscale == manXScale)) && (Key.isDown(39)))) or (((wallClinging == true) && (man.sprite._xscale == (-manXScale))) && (Key.isDown(37)))) { jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.stickJump.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } } function onGround() { if (((platforms.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; jumping = false; air = false; doubleJump = -Infinity; } else { air = true; man._rotation = 0; if (Key.isDown(40)) { gravity = 20; } if ((ySpeed < 15) or (Key.isDown(40) && (ySpeed < 20))) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (manstate == 4) { if ((yUp < rotVar) && (man.sprite._xscale == (-manXScale))) { man._rotation = (-(yUp - rotVar)) * 3; } else if ((yUp > rotVar) && (man.sprite._xscale == manXScale)) { man._rotation = (yUp - rotVar) * 3; } else if ((yUp > rotVar) && (man.sprite._xscale == (-manXScale))) { man._rotation = (-(yUp - rotVar)) * 3; } else if ((yUp < rotVar) && (man.sprite._xscale == manXScale)) { man._rotation = (yUp - rotVar) * 3; } } else if ((((!Key.isDown(39)) && (!Key.isDown(37))) && (air == false)) or (jumping == true)) { rotVar = yUp; } } man._y = man._y + yUp; collideVar = yUp - rotVar; while (((((platforms.hitTest((man._x + xSpeed) + _x, man._y + _y, true) or platforms.hitTest((man._x + xSpeed) + _x, man._y + _y, true)) or terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true)) or terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true)) or terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true)) or terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true)) { man._x = man._x - xSpeed; noJump = true; } while ((platforms.hitTest((man._x + runSpeed) + _x, man._y + _y, true) or terrain1.hitTest((man._x + runSpeed) + _x, man._y + _y, true)) or terrain2.hitTest((man._x + runSpeed) + _x, man._y + _y, true)) { man._x = man._x - runSpeed; noJump = true; } while ((platforms.hitTest((man._x - runSpeed) + _x, man._y + _y, true) or terrain1.hitTest((man._x - runSpeed) + _x, man._y + _y, true)) or terrain2.hitTest((man._x - runSpeed) + _x, man._y + _y, true)) { man._x = man._x + runSpeed; noJump = true; } if ((platforms.hitTest(man._x + _x, (man._y - 40) + _y, true) or terrain1.hitTest(man._x + _x, (man._y - 40) + _y, true)) or terrain2.hitTest(man._x + _x, (man._y - 40) + _y, true)) { noJump = true; if (ySpeed < 0) { ySpeed = ySpeed - ySpeed; } } else { noJump = false; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); } if (((man._y + ySpeed) + yUp) < 200) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); } } function customCursor() { cursor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == true) { if (((air == true) or Key.isDown(65)) or Key.isDown(68)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(80) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(80) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(80)) { pauseSwitch = false; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 15
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 2) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > -90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > -90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (fader._alpha >= 100) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 1) { gray_so.data.lvlsavailable++; } gotoAndStop ("beta"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths >= 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1; menusound.stop();
Instance of Symbol 454 MovieClip "raveLights" in Frame 15
onClipEvent (load) { _visible = false; }
Frame 16
function onMouseDown() { if ((terrainVar == 10) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 20) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 0; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > -90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > -90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (fader._alpha >= 100) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 1) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl2"); } } } currentDeaths = 0; function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 17
function onMouseDown() { if ((terrainVar == 10) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 20) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 0; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > -90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > -90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (fader._alpha >= 100) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 2) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl3"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 18
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 20) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 0; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > -90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > -90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 3) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl4"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl3noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl3leastLinesPlayer) { gray_so.data.lvl3leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 19
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 20) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 0; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > -90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > -90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 4) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl5"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl4noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl4leastLinesPlayer) { gray_so.data.lvl4leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 20
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 20) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 0; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > -180) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > -90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 5) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl6"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl5noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl5leastLinesPlayer) { gray_so.data.lvl5leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 21
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 20) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 0; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > -90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation < 180) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation > 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation < 90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation > 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 6) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl7"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl6noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl6leastLinesPlayer) { gray_so.data.lvl6leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 22
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 20) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 0; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (dead == true) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation < 180) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation > 90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > 90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 180) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > -90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 7) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl8"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl7noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl7leastLinesPlayer) { gray_so.data.lvl7leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 23
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 2) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation < 90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation > 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation < 90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation > 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 8) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl9"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl8noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl8leastLinesPlayer) { gray_so.data.lvl8leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 24
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 2) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation < 90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation > 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation < 90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation > 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 9) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl10"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl9noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl9leastLinesPlayer) { gray_so.data.lvl9leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 25
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 2) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation < 90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation > 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation < 90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation > 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 10) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl11"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl10noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl10leastLinesPlayer) { gray_so.data.lvl10leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 26
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 2) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < 90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 11) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl12"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl11noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl11leastLinesPlayer) { gray_so.data.lvl11leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 27
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 2) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation < 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation > -90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation > -180) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation < -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } if (dead == true) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation < 0) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } if (dead == true) { platforms.switch3.gotoAndStop(1); platforms.plats.switchdoor3._rotation = -90; } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 12) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl13"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl12noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl12leastLinesPlayer) { gray_so.data.lvl12leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 28
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 2) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation < 180) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation > 90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation < 0) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation > -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > -180) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < -90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 13) { gray_so.data.lvlsavailable++; } gotoAndStop ("lvl14"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl13noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl13leastLinesPlayer) { gray_so.data.lvl13leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 29
function onMouseDown() { if ((terrainVar == 1) && (gamePaused == false)) { createEmptyMovieClip("terrain1", man.getDepth() - 1); terrain1.lineStyle(40, 3355443, 100); if (imdrawing == false) { terrain1.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } else if ((terrainVar == 2) && (gamePaused == false)) { createEmptyMovieClip("terrain2", man.getDepth() - 2); terrain2.lineStyle(40, 6710886, 100); if (imdrawing == false) { terrain2.moveTo(_xmouse, _ymouse); imdrawing = true; xMouseStart = _xmouse; yMouseStart = _ymouse; } } } function Drawing() { if (((terrainVar == 1) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain1.lineTo(_xmouse, _ymouse); } } else if (((terrainVar == 2) && (imdrawing == true)) && (!man.nodrawhitbox.hitTest(_xmouse, _ymouse, true))) { if (((air == false) && (!Key.isDown(65))) && (!Key.isDown(68))) { terrain2.lineTo(_xmouse, _ymouse); } } if (imdrawing == false) { lineDrawed = false; } if (imdrawing == true) { if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 1)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 1))) { line1Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 1)) { line1Drawn = false; lineDrawed = false; } if ((((_xmouse != xMouseStart) && (lineDrawed == false)) && (terrainVar == 2)) or (((_ymouse != yMouseStart) && (lineDrawed == false)) && (terrainVar == 2))) { line2Drawn = true; lineDrawed = true; gray_so.data.totalLines++; levelLinesPlayer++; } else if (((_xmouse == xMouseStart) && (_ymouse == yMouseStart)) && (terrainVar == 2)) { line2Drawn = false; lineDrawed = false; } if ((((air == true) or Key.isDown(65)) or Key.isDown(68)) or (gamePaused == true)) { imdrawing = false; } if (man.nodrawhitbox.hitTest(_xmouse, _ymouse, true)) { imdrawing = false; } if ((((_xmouse > 750) or (_xmouse < 0)) or (_ymouse > 500)) or (_ymouse < 0)) { imdrawing = false; } } if (Key.isDown(69) && (terrainKeySwitch == false)) { terrainVar = terrainVar + 1; terrainKeySwitch = true; } else if (!Key.isDown(69)) { terrainKeySwitch = false; } if (terrainVar > 2) { terrainVar = 1; } } function switches() { if ((platforms.switch1.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch1.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch1.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor1open = true; } else if (!platforms.switch1.hitTest(man._x + _x, man._y + _y, true)) { switchdoor1open = false; } if (switchdoor1open == true) { platforms.switch1.gotoAndStop(2); if (platforms.plats.switchdoor1._rotation > 0) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation - 3; } } else if (switchdoor1open == false) { platforms.switch1.gotoAndStop(1); if (platforms.plats.switchdoor1._rotation < 90) { platforms.plats.switchdoor1._rotation = platforms.plats.switchdoor1._rotation + 3; } } if ((platforms.switch2.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch2.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch2.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor2open = true; } else if (!platforms.switch2.hitTest(man._x + _x, man._y + _y, true)) { switchdoor2open = false; } if (switchdoor2open == true) { platforms.switch2.gotoAndStop(2); if (platforms.plats.switchdoor2._rotation < -90) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation + 3; } } else if (switchdoor2open == false) { platforms.switch2.gotoAndStop(1); if (platforms.plats.switchdoor2._rotation > -180) { platforms.plats.switchdoor2._rotation = platforms.plats.switchdoor2._rotation - 3; } } if ((platforms.switch3.hitTest(man._x + _x, man._y + _y, true) or ((platforms.switch3.hitTest(terrain1) == true) && (line1Drawn == true))) or ((platforms.switch3.hitTest(terrain2) == true) && (line2Drawn == true))) { switchdoor3open = true; } else if (!platforms.switch3.hitTest(man._x + _x, man._y + _y, true)) { switchdoor3open = false; } if (switchdoor3open == true) { platforms.switch3.gotoAndStop(2); if (platforms.plats.switchdoor3._rotation > 45) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation - 3; } } else if (switchdoor3open == false) { platforms.switch3.gotoAndStop(1); if (platforms.plats.switchdoor3._rotation < 90) { platforms.plats.switchdoor3._rotation = platforms.plats.switchdoor3._rotation + 3; } } } function doorHit() { if (platforms.door.hitTest(man._x + _x, man._y + _y, true)) { gamePaused = true; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } else if (((fader._alpha >= 100) && (noJumpMode == false)) && (leastLinesMode == false)) { man.sprite._xscale = manXScale; man.mudkip._xscale = mudkipXScale; man.mage._xscale = mageXScale; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); man._x = 375; man._y = 250; if (gray_so.data.lvlsavailable == 14) { gray_so.data.lvlsavailable++; } if (deathsThisTime == 0) { gray_so.data.stillaliveunlocked = true; achpopup.stillalive._visible = true; achpopup.gotoAndPlay("start"); } if (mudkipcheat == true) { gray_so.data.soiherdunlocked = true; achpopup.soiherd._visible = true; achpopup.gotoAndPlay("start"); } if (raveLights._visible == true) { gray_so.data.ravemeisterunlocked = true; achpopup.ravemeister._visible = true; achpopup.gotoAndPlay("start"); } if (timer < gray_so.data.bestTime) { gray_so.data.bestTime = timer; } gotoAndStop ("end"); } else if (((fader._alpha >= 100) && (noJumpMode == true)) && (leastLinesMode == false)) { gray_so.data.lvl14noJump = true; gotoAndStop ("noJumps"); } else if (((fader._alpha >= 100) && (leastLinesMode == true)) && (noJumpMode == false)) { if (levelLinesPlayer < gray_so.data.lvl14leastLinesPlayer) { gray_so.data.lvl14leastLinesPlayer = levelLinesPlayer; } gotoAndStop ("leastLines"); } } } function onMouseUp() { imdrawing = false; } function onEnterFrame() { displayText(); wallClinging = false; xVar = man._x; yVar = man._y; testVar = ySpeed + yUp; music(); cheats(); achievementsFunc(); pauseGame(); customCursor(); doorHit(); if (gamePaused == false) { Drawing(); timerCounter(); man._x = man._x + xSpeed; man._y = man._y + ySpeed; manCollision(); moveScreen(); lookAround(); if (dead == false) { if (fader._alpha > 0) { fader._alpha = fader._alpha - 2; } kick(); manJump(-20); managemanSprite(); onGround(); manageColor(); suicide(); spikesHit(); switches(); if ((Key.isDown(68) && (dodging == false)) && (wallClinging == false)) { xSpeed = runSpeed; } else if ((Key.isDown(65) && (dodging == false)) && (wallClinging == false)) { xSpeed = -runSpeed; } else if (((!Key.isDown(65)) && (!Key.isDown(68))) && (dodging == false)) { xSpeed = 0; } } else { man.sprite.gotoAndStop(4); man.mudkip.gotoAndStop(4); man.mage.gotoAndStop(4); xSpeed = 0; } if (((man._x + xSpeed) > Stage.width) or ((man._x + xSpeed) < 0)) { xSpeed = xSpeed - xSpeed; } else if (dead == true) { levelLinesPlayer = 0; if (fader._alpha < 100) { fader._alpha = fader._alpha + 5; } if (fader._alpha >= 100) { dead = false; deathsThisTime++; man.sprite.gotoAndStop(1); man.mudkip.gotoAndStop(1); man.mage.gotoAndStop(1); platforms._x = platx; platforms._y = platy; theBackground._x = backx; theBackground._y = backy; man._x = manx; man._y = many; createEmptyMovieClip("terrain1", man.getDepth() - 1); createEmptyMovieClip("terrain2", man.getDepth() - 2); } } } } function managemanSprite() { if ((man.sprite._currentframe != 4) && (attack == false)) { if ((air == false) && (wallClinging == false)) { if (((Key.isDown(68) == false) && (Key.isDown(65) == false)) && (dodging == false)) { man.sprite.gotoAndStop(1); } else if (((Key.isDown(68) == true) && (dodging == false)) or ((Key.isDown(65) == true) && (dodging == false))) { if (Key.isDown(68) && (dodging == false)) { man.sprite._xscale = manXScale; } else if (Key.isDown(65) && (dodging == false)) { man.sprite._xscale = -manXScale; } man.sprite.gotoAndStop(2); } } else if (((air == true) && (dodging == false)) && (wallClinging == false)) { man.sprite.gotoAndStop(3); } else if (wallClinging == true) { man.sprite.gotoAndStop(6); } } else if ((man.sprite._currentframe != 4) && (attack == true)) { if (kicking == true) { man.sprite.gotoAndStop(7); } } } function manageColor() { if (man.sprite._xscale == (-manXScale)) { man.sprite.bwhite.blendMode = "invert"; } else if (man.sprite._xscale == manXScale) { man.sprite.bwhite.blendMode = "alpha"; } } function manJump(jumpHeight) { if ((((((Key.isDown(87) && (noJumpMode == false)) && (!Key.isDown(70))) && (jumpKeySwitch == false)) && (doubleJump < 2)) && (noJump == false)) && (ySpeed > -1)) { gray_so.data.totalJumps++; jumpKeySwitch = true; jumping = true; doubleJump++; air = true; yUp = 0; wallClinging = false; gravity = 2; man.sprite.inSprite.play(); man.sprite.bwhite.play(); man.sprite.outline.play(); if (ySpeed > -5) { ySpeed = jumpHeight; } if ((doubleJump >= 2) && (ySpeed < -5)) { ySpeed = jumpHeight; } } else if (Key.isDown(87) == false) { jumpKeySwitch = false; } if ((jumping == true) && (ySpeed > 0)) { jumping = false; } } function onGround() { if (((platforms.plats.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y + 38) - yUp) + _y, true)) or (wallClinging == true)) { gravity = 2; air = false; doubleJump = 1; } else { air = true; man._rotation = 0; if (ySpeed < 15) { ySpeed = ySpeed + gravity; } } } function manCollision() { yUp = 0; while ((platforms.plats.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true) or terrain1.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) or terrain2.hitTest(man._x + _x, (((man._y + 35) + yUp) + _y) - 4, true)) { yUp--; if (((Key.isDown(65) && (air == false)) && (jumping == false)) or ((Key.isDown(68) && (air == false)) && (jumping == false))) { if ((yUp < ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } else if ((yUp > ySpeed) && (man.sprite._xscale == (-manXScale))) { man._rotation = ((-(yUp - ySpeed)) * 3) - (ySpeed * 6.15); } else if ((yUp < ySpeed) && (man.sprite._xscale == manXScale)) { man._rotation = ((yUp - ySpeed) * 3) + (ySpeed * 6.15); } } } if ((platforms.plats.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true) or terrain1.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) or terrain2.hitTest(man._x + _x, ((man._y - 35) + yUp) + _y, true)) { yUp = -ySpeed; } while ((((xSpeed != 0) && (platforms.plats.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true))) or ((xSpeed != 0) && (terrain1.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) or ((xSpeed != 0) && (terrain2.hitTest((man._x + xSpeed) + _x, ((man._y - 35) + yUp) + _y, true)))) { man._x = man._x - xSpeed; } if (((yUp == 0) && (ySpeed == 0)) && (air == false)) { yUp = -16; ySpeed = 16; } if ((yUp < -50) && (ySpeed > 0)) { xSpeed = 0; yUp = -ySpeed; } else if ((yUp < -50) && (ySpeed < 0)) { yUp = -15; } noJump = false; man._y = man._y + yUp; collideVar = yUp - ySpeed; while ((((((platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0)) or (platforms.plats.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain1.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) or (terrain2.hitTest((man._x + xSpeed) + _x, man._y + _y, true) && (xSpeed != 0))) { man._x = man._x - xSpeed; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x - 20) + _x, man._y + _y, true))) { man._x = man._x + 21; } while ((xSpeed == 0) && (platforms.plats.hitTest((man._x + 20) + _x, man._y + _y, true))) { man._x = man._x - 21; } } function moveScreen() { if (man._x > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (man._x < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 150)) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 150) { platforms._y = platforms._y - (ySpeed + yUp); terrain1._y = terrain1._y - (ySpeed + yUp); terrain2._y = terrain2._y - (ySpeed + yUp); man._y = man._y - (ySpeed + yUp); theBackground._y = theBackground._y - ((ySpeed + yUp) / 8); } if (((man._y + ySpeed) + yUp) < 125) { platforms._y = platforms._y - ((ySpeed + yUp) - 26); terrain1._y = terrain1._y - ((ySpeed + yUp) - 26); terrain2._y = terrain2._y - ((ySpeed + yUp) - 26); man._y = man._y - ((ySpeed + yUp) - 26); theBackground._y = theBackground._y - (((ySpeed + yUp) - 26) / 8); } if (((man._y + ySpeed) + yUp) > (Stage.height - 125)) { platforms._y = platforms._y - ((ySpeed + yUp) + 26); terrain1._y = terrain1._y - ((ySpeed + yUp) + 26); terrain2._y = terrain2._y - ((ySpeed + yUp) + 26); man._y = man._y - ((ySpeed + yUp) + 26); theBackground._y = theBackground._y - (((ySpeed + yUp) + 26) / 8); } if ((((man._y + ySpeed) + yUp) < 139) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if ((((man._y + ySpeed) + yUp) > (Stage.height - 139)) && (Key.isDown(70))) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } function lookAround() { if (((Key.isDown(70) && (air == false)) && (!Key.isDown(65))) && (!Key.isDown(68))) { imdrawing = false; if (_xmouse > (Stage.width - 250)) { platforms._x = platforms._x - runSpeed; terrain1._x = terrain1._x - runSpeed; terrain2._x = terrain2._x - runSpeed; man._x = man._x - runSpeed; theBackground._x = theBackground._x - (runSpeed / 8); } if (_xmouse < 250) { platforms._x = platforms._x + runSpeed; terrain1._x = terrain1._x + runSpeed; terrain2._x = terrain2._x + runSpeed; man._x = man._x + runSpeed; theBackground._x = theBackground._x + (runSpeed / 8); } if (_ymouse < 139) { platforms._y = platforms._y - ((ySpeed + yUp) - 15); terrain1._y = terrain1._y - ((ySpeed + yUp) - 15); terrain2._y = terrain2._y - ((ySpeed + yUp) - 15); man._y = man._y - ((ySpeed + yUp) - 15); theBackground._y = theBackground._y - (((ySpeed + yUp) - 15) / 8); } if (_ymouse > (Stage.height - 139)) { platforms._y = platforms._y - ((ySpeed + yUp) + 15); terrain1._y = terrain1._y - ((ySpeed + yUp) + 15); terrain2._y = terrain2._y - ((ySpeed + yUp) + 15); man._y = man._y - ((ySpeed + yUp) + 15); theBackground._y = theBackground._y - (((ySpeed + yUp) + 15) / 8); } } } function customCursor() { cursor.gotoAndStop(terrainVar); linecolor.gotoAndStop(terrainVar); cursor._x = _xmouse; cursor._y = _ymouse; cursor._rotation = cursor._rotation + 3; } function wallCling() { if ((platforms.plats.hitTest(((man._x + xSpeed) + 16) + _x, (man._y - 60) + _y, true) && (air == true)) && (Key.isDown(39))) { man.sprite._xscale = -manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } else if ((platforms.plats.hitTest(((man._x + xSpeed) - 16) + _x, man._y + _y, true) && (air == true)) && (Key.isDown(37))) { man.sprite._xscale = manXScale; wallClinging = true; air = false; ySpeed = 0; doubleJump = 0; } if ((air == true) or Key.isDown(40)) { wallClinging = false; } } function manDodge() { if (((Key.isDown(40) && (Key.isDown(68))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "right"; dodgeSwitch = true; } else if (((Key.isDown(40) && (Key.isDown(65))) && (dodgeSwitch == false)) && (wallClinging == false)) { dodging = "left"; dodgeSwitch = true; } if (dodging == "right") { man.sprite._xscale = manXScale; man.sprite.gotoAndStop(5); xSpeed = 25; dodgeSwitch == true; } else if (dodging == "left") { man.sprite._xscale = -manXScale; man.sprite.gotoAndStop(5); xSpeed = -25; dodgeSwitch == true; } if (!Key.isDown(40)) { dodgeSwitch = false; } } function spikesHit() { if (((platforms.spikes.hitTest(man._x + _x, man._y + _y, true) or platforms.spikes2.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes3.hitTest(man._x + _x, man._y + _y, true)) or platforms.spikes4.hitTest(man._x + _x, man._y + _y, true)) { gray_so.data.totalDeaths++; currentDeaths++; dead = true; } } function kick() { if (Key.isDown(32) && (kickKeySwitch == false)) { attack = true; kicking = true; kickKeySwitch = true; } else if (!Key.isDown(32)) { kickKeySwitch = false; } } function suicide() { if (Key.isDown(13) && (suicideSwitch == false)) { dead = true; suicideSwitch = true; } if (!Key.isDown(13)) { suicideSwitch = false; } } function pauseGame() { if (((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == false)) && (dead == false)) { gamePaused = true; imdrawing = false; pauseScreen._visible = true; inverter._visible = true; pauseSwitch = true; } else if ((Key.isDown(27) && (pauseSwitch == false)) && (gamePaused == true)) { gamePaused = false; pauseScreen._visible = false; inverter._visible = false; pauseSwitch = true; } else if (!Key.isDown(27)) { pauseSwitch = false; } } function cheats() { if (mudkipcheat == true) { man.sprite._visible = false; man.mudkip._visible = true; man.mage._visible = false; if ((man.mudkip._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mudkip.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mudkip._xscale = mudkipXScale; } else if (Key.isDown(65)) { man.mudkip._xscale = -mudkipXScale; } man.mudkip.gotoAndStop(2); } } else if (air == true) { man.mudkip.gotoAndStop(3); } if (Key.isDown(32) && (kickKeySwitch == false)) { if (man.mudkip.inSprite.head._currentframe == 1) { mudkipMouthOpen = true; } else if (man.mudkip.inSprite.head._currentframe == 2) { mudkipMouthOpen = false; } } if (mudkipMouthOpen == true) { man.mudkip.inSprite.head.gotoAndStop(2); } else { man.mudkip.inSprite.head.gotoAndStop(1); } } } else if (magecheat == true) { man.sprite._visible = false; man.mudkip._visible = false; man.mage._visible = true; if ((man.mage._currentframe != 4) && (attack == false)) { if (air == false) { if ((Key.isDown(68) == false) && (Key.isDown(65) == false)) { man.mage.gotoAndStop(1); } else if ((Key.isDown(68) == true) or (Key.isDown(65) == true)) { if (Key.isDown(68)) { man.mage._xscale = mageXScale; } else if (Key.isDown(65)) { man.mage._xscale = -mageXScale; } man.mage.gotoAndStop(2); } } else if (air == true) { man.mage.gotoAndStop(3); } } } else if ((mudkipcheat == false) && (magecheat == false)) { man.sprite._visible = true; man.mudkip._visible = false; man.mage._visible = false; } } function achievementsFunc() { if ((gray_so.data.totalDeaths == 100) && (gray_so.data.deathachievementplayed != true)) { achpopup.dontfearthereaper._visible = true; gray_so.data.deathachievementplayed = true; achpopup.gotoAndPlay("start"); } if ((gray_so.data.totalLines > 900) && (gray_so.data.over9000achievementplayed != true)) { achpopup.over9000._visible = true; gray_so.data.over9000achievementplayed = true; achpopup.gotoAndPlay("start"); } } function timerCounter() { timerPart++; if (timerPart == 40) { timer++; gray_so.data.totalTimer++; timerPart = 0; } } stop(); pauseScreen._visible = false; inverter._visible = false; Mouse.hide(); platx = platforms._x; platy = platforms._y; backx = theBackground._x; backy = theBackground._y; manx = man._x; many = man._y; dead = false; gamePaused = false; dodging = false; var attack = false; var kicking = false; var manstate = 1; var runSpeed = 15; var xSpeed = 0; var ySpeed = 0; var jumping = false; var jumpKeySwitch = false; var mudkipXScale = man.mudkip._xscale; var mageXScale = man.mage._xscale; var manXScale = man.sprite._xscale; var gravity = 2; var color = new Color("_root.man"); var imdrawing = false; var terrainVar = 1;
Frame 35
levelsound.stop(); raveLights._visible = true; levelsound.attachSound("raveMusic"); levelsound.start();
Symbol 15 Button
on (release) { getURL ("http://www.omnomasaur.com", "_blank"); }
Symbol 20 Button
on (release) { getURL ("http://www.omnomasaur.com", "_blank"); }
Symbol 21 MovieClip Frame 131
_root.gotoAndStop("menu");
Symbol 30 Button
on (release) { gotoAndStop ("chooselevel"); }
Symbol 43 Button
on (release) { deathsThisTime = 0; timer = 0; timerPart = 0; gotoAndStop ("lvl1"); }
Symbol 48 Button
on (release) { gotoAndStop ("achievements"); }
Symbol 53 Button
on (release) { gotoAndStop ("noJumps"); }
Symbol 58 Button
on (release) { gotoAndStop ("leastLines"); }
Symbol 63 Button
on (release) { gotoAndStop ("options"); }
Symbol 110 MovieClip Frame 1
startthegame._visible = false; tehh4xcheatz._visible = false; stillalive._visible = false; springless._visible = false; soiherd._visible = false; ravemeister._visible = false; over9000._visible = false; dontfearthereaper._visible = false; artistach._visible = false; overachiever._visible = false;
Symbol 110 MovieClip Frame 65
stop(); startthegame._visible = false; tehh4xcheatz._visible = false; stillalive._visible = false; springless._visible = false; soiherd._visible = false; ravemeister._visible = false; over9000._visible = false; dontfearthereaper._visible = false; artistach._visible = false; overachiever._visible = false;
Symbol 116 Button
on (release) { gotoAndStop ("beta"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 121 Button
on (release) { gotoAndStop ("lvl1"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 126 Button
on (release) { gotoAndStop ("lvl2"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 131 Button
on (release) { gotoAndStop ("lvl3"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 134 Button
on (release) { gotoAndStop ("lvl4"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 137 Button
on (release) { gotoAndStop ("lvl5"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 141 Button
on (release) { gotoAndStop ("lvl6"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 145 Button
on (release) { gotoAndStop ("lvl7"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 151 Button
on (release) { gotoAndStop ("lvl9"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 156 Button
on (release) { gotoAndStop ("lvl10"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 160 Button
on (release) { gotoAndStop ("lvl11"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 163 Button
on (release) { gotoAndStop ("lvl13"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 166 Button
on (release) { gotoAndStop ("lvl8"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 168 Button
on (release) { gotoAndStop ("lvl12"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 170 Button
on (release) { gotoAndStop ("menu"); }
Symbol 172 Button
on (release) { gotoAndStop ("lvl14"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; }
Symbol 178 Button
on (release) { gotoAndStop ("lvl3"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 179 Button
on (release) { gotoAndStop ("lvl4"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 180 Button
on (release) { gotoAndStop ("lvl5"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 181 Button
on (release) { gotoAndStop ("lvl6"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 182 Button
on (release) { gotoAndStop ("lvl7"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 183 Button
on (release) { gotoAndStop ("lvl9"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 184 Button
on (release) { gotoAndStop ("lvl10"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 185 Button
on (release) { gotoAndStop ("lvl11"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 186 Button
on (release) { gotoAndStop ("lvl13"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 187 Button
on (release) { gotoAndStop ("lvl8"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; noJumpMode = true; }
Symbol 191 MovieClip Frame 1
stop();
Symbol 197 Button
on (release) { gotoAndStop ("lvl6"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 1; } on (rollOver) { currentOverLinesToBeatVar = 1; currentOverBestTryVar = gray_so.data.lvl6leastLinesPlayer; }
Symbol 198 Button
on (release) { gotoAndStop ("lvl7"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 2; } on (rollOver) { currentOverLinesToBeatVar = 2; currentOverBestTryVar = gray_so.data.lvl7leastLinesPlayer; }
Symbol 199 Button
on (release) { gotoAndStop ("lvl9"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 3; } on (rollOver) { currentOverLinesToBeatVar = 3; currentOverBestTryVar = gray_so.data.lvl9leastLinesPlayer; }
Symbol 200 Button
on (release) { gotoAndStop ("lvl10"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 4; } on (rollOver) { currentOverLinesToBeatVar = 4; currentOverBestTryVar = gray_so.data.lvl10leastLinesPlayer; }
Symbol 201 Button
on (release) { gotoAndStop ("lvl11"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 7; } on (rollOver) { currentOverLinesToBeatVar = 7; currentOverBestTryVar = gray_so.data.lvl11leastLinesPlayer; }
Symbol 202 Button
on (release) { gotoAndStop ("lvl13"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 6; } on (rollOver) { currentOverLinesToBeatVar = 6; currentOverBestTryVar = gray_so.data.lvl13leastLinesPlayer; }
Symbol 203 Button
on (release) { gotoAndStop ("lvl8"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 1; } on (rollOver) { currentOverLinesToBeatVar = 1; currentOverBestTryVar = gray_so.data.lvl8leastLinesPlayer; }
Symbol 204 Button
on (release) { gotoAndStop ("lvl12"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 4; } on (rollOver) { currentOverLinesToBeatVar = 4; currentOverBestTryVar = gray_so.data.lvl12leastLinesPlayer; }
Symbol 207 Button
on (release) { gotoAndStop ("lvl14"); menusound.stop(); levelsound = new Sound(this); levelsound.attachSound("levelMusic"); levelsound.start(0, 9999); levelMusicOn = true; leastLinesMode = true; linesToBeatVar = 4; } on (rollOver) { currentOverLinesToBeatVar = 5; currentOverBestTryVar = gray_so.data.lvl14leastLinesPlayer; }
Symbol 213 Button
on (release) { gray_so.clear(); gotoAndStop ("menu"); }
Symbol 218 Button
on (release) { gotoAndStop ("credits"); }
Symbol 223 Button
on (release) { if (gray_so.data.musicOff == false) { _root.levelsound.setVolume(0); _root.menusound.setVolume(0); gray_so.data.musicOff = true; } else if (gray_so.data.musicOff == true) { _root.levelsound.setVolume(100); _root.menusound.setVolume(100); gray_so.data.musicOff = false; } }
Symbol 228 Button
on (release) { gotoAndStop ("stats"); }
Symbol 254 MovieClip Frame 29
stop();
Symbol 262 MovieClip Frame 11
stop();
Instance of Symbol 248 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 253 MovieClip in Symbol 263 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 254 MovieClip in Symbol 263 MovieClip Frame 3
onClipEvent (enterFrame) { if ((_root.gamePaused == false) && (_currentframe != 29)) { play(); } else { stop(); } if ((((_root.air == true) && (_root.jumpKeySwitch == true)) && (_root.doubleJump == 2)) && (_currentframe >= 22)) { gotoAndPlay (2); _root.doubleJump++; } }
Instance of Symbol 262 MovieClip in Symbol 263 MovieClip Frame 4
onClipEvent (enterFrame) { if ((_root.gamePaused == false) && (_currentframe != 11)) { play(); } else { stop(); } }
Instance of Symbol 262 MovieClip in Symbol 287 MovieClip Frame 4
onClipEvent (enterFrame) { if ((_root.gamePaused == false) && (_currentframe != 11)) { play(); } else { stop(); } }
Symbol 346 MovieClip Frame 16
gotoAndPlay (11);
Symbol 347 MovieClip Frame 1
if (_root.jumpKeySwitch == true) { play(); } else { gotoAndStop (17); }
Symbol 347 MovieClip Frame 17
stop();
Instance of Symbol 346 MovieClip in Symbol 347 MovieClip Frame 17
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Symbol 375 MovieClip Frame 16
gotoAndPlay (11);
Symbol 376 MovieClip Frame 1
if (_root.jumpKeySwitch == true) { play(); } else { gotoAndStop (17); }
Symbol 376 MovieClip Frame 17
stop();
Instance of Symbol 375 MovieClip in Symbol 376 MovieClip Frame 17
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Symbol 378 MovieClip Frame 20
_root.wallClinging = false; _root.air = true;
Symbol 393 MovieClip Frame 15
_root.attack = false; _root.kicking = false;
Instance of Symbol 38 MovieClip "inSprite" in Symbol 409 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 38 MovieClip "bwhite" in Symbol 409 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 295 MovieClip "outline" in Symbol 409 MovieClip Frame 1
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 305 MovieClip "inSprite" in Symbol 409 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 305 MovieClip "bwhite" in Symbol 409 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 315 MovieClip "outline" in Symbol 409 MovieClip Frame 2
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 347 MovieClip "inSprite" in Symbol 409 MovieClip Frame 3
onClipEvent (enterFrame) { if ((_root.gamePaused == false) && (_currentframe != 17)) { play(); } else { stop(); } if ((((_root.air == true) && (_root.jumpKeySwitch == true)) && (_root.doubleJump == 2)) && (_currentframe >= 14)) { gotoAndPlay (4); _root.doubleJump++; } }
Instance of Symbol 347 MovieClip "bwhite" in Symbol 409 MovieClip Frame 3
onClipEvent (enterFrame) { if ((_root.gamePaused == false) && (_currentframe != 17)) { play(); } else { stop(); } if ((((_root.air == true) && (_root.jumpKeySwitch == true)) && (_root.doubleJump == 2)) && (_currentframe >= 14)) { gotoAndPlay (4); } }
Instance of Symbol 376 MovieClip "outline" in Symbol 409 MovieClip Frame 3
onClipEvent (enterFrame) { if ((_root.gamePaused == false) && (_currentframe != 17)) { play(); } else { stop(); } if ((((_root.air == true) && (_root.jumpKeySwitch == true)) && (_root.doubleJump == 2)) && (_currentframe >= 14)) { gotoAndPlay (4); } }
Instance of Symbol 262 MovieClip in Symbol 409 MovieClip Frame 4
onClipEvent (enterFrame) { if ((_root.gamePaused == false) && (_currentframe != 11)) { play(); } else { stop(); } }
Instance of Symbol 347 MovieClip "inSprite" in Symbol 409 MovieClip Frame 5
onClipEvent (enterFrame) { if ((_root.gamePaused == false) && (_currentframe != 17)) { play(); } else { stop(); } }
Instance of Symbol 393 MovieClip "inSprite" in Symbol 409 MovieClip Frame 7
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 393 MovieClip "bwhite" in Symbol 409 MovieClip Frame 7
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Instance of Symbol 408 MovieClip in Symbol 409 MovieClip Frame 7
onClipEvent (enterFrame) { if (_root.gamePaused == false) { play(); } else { stop(); } }
Symbol 414 MovieClip Frame 1
notmudkip._visible = false;
Symbol 416 Button
on (release) { if (_root.gray_so.data.musicOff == false) { _root.levelsound.setVolume(0); _root.menusound.setVolume(0); _root.gray_so.data.musicOff = true; } else if (_root.gray_so.data.musicOff == true) { _root.levelsound.setVolume(100); _root.menusound.setVolume(100); _root.gray_so.data.musicOff = false; } }
Symbol 421 Button
on (release) { if (cheatmenu._visible == false) { cheatmenu._visible = true; } else if (cheatmenu._visible == true) { cheatmenu._visible = false; } }
Symbol 431 Button
on (release) { if (_root.mudkipcheat == true) { _root.mudkipcheat = false; } else if (_root.mudkipcheat == false) { _root.mudkipcheat = true; } }
Symbol 436 Button
on (release) { if (_root.raveLights._visible == false) { _root.levelsound.stop(); _root.raveLights._visible = true; _root.levelsound.attachSound("raveMusic"); _root.levelsound.start(); levelMusicOn = true; } else if (_root.raveLights._visible == true) { _root.levelsound.stop(); _root.raveLights._visible = false; _root.levelsound.attachSound("levelMusic"); _root.levelsound.start(); levelMusicOn = true; } }
Symbol 438 Button
on (release) { if (_root.magecheat == true) { _root.magecheat = false; } else if (_root.magecheat == false) { _root.magecheat = true; } }
Symbol 440 Button
on (release) { _root.gray_so.data.lvlsavailable = 1000; }
Instance of Symbol 425 MovieClip in Symbol 441 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.cheatinput.text == "mygame") { _parent.mudkipbutton._visible = true; } else if (this.cheatinput.text == "unce unce") { _parent.ravebutton._visible = true; } else if (this.cheatinput.text == "magus") { _parent.magebutton._visible = true; } else if (this.cheatinput.text == "wtf? beta?") { _parent.alllvlsbutton._visible = true; } if (Key.isDown(13)) { _root.cheatactivate = "Input Cheat"; } if (((((_parent.mudkipbutton._visible == true) && (_parent.ravebutton._visible == true)) && (_parent.magebutton._visible == true)) && (_parent.alllvlsbutton._visible == true)) && (_root.gray_so.data.allcheatsunlocked == false)) { _root.gray_so.data.allcheatsunlocked = true; _root.achpopup.tehh4xcheatz._visible = true; _root.achpopup.gotoAndPlay("start"); } }
Symbol 442 Button
on (release) { _root.gotoAndStop("menu"); }
Symbol 443 MovieClip Frame 1
cheatmenu._visible = false; if (_root.gray_so.data.allcheatsunlocked == false) { cheatmenu.mudkipbutton._visible = false; cheatmenu.ravebutton._visible = false; cheatmenu.magebutton._visible = false; cheatmenu.alllvlsbutton._visible = false; } else if (_root.gray_so.data.allcheatsunlocked == true) { cheatmenu.mudkipbutton._visible = true; cheatmenu.ravebutton._visible = true; cheatmenu.magebutton._visible = true; cheatmenu.alllvlsbutton._visible = true; }
Symbol 480 MovieClip Frame 1
stop();
Instance of Symbol 580 MovieClip in Symbol 625 MovieClip Frame 1
onClipEvent (load) { _root.statechanger = true; if (((((Key.isDown(65) && (_root.itemvar == 1)) && (_root.air == false)) && (_root.armvar == 1)) && (_root.punchvar < 3)) && (uppunch == false)) { _root.punchvar = _root.punchvar + 1; uppunch = true; } else { uppunch = false; } if (((_root.punchvar > 0) && (_root.punchvar < 4)) && (_root.punching == false)) { with (this.rarmout.rarm) { gotoAndPlay(2); } } if (((_root.punchvar > 1) && (_root.punchvar < 3)) && (_root.leftpunching == false)) { with (this.larmout.larm) { gotoAndPlay(2); } } } onClipEvent (enterFrame) { if (((((Key.isDown(65) && (_root.itemvar == 1)) && (_root.air == false)) && (_root.armvar == 1)) && (_root.punchvar < 3)) && (uppunch == false)) { _root.punchvar = _root.punchvar + 1; uppunch = true; } else { uppunch = false; } if (((_root.punchvar > 0) && (_root.punchvar < 4)) && (_root.punching == false)) { with (this.rarmout.rarm) { gotoAndPlay(2); } } if (((_root.punchvar > 1) && (_root.punchvar < 3)) && (_root.leftpunching == false)) { with (this.larmout.larm) { gotoAndPlay(2); } } if ((((Key.isDown(65) && (_root.itemvar == 2)) && (_root.air == false)) && (_root.punching == false)) && (_root.armvar == 1)) { with (this.larmout.larm) { gotoAndPlay(38); } } if ((((Key.isDown(65) && (_root.itemvar == 3)) && (_root.air == false)) && (_root.punching == false)) && (_root.armvar == 1)) { with (this.larmout.larm) { gotoAndPlay(38); } } if ((((Key.isDown(65) && (_root.itemvar == 4)) && (_root.air == false)) && (_root.punching == false)) && (_root.armvar == 1)) { with (this.larmout.larm) { gotoAndPlay(38); } } if ((((Key.isDown(65) && (_root.itemvar == 5)) && (_root.air == false)) && (_root.punching == false)) && (_root.armvar == 1)) { with (this.larmout.larm) { gotoAndPlay(38); } } if ((((Key.isDown(65) && (_root.itemvar == 6)) && (_root.air == false)) && (_root.punching == false)) && (_root.armvar == 1)) { with (this.larmout.larm) { gotoAndPlay(38); } } if ((((Key.isDown(65) && (_root.itemvar == 7)) && (_root.air == false)) && (_root.punching == false)) && (_root.armvar == 1)) { with (this.larmout.larm) { gotoAndPlay(38); } } if ((((Key.isDown(65) && (_root.itemvar == 8)) && (_root.air == false)) && (_root.punching == false)) && (_root.armvar == 1)) { with (this.larmout.larm) { gotoAndPlay(38); } } if ((((Key.isDown(65) && (_root.itemvar == 9)) && (_root.air == false)) && (_root.punching == false)) && (_root.armvar == 1)) { with (this.larmout.larm) { gotoAndPlay(38); } } if ((((Key.isDown(65) && (_root.itemvar == 11)) && (_root.punching == false)) && (_root.armvar == 1)) && (_root.lightcharged == true)) { with (this.larmout.larm) { gotoAndPlay(38); } _root.laserCounter++; _root.laser.duplicateMovieClip("laser" + _root.laserCounter, _root.laserCounter); _root["laser" + _root.laserCounter]._visible = true; } }
Symbol 625 MovieClip Frame 2000
_root.gotoAndStop("menu");

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:Timeline
Symbol 3 GraphicUsed by:Timeline
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:Timeline
Symbol 6 FontUsed by:7
Symbol 7 EditableTextUses:6Used by:Timeline
Symbol 8 GraphicUsed by:Timeline
Symbol 9 Sound [raveMusic]Used by:Timeline
Symbol 10 Sound [menuMusic]Used by:Timeline
Symbol 11 Sound [levelMusic]Used by:Timeline
Symbol 12 Sound [levelMusic3]Used by:Timeline
Symbol 13 Sound [levelMusic2]Used by:Timeline
Symbol 14 GraphicUsed by:15
Symbol 15 ButtonUses:14Used by:21
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:21
Symbol 18 ShapeTweeningUsed by:21
Symbol 19 GraphicUsed by:20 21
Symbol 20 ButtonUses:19Used by:21
Symbol 21 MovieClipUses:15 17 18 19 20Used by:Timeline
Symbol 22 GraphicUsed by:Timeline
Symbol 23 GraphicUsed by:Timeline
Symbol 24 GraphicUsed by:Timeline
Symbol 25 GraphicUsed by:30 170 442
Symbol 26 FontUsed by:27 40 50 55 60 147 150 153 157 161 164 167 169 171 205 206 210 215 220 225 230 231 232 233 234 424 426 428 433 437 439 455 456 457 472 474 475 486 494 499 514 528 529 531 542 543 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623
Symbol 27 TextUses:26Used by:30
Symbol 28 GraphicUsed by:30 170 442
Symbol 29 GraphicUsed by:30 170 442
Symbol 30 ButtonUses:25 27 28 29Used by:Timeline
Symbol 31 GraphicUsed by:38
Symbol 32 GraphicUsed by:38
Symbol 33 GraphicUsed by:38
Symbol 34 GraphicUsed by:38
Symbol 35 GraphicUsed by:38
Symbol 36 GraphicUsed by:38
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:31 32 33 34 35 36 37Used by:409  Timeline
Symbol 39 GraphicUsed by:43
Symbol 40 TextUses:26Used by:43
Symbol 41 GraphicUsed by:43
Symbol 42 GraphicUsed by:43
Symbol 43 ButtonUses:39 40 41 42Used by:Timeline
Symbol 44 GraphicUsed by:48
Symbol 45 FontUsed by:46 69 71 74 76 79 80 83 84 87 88 91 92 95 96 99 100 103 104 107 108 535 539
Symbol 46 TextUses:45Used by:48
Symbol 47 GraphicUsed by:48
Symbol 48 ButtonUses:44 46 47Used by:Timeline
Symbol 49 GraphicUsed by:53
Symbol 50 TextUses:26Used by:53
Symbol 51 GraphicUsed by:53
Symbol 52 GraphicUsed by:53
Symbol 53 ButtonUses:49 50 51 52Used by:Timeline
Symbol 54 GraphicUsed by:58
Symbol 55 TextUses:26Used by:58
Symbol 56 GraphicUsed by:58
Symbol 57 GraphicUsed by:58
Symbol 58 ButtonUses:54 55 56 57Used by:Timeline
Symbol 59 GraphicUsed by:63
Symbol 60 TextUses:26Used by:63
Symbol 61 GraphicUsed by:63
Symbol 62 GraphicUsed by:63
Symbol 63 ButtonUses:59 60 61 62Used by:Timeline
Symbol 64 GraphicUsed by:66
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:64 65Used by:Timeline
Symbol 67 GraphicUsed by:72 77 81 85 89 93 97 101 105 109
Symbol 68 GraphicUsed by:72
Symbol 69 TextUses:45Used by:72
Symbol 70 GraphicUsed by:72
Symbol 71 TextUses:45Used by:72
Symbol 72 ButtonUses:67 68 69 70 71Used by:110 174
Symbol 73 GraphicUsed by:77
Symbol 74 TextUses:45Used by:77
Symbol 75 GraphicUsed by:77 81 85 89 93 97 101 105 109
Symbol 76 TextUses:45Used by:77
Symbol 77 ButtonUses:67 73 74 75 76Used by:110 174
Symbol 78 GraphicUsed by:81
Symbol 79 TextUses:45Used by:81
Symbol 80 TextUses:45Used by:81
Symbol 81 ButtonUses:67 78 79 75 80Used by:110 174
Symbol 82 GraphicUsed by:85
Symbol 83 TextUses:45Used by:85
Symbol 84 TextUses:45Used by:85
Symbol 85 ButtonUses:67 82 83 75 84Used by:110 174
Symbol 86 GraphicUsed by:89
Symbol 87 TextUses:45Used by:89
Symbol 88 TextUses:45Used by:89
Symbol 89 ButtonUses:67 86 87 75 88Used by:110 174
Symbol 90 GraphicUsed by:93
Symbol 91 TextUses:45Used by:93
Symbol 92 TextUses:45Used by:93
Symbol 93 ButtonUses:67 90 91 75 92Used by:110 174
Symbol 94 GraphicUsed by:97
Symbol 95 TextUses:45Used by:97
Symbol 96 TextUses:45Used by:97
Symbol 97 ButtonUses:67 94 95 75 96Used by:110 174
Symbol 98 GraphicUsed by:101
Symbol 99 TextUses:45Used by:101
Symbol 100 TextUses:45Used by:101
Symbol 101 ButtonUses:67 98 99 75 100Used by:110 174
Symbol 102 GraphicUsed by:105
Symbol 103 TextUses:45Used by:105
Symbol 104 TextUses:45Used by:105
Symbol 105 ButtonUses:67 102 103 75 104Used by:110 174
Symbol 106 GraphicUsed by:109
Symbol 107 TextUses:45Used by:109
Symbol 108 TextUses:45Used by:109
Symbol 109 ButtonUses:67 106 107 75 108Used by:110 174
Symbol 110 MovieClipUses:72 77 81 85 89 93 97 101 105 109Used by:Timeline
Symbol 111 GraphicUsed by:Timeline
Symbol 112 GraphicUsed by:116
Symbol 113 GraphicUsed by:116
Symbol 114 GraphicUsed by:116
Symbol 115 GraphicUsed by:116
Symbol 116 ButtonUses:112 113 114 115Used by:Timeline
Symbol 117 GraphicUsed by:121 176
Symbol 118 GraphicUsed by:121 176
Symbol 119 GraphicUsed by:121 176
Symbol 120 GraphicUsed by:121 176
Symbol 121 ButtonUses:117 118 119 120Used by:Timeline
Symbol 122 GraphicUsed by:126 177
Symbol 123 GraphicUsed by:126 177
Symbol 124 GraphicUsed by:126 177
Symbol 125 GraphicUsed by:126 177
Symbol 126 ButtonUses:122 123 124 125Used by:Timeline
Symbol 127 GraphicUsed by:131 134 137 141 145 178 179 180 181 182 194 195 196 197 198
Symbol 128 GraphicUsed by:131 178 194
Symbol 129 GraphicUsed by:131 134 137 178 179 180 194 195 196
Symbol 130 GraphicUsed by:131 178 194
Symbol 131 ButtonUses:127 128 129 130Used by:Timeline
Symbol 132 GraphicUsed by:134 179 195
Symbol 133 GraphicUsed by:134 179 195
Symbol 134 ButtonUses:127 132 129 133Used by:Timeline
Symbol 135 GraphicUsed by:137 180 196
Symbol 136 GraphicUsed by:137 180 196
Symbol 137 ButtonUses:127 135 129 136Used by:Timeline
Symbol 138 GraphicUsed by:141 181 197
Symbol 139 GraphicUsed by:141 181 197
Symbol 140 GraphicUsed by:141 181 197
Symbol 141 ButtonUses:127 138 139 140Used by:Timeline
Symbol 142 GraphicUsed by:145 182 198
Symbol 143 GraphicUsed by:145 182 198
Symbol 144 GraphicUsed by:145 182 198
Symbol 145 ButtonUses:127 142 143 144Used by:Timeline
Symbol 146 GraphicUsed by:151 166 183 187 199 203
Symbol 147 TextUses:26Used by:151 183 199
Symbol 148 GraphicUsed by:151 183 199
Symbol 149 GraphicUsed by:151 166 183 187 199 203
Symbol 150 EditableTextUses:26Used by:151 183 199
Symbol 151 ButtonUses:146 147 148 149 150Used by:Timeline
Symbol 152 GraphicUsed by:156 160 163 168 172 184 185 186 188 192 200 201 202 204 207
Symbol 153 TextUses:26Used by:156 184 200
Symbol 154 GraphicUsed by:156 184 200
Symbol 155 GraphicUsed by:156 163 168 172 184 186 188 192 200 202 204 207
Symbol 156 ButtonUses:152 153 154 155Used by:Timeline
Symbol 157 TextUses:26Used by:160 185 201
Symbol 158 GraphicUsed by:160 185 201
Symbol 159 GraphicUsed by:160 185 201
Symbol 160 ButtonUses:152 157 158 159Used by:Timeline
Symbol 161 TextUses:26Used by:163 186 202
Symbol 162 GraphicUsed by:163 168 172 186 188 192 202 204 207
Symbol 163 ButtonUses:152 161 162 155Used by:Timeline
Symbol 164 TextUses:26Used by:166 187 203
Symbol 165 GraphicUsed by:166 187 203
Symbol 166 ButtonUses:146 164 165 149Used by:Timeline
Symbol 167 TextUses:26Used by:168 188 204
Symbol 168 ButtonUses:152 167 162 155Used by:Timeline
Symbol 169 TextUses:26Used by:170 442
Symbol 170 ButtonUses:25 169 28 29Used by:Timeline
Symbol 171 TextUses:26Used by:172 192 207
Symbol 172 ButtonUses:152 171 162 155Used by:Timeline
Symbol 173 GraphicUsed by:Timeline
Symbol 174 MovieClipUses:72 101 93 81 85 97 77 89 105 109Used by:Timeline
Symbol 175 GraphicUsed by:Timeline
Symbol 176 ButtonUses:117 118 119 120Used by:Timeline
Symbol 177 ButtonUses:122 123 124 125Used by:Timeline
Symbol 178 ButtonUses:127 128 129 130Used by:Timeline
Symbol 179 ButtonUses:127 132 129 133Used by:Timeline
Symbol 180 ButtonUses:127 135 129 136Used by:Timeline
Symbol 181 ButtonUses:127 138 139 140Used by:Timeline
Symbol 182 ButtonUses:127 142 143 144Used by:Timeline
Symbol 183 ButtonUses:146 147 148 149 150Used by:Timeline
Symbol 184 ButtonUses:152 153 154 155Used by:Timeline
Symbol 185 ButtonUses:152 157 158 159Used by:Timeline
Symbol 186 ButtonUses:152 161 162 155Used by:Timeline
Symbol 187 ButtonUses:146 164 165 149Used by:Timeline
Symbol 188 ButtonUses:152 167 162 155Used by:Timeline
Symbol 189 GraphicUsed by:191
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClipUses:189 190Used by:Timeline
Symbol 192 ButtonUses:152 171 162 155Used by:Timeline
Symbol 193 GraphicUsed by:Timeline
Symbol 194 ButtonUses:127 128 129 130Used by:Timeline
Symbol 195 ButtonUses:127 132 129 133Used by:Timeline
Symbol 196 ButtonUses:127 135 129 136Used by:Timeline
Symbol 197 ButtonUses:127 138 139 140Used by:Timeline
Symbol 198 ButtonUses:127 142 143 144Used by:Timeline
Symbol 199 ButtonUses:146 147 148 149 150Used by:Timeline
Symbol 200 ButtonUses:152 153 154 155Used by:Timeline
Symbol 201 ButtonUses:152 157 158 159Used by:Timeline
Symbol 202 ButtonUses:152 161 162 155Used by:Timeline
Symbol 203 ButtonUses:146 164 165 149Used by:Timeline
Symbol 204 ButtonUses:152 167 162 155Used by:Timeline
Symbol 205 EditableTextUses:26Used by:Timeline
Symbol 206 EditableTextUses:26Used by:Timeline
Symbol 207 ButtonUses:152 171 162 155Used by:Timeline
Symbol 208 GraphicUsed by:Timeline
Symbol 209 GraphicUsed by:213
Symbol 210 TextUses:26Used by:213
Symbol 211 GraphicUsed by:213
Symbol 212 GraphicUsed by:213
Symbol 213 ButtonUses:209 210 211 212Used by:Timeline
Symbol 214 GraphicUsed by:218
Symbol 215 TextUses:26Used by:218
Symbol 216 GraphicUsed by:218
Symbol 217 GraphicUsed by:218
Symbol 218 ButtonUses:214 215 216 217Used by:Timeline
Symbol 219 GraphicUsed by:223 416
Symbol 220 TextUses:26Used by:223 416
Symbol 221 GraphicUsed by:223 416
Symbol 222 GraphicUsed by:223 416
Symbol 223 ButtonUses:219 220 221 222Used by:Timeline
Symbol 224 GraphicUsed by:228
Symbol 225 TextUses:26Used by:228
Symbol 226 GraphicUsed by:228
Symbol 227 GraphicUsed by:228
Symbol 228 ButtonUses:224 225 226 227Used by:Timeline
Symbol 229 GraphicUsed by:Timeline
Symbol 230 EditableTextUses:26Used by:Timeline
Symbol 231 EditableTextUses:26Used by:Timeline
Symbol 232 EditableTextUses:26Used by:Timeline
Symbol 233 EditableTextUses:26Used by:Timeline
Symbol 234 EditableTextUses:26Used by:Timeline
Symbol 235 GraphicUsed by:236
Symbol 236 MovieClipUses:235Used by:Timeline
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClipUses:237Used by:Timeline
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239Used by:241
Symbol 241 MovieClipUses:240Used by:Timeline
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:242Used by:248 253 254
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClipUses:244Used by:248 254
Symbol 246 GraphicUsed by:247
Symbol 247 MovieClipUses:246Used by:248 253 254
Symbol 248 MovieClipUses:243 245 247Used by:263
Symbol 249 GraphicUsed by:250
Symbol 250 MovieClipUses:249Used by:253 254
Symbol 251 GraphicUsed by:252
Symbol 252 MovieClipUses:251Used by:253 254
Symbol 253 MovieClipUses:250 243 252 247Used by:263
Symbol 254 MovieClipUses:243 245 247 250 252Used by:263
Symbol 255 GraphicUsed by:262
Symbol 256 GraphicUsed by:262
Symbol 257 GraphicUsed by:262
Symbol 258 GraphicUsed by:262
Symbol 259 GraphicUsed by:262
Symbol 260 GraphicUsed by:262
Symbol 261 GraphicUsed by:262
Symbol 262 MovieClipUses:255 256 257 258 259 260 261Used by:263 287 409
Symbol 263 MovieClipUses:248 253 254 262Used by:414
Symbol 264 GraphicUsed by:265
Symbol 265 MovieClipUses:264Used by:274 285 286
Symbol 266 GraphicUsed by:267
Symbol 267 MovieClipUses:266Used by:274
Symbol 268 GraphicUsed by:269
Symbol 269 MovieClipUses:268Used by:274 285 286
Symbol 270 GraphicUsed by:271
Symbol 271 MovieClipUses:270Used by:274 285 286
Symbol 272 GraphicUsed by:273
Symbol 273 MovieClipUses:272Used by:274 285 286
Symbol 274 MovieClipUses:265 267 269 271 273Used by:287
Symbol 275 GraphicUsed by:285
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:276Used by:285 286
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278Used by:285 286
Symbol 280 GraphicUsed by:285
Symbol 281 GraphicUsed by:285
Symbol 282 GraphicUsed by:285
Symbol 283 GraphicUsed by:285
Symbol 284 GraphicUsed by:285
Symbol 285 MovieClipUses:265 275 277 279 269 271 273 280 281 282 283 284Used by:287
Symbol 286 MovieClipUses:265 277 279 269 271 273Used by:287
Symbol 287 MovieClipUses:274 285 286 262Used by:414
Symbol 288 GraphicUsed by:295
Symbol 289 GraphicUsed by:295
Symbol 290 GraphicUsed by:295
Symbol 291 GraphicUsed by:295
Symbol 292 GraphicUsed by:295
Symbol 293 GraphicUsed by:295
Symbol 294 GraphicUsed by:295
Symbol 295 MovieClipUses:288 289 290 291 292 293 294Used by:409
Symbol 296 GraphicUsed by:305
Symbol 297 GraphicUsed by:305
Symbol 298 GraphicUsed by:305
Symbol 299 GraphicUsed by:305
Symbol 300 GraphicUsed by:305
Symbol 301 GraphicUsed by:305
Symbol 302 GraphicUsed by:305
Symbol 303 GraphicUsed by:305
Symbol 304 GraphicUsed by:305
Symbol 305 MovieClipUses:296 297 298 299 300 301 302 303 304Used by:409
Symbol 306 GraphicUsed by:315
Symbol 307 GraphicUsed by:315
Symbol 308 GraphicUsed by:315
Symbol 309 GraphicUsed by:315
Symbol 310 GraphicUsed by:315
Symbol 311 GraphicUsed by:315
Symbol 312 GraphicUsed by:315
Symbol 313 GraphicUsed by:315
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClipUses:306 307 308 309 310 311 312 313 314Used by:409
Symbol 316 GraphicUsed by:347
Symbol 317 GraphicUsed by:347
Symbol 318 GraphicUsed by:347
Symbol 319 GraphicUsed by:347
Symbol 320 GraphicUsed by:347
Symbol 321 GraphicUsed by:347
Symbol 322 GraphicUsed by:347
Symbol 323 GraphicUsed by:347
Symbol 324 GraphicUsed by:347
Symbol 325 GraphicUsed by:347
Symbol 326 GraphicUsed by:347
Symbol 327 GraphicUsed by:347
Symbol 328 GraphicUsed by:347
Symbol 329 GraphicUsed by:347
Symbol 330 GraphicUsed by:347
Symbol 331 GraphicUsed by:347
Symbol 332 GraphicUsed by:346
Symbol 333 GraphicUsed by:346
Symbol 334 GraphicUsed by:346
Symbol 335 GraphicUsed by:346
Symbol 336 GraphicUsed by:346
Symbol 337 GraphicUsed by:346
Symbol 338 GraphicUsed by:346
Symbol 339 GraphicUsed by:346
Symbol 340 GraphicUsed by:346
Symbol 341 GraphicUsed by:346
Symbol 342 GraphicUsed by:346
Symbol 343 GraphicUsed by:346
Symbol 344 GraphicUsed by:346
Symbol 345 GraphicUsed by:346
Symbol 346 MovieClipUses:332 333 334 335 336 337 338 339 340 341 342 343 344 345Used by:347
Symbol 347 MovieClipUses:316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 346Used by:409
Symbol 348 GraphicUsed by:376
Symbol 349 GraphicUsed by:376
Symbol 350 GraphicUsed by:376
Symbol 351 GraphicUsed by:376
Symbol 352 GraphicUsed by:376
Symbol 353 GraphicUsed by:376
Symbol 354 GraphicUsed by:376
Symbol 355 GraphicUsed by:376
Symbol 356 GraphicUsed by:376
Symbol 357 GraphicUsed by:376
Symbol 358 GraphicUsed by:376
Symbol 359 GraphicUsed by:376
Symbol 360 GraphicUsed by:376
Symbol 361 GraphicUsed by:375
Symbol 362 GraphicUsed by:375
Symbol 363 GraphicUsed by:375
Symbol 364 GraphicUsed by:375
Symbol 365 GraphicUsed by:375
Symbol 366 GraphicUsed by:375
Symbol 367 GraphicUsed by:375
Symbol 368 GraphicUsed by:375
Symbol 369 GraphicUsed by:375
Symbol 370 GraphicUsed by:375
Symbol 371 GraphicUsed by:375
Symbol 372 GraphicUsed by:375
Symbol 373 GraphicUsed by:375
Symbol 374 GraphicUsed by:375
Symbol 375 MovieClipUses:361 362 363 364 365 366 367 368 369 370 371 372 373 374Used by:376
Symbol 376 MovieClipUses:348 349 350 351 352 353 354 355 356 357 358 359 360 375Used by:409
Symbol 377 GraphicUsed by:378
Symbol 378 MovieClipUses:377Used by:409
Symbol 379 GraphicUsed by:393
Symbol 380 GraphicUsed by:393
Symbol 381 GraphicUsed by:393
Symbol 382 GraphicUsed by:393
Symbol 383 GraphicUsed by:393
Symbol 384 GraphicUsed by:393
Symbol 385 GraphicUsed by:393
Symbol 386 GraphicUsed by:393
Symbol 387 GraphicUsed by:393
Symbol 388 GraphicUsed by:393
Symbol 389 GraphicUsed by:393
Symbol 390 GraphicUsed by:393
Symbol 391 GraphicUsed by:393
Symbol 392 GraphicUsed by:393
Symbol 393 MovieClipUses:379 380 381 382 383 384 385 386 387 388 389 390 391 392Used by:409
Symbol 394 GraphicUsed by:408
Symbol 395 GraphicUsed by:408
Symbol 396 GraphicUsed by:408
Symbol 397 GraphicUsed by:408
Symbol 398 GraphicUsed by:408
Symbol 399 GraphicUsed by:408
Symbol 400 GraphicUsed by:408
Symbol 401 GraphicUsed by:408
Symbol 402 GraphicUsed by:408
Symbol 403 GraphicUsed by:408
Symbol 404 GraphicUsed by:408
Symbol 405 GraphicUsed by:408
Symbol 406 GraphicUsed by:408
Symbol 407 GraphicUsed by:408
Symbol 408 MovieClipUses:394 395 396 397 398 399 400 401 402 403 404 405 406 407Used by:409
Symbol 409 MovieClipUses:38 295 305 315 347 376 262 378 393 408Used by:414
Symbol 410 GraphicUsed by:411 454
Symbol 411 MovieClipUses:410Used by:414
Symbol 412 GraphicUsed by:413 458 530 536 540  Timeline
Symbol 413 MovieClipUses:412Used by:414
Symbol 414 MovieClipUses:263 287 409 411 413Used by:Timeline
Symbol 415 GraphicUsed by:443
Symbol 416 ButtonUses:219 220 221 222Used by:443
Symbol 417 GraphicUsed by:421
Symbol 418 GraphicUsed by:421
Symbol 419 GraphicUsed by:421
Symbol 420 GraphicUsed by:421
Symbol 421 ButtonUses:417 418 419 420Used by:443
Symbol 422 GraphicUsed by:441
Symbol 423 GraphicUsed by:425
Symbol 424 EditableTextUses:26Used by:425
Symbol 425 MovieClipUses:423 424Used by:441
Symbol 426 TextUses:26Used by:441
Symbol 427 GraphicUsed by:431 438
Symbol 428 TextUses:26Used by:431
Symbol 429 GraphicUsed by:431 438
Symbol 430 GraphicUsed by:431 438
Symbol 431 ButtonUses:427 428 429 430Used by:441
Symbol 432 GraphicUsed by:436 440
Symbol 433 TextUses:26Used by:436
Symbol 434 GraphicUsed by:436 440
Symbol 435 GraphicUsed by:436 440
Symbol 436 ButtonUses:432 433 434 435Used by:441
Symbol 437 TextUses:26Used by:438
Symbol 438 ButtonUses:427 437 429 430Used by:441
Symbol 439 TextUses:26Used by:440
Symbol 440 ButtonUses:432 439 434 435Used by:441
Symbol 441 MovieClipUses:422 425 426 431 436 438 440Used by:443
Symbol 442 ButtonUses:25 169 28 29Used by:443
Symbol 443 MovieClipUses:415 416 421 441 442Used by:Timeline
Symbol 444 GraphicUsed by:445
Symbol 445 MovieClipUses:444Used by:Timeline
Symbol 446 GraphicUsed by:448
Symbol 447 GraphicUsed by:448
Symbol 448 MovieClipUses:446 447Used by:Timeline
Symbol 449 GraphicUsed by:454
Symbol 450 GraphicUsed by:454
Symbol 451 GraphicUsed by:454
Symbol 452 GraphicUsed by:454
Symbol 453 GraphicUsed by:454
Symbol 454 MovieClipUses:410 449 450 451 452 453Used by:Timeline
Symbol 455 EditableTextUses:26Used by:Timeline
Symbol 456 EditableTextUses:26Used by:Timeline
Symbol 457 EditableTextUses:26Used by:Timeline
Symbol 458 MovieClipUses:412Used by:Timeline
Symbol 459 GraphicUsed by:Timeline
Symbol 460 GraphicUsed by:471
Symbol 461 GraphicUsed by:462
Symbol 462 MovieClipUses:461Used by:471 493 506 509 513 518 521 525 530 536 540
Symbol 463 GraphicUsed by:467
Symbol 464 GraphicUsed by:467
Symbol 465 GraphicUsed by:467
Symbol 466 GraphicUsed by:467
Symbol 467 MovieClipUses:463 464 465 466Used by:471 485 493 498 503 506 509 513 518 521 525 530 536 540
Symbol 468 GraphicUsed by:469
Symbol 469 MovieClipUses:468Used by:471
Symbol 470 GraphicUsed by:471
Symbol 471 MovieClipUses:460 462 467 469 470Used by:Timeline
Symbol 472 EditableTextUses:26Used by:473
Symbol 473 MovieClipUses:472Used by:Timeline
Symbol 474 EditableTextUses:26Used by:476
Symbol 475 EditableTextUses:26Used by:476
Symbol 476 MovieClipUses:474 475Used by:Timeline
Symbol 477 GraphicUsed by:480
Symbol 478 GraphicUsed by:480
Symbol 479 GraphicUsed by:480
Symbol 480 MovieClipUses:477 478 479Used by:485 498 503 506 509 518 521 525 530 536 540
Symbol 481 GraphicUsed by:484
Symbol 482 GraphicUsed by:483
Symbol 483 MovieClipUses:482Used by:484 497 502 505 508 517 520 523 527 534 538
Symbol 484 MovieClipUses:481 483Used by:485
Symbol 485 MovieClipUses:480 484 467Used by:Timeline
Symbol 486 TextUses:26Used by:487
Symbol 487 MovieClipUses:486Used by:Timeline
Symbol 488 GraphicUsed by:489
Symbol 489 MovieClipUses:488Used by:Timeline
Symbol 490 GraphicUsed by:493
Symbol 491 GraphicUsed by:492
Symbol 492 MovieClipUses:491Used by:493
Symbol 493 MovieClipUses:462 467 490 492Used by:Timeline
Symbol 494 TextUses:26Used by:495
Symbol 495 MovieClipUses:494Used by:Timeline
Symbol 496 GraphicUsed by:497
Symbol 497 MovieClipUses:496 483Used by:498
Symbol 498 MovieClipUses:480 497 467Used by:Timeline
Symbol 499 TextUses:26Used by:500
Symbol 500 MovieClipUses:499Used by:Timeline
Symbol 501 GraphicUsed by:502
Symbol 502 MovieClipUses:501 483Used by:503
Symbol 503 MovieClipUses:480 502 467Used by:Timeline
Symbol 504 GraphicUsed by:505
Symbol 505 MovieClipUses:504 483Used by:506
Symbol 506 MovieClipUses:480 462 505 467Used by:Timeline
Symbol 507 GraphicUsed by:508
Symbol 508 MovieClipUses:507 483Used by:509
Symbol 509 MovieClipUses:480 462 467 508Used by:Timeline
Symbol 510 GraphicUsed by:511
Symbol 511 MovieClipUses:510Used by:513
Symbol 512 GraphicUsed by:513
Symbol 513 MovieClipUses:462 511 512 467Used by:Timeline
Symbol 514 TextUses:26Used by:515
Symbol 515 MovieClipUses:514Used by:Timeline
Symbol 516 GraphicUsed by:517
Symbol 517 MovieClipUses:516 483Used by:518
Symbol 518 MovieClipUses:462 480 517 467Used by:Timeline
Symbol 519 GraphicUsed by:520
Symbol 520 MovieClipUses:519 483Used by:521
Symbol 521 MovieClipUses:462 480 520 467Used by:Timeline
Symbol 522 GraphicUsed by:523
Symbol 523 MovieClipUses:522 483Used by:525
Symbol 524 GraphicUsed by:525
Symbol 525 MovieClipUses:462 523 480 467 524Used by:Timeline
Symbol 526 GraphicUsed by:527
Symbol 527 MovieClipUses:526 483Used by:530
Symbol 528 TextUses:26Used by:530
Symbol 529 TextUses:26Used by:530
Symbol 530 MovieClipUses:462 480 527 528 529 412 467Used by:Timeline
Symbol 531 TextUses:26Used by:532
Symbol 532 MovieClipUses:531Used by:Timeline
Symbol 533 GraphicUsed by:534
Symbol 534 MovieClipUses:533 483Used by:536
Symbol 535 TextUses:45Used by:536
Symbol 536 MovieClipUses:462 534 412 535 480 467Used by:Timeline
Symbol 537 GraphicUsed by:538
Symbol 538 MovieClipUses:537 483Used by:540
Symbol 539 TextUses:45Used by:540
Symbol 540 MovieClipUses:462 538 412 539 480 467Used by:Timeline
Symbol 541 GraphicUsed by:Timeline
Symbol 542 EditableTextUses:26Used by:Timeline
Symbol 543 TextUses:26Used by:Timeline
Symbol 544 GraphicUsed by:625
Symbol 545 GraphicUsed by:580
Symbol 546 GraphicUsed by:580
Symbol 547 GraphicUsed by:580
Symbol 548 GraphicUsed by:580
Symbol 549 GraphicUsed by:580
Symbol 550 GraphicUsed by:580
Symbol 551 GraphicUsed by:580
Symbol 552 GraphicUsed by:580
Symbol 553 GraphicUsed by:580
Symbol 554 GraphicUsed by:580
Symbol 555 GraphicUsed by:580
Symbol 556 GraphicUsed by:580
Symbol 557 GraphicUsed by:580
Symbol 558 GraphicUsed by:580
Symbol 559 GraphicUsed by:580
Symbol 560 GraphicUsed by:580
Symbol 561 GraphicUsed by:580
Symbol 562 GraphicUsed by:580
Symbol 563 GraphicUsed by:580
Symbol 564 GraphicUsed by:580
Symbol 565 GraphicUsed by:580
Symbol 566 GraphicUsed by:580
Symbol 567 GraphicUsed by:580
Symbol 568 GraphicUsed by:580
Symbol 569 GraphicUsed by:580
Symbol 570 GraphicUsed by:580
Symbol 571 GraphicUsed by:580
Symbol 572 GraphicUsed by:580
Symbol 573 GraphicUsed by:580
Symbol 574 GraphicUsed by:580
Symbol 575 GraphicUsed by:580
Symbol 576 GraphicUsed by:580
Symbol 577 GraphicUsed by:580
Symbol 578 GraphicUsed by:580
Symbol 579 GraphicUsed by:580
Symbol 580 MovieClipUses:545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579Used by:625
Symbol 581 TextUses:26Used by:624
Symbol 582 TextUses:26Used by:624
Symbol 583 TextUses:26Used by:624
Symbol 584 TextUses:26Used by:624
Symbol 585 TextUses:26Used by:624
Symbol 586 TextUses:26Used by:624
Symbol 587 TextUses:26Used by:624
Symbol 588 TextUses:26Used by:624
Symbol 589 TextUses:26Used by:624
Symbol 590 TextUses:26Used by:624
Symbol 591 TextUses:26Used by:624
Symbol 592 TextUses:26Used by:624
Symbol 593 TextUses:26Used by:624
Symbol 594 TextUses:26Used by:624
Symbol 595 TextUses:26Used by:624
Symbol 596 TextUses:26Used by:624
Symbol 597 TextUses:26Used by:624
Symbol 598 TextUses:26Used by:624
Symbol 599 TextUses:26Used by:624
Symbol 600 TextUses:26Used by:624
Symbol 601 TextUses:26Used by:624
Symbol 602 TextUses:26Used by:624
Symbol 603 TextUses:26Used by:624
Symbol 604 TextUses:26Used by:624
Symbol 605 TextUses:26Used by:624
Symbol 606 TextUses:26Used by:624
Symbol 607 TextUses:26Used by:624
Symbol 608 TextUses:26Used by:624
Symbol 609 TextUses:26Used by:624
Symbol 610 TextUses:26Used by:624
Symbol 611 TextUses:26Used by:624
Symbol 612 TextUses:26Used by:624
Symbol 613 TextUses:26Used by:624
Symbol 614 TextUses:26Used by:624
Symbol 615 TextUses:26Used by:624
Symbol 616 TextUses:26Used by:624
Symbol 617 TextUses:26Used by:624
Symbol 618 TextUses:26Used by:624
Symbol 619 TextUses:26Used by:624
Symbol 620 TextUses:26Used by:624
Symbol 621 TextUses:26Used by:624
Symbol 622 TextUses:26Used by:624
Symbol 623 TextUses:26Used by:624
Symbol 624 MovieClipUses:581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623Used by:625
Symbol 625 MovieClipUses:544 580 624Used by:Timeline

Instance Names

"theBackground"Frame 1Symbol 2 MovieClip
"loadingBar"Frame 1Symbol 5 MovieClip
"loadingText"Frame 1Symbol 7 EditableText
"bwhite"Frame 6Symbol 38 MovieClip
"cursor"Frame 6Symbol 66 MovieClip
"achpopup"Frame 6Symbol 110 MovieClip
"lvlbetabutton"Frame 7Symbol 116 Button
"lvl1button"Frame 7Symbol 121 Button
"lvl2button"Frame 7Symbol 126 Button
"lvl3button"Frame 7Symbol 131 Button
"lvl4button"Frame 7Symbol 134 Button
"lvl5button"Frame 7Symbol 137 Button
"lvl6button"Frame 7Symbol 141 Button
"lvl7button"Frame 7Symbol 145 Button
"lvl9button"Frame 7Symbol 151 Button
"lvl10button"Frame 7Symbol 156 Button
"lvl11button"Frame 7Symbol 160 Button
"lvl13button"Frame 7Symbol 163 Button
"lvl8button"Frame 7Symbol 166 Button
"lvl12button"Frame 7Symbol 168 Button
"lvl14button"Frame 7Symbol 172 Button
"regachievements"Frame 8Symbol 174 MovieClip
"lvl1button"Frame 9Symbol 176 Button
"lvl2button"Frame 9Symbol 177 Button
"lvl3button"Frame 9Symbol 178 Button
"lvl4button"Frame 9Symbol 179 Button
"lvl5button"Frame 9Symbol 180 Button
"lvl6button"Frame 9Symbol 181 Button
"lvl7button"Frame 9Symbol 182 Button
"lvl9button"Frame 9Symbol 183 Button
"lvl10button"Frame 9Symbol 184 Button
"lvl11button"Frame 9Symbol 185 Button
"lvl13button"Frame 9Symbol 186 Button
"lvl8button"Frame 9Symbol 187 Button
"lvl12button"Frame 9Symbol 188 Button
"lvl3box"Frame 9Symbol 191 MovieClip
"lvl4box"Frame 9Symbol 191 MovieClip
"lvl5box"Frame 9Symbol 191 MovieClip
"lvl6box"Frame 9Symbol 191 MovieClip
"lvl7box"Frame 9Symbol 191 MovieClip
"lvl13box"Frame 9Symbol 191 MovieClip
"lvl11box"Frame 9Symbol 191 MovieClip
"lvl10box"Frame 9Symbol 191 MovieClip
"lvl9box"Frame 9Symbol 191 MovieClip
"lvl8box"Frame 9Symbol 191 MovieClip
"lvl14button"Frame 9Symbol 192 Button
"lvl3button"Frame 10Symbol 194 Button
"lvl4button"Frame 10Symbol 195 Button
"lvl5button"Frame 10Symbol 196 Button
"lvl6button"Frame 10Symbol 197 Button
"lvl7button"Frame 10Symbol 198 Button
"lvl9button"Frame 10Symbol 199 Button
"lvl10button"Frame 10Symbol 200 Button
"lvl11button"Frame 10Symbol 201 Button
"lvl13button"Frame 10Symbol 202 Button
"lvl8button"Frame 10Symbol 203 Button
"lvl12button"Frame 10Symbol 204 Button
"lvl12box"Frame 10Symbol 191 MovieClip
"bestTrybox"Frame 10Symbol 205 EditableText
"linesToBeatbox"Frame 10Symbol 206 EditableText
"lvl14button"Frame 10Symbol 207 Button
"lvl14box"Frame 10Symbol 191 MovieClip
"statsArrow"Frame 12Symbol 236 MovieClip
"theBackground"Frame 15Symbol 238 MovieClip
"platforms"Frame 15Symbol 241 MovieClip
"man"Frame 15Symbol 414 MovieClip
"pauseScreen"Frame 15Symbol 443 MovieClip
"inverter"Frame 15Symbol 445 MovieClip
"linecolor"Frame 15Symbol 448 MovieClip
"raveLights"Frame 15Symbol 454 MovieClip
"fader"Frame 15Symbol 458 MovieClip
"theBackground"Frame 16Symbol 2 MovieClip
"platforms"Frame 16Symbol 471 MovieClip
"seeVars"Frame 16Symbol 476 MovieClip
"theBackground"Frame 17Symbol 238 MovieClip
"platforms"Frame 17Symbol 485 MovieClip
"theBackground"Frame 18Symbol 489 MovieClip
"platforms"Frame 18Symbol 493 MovieClip
"theBackground"Frame 19Symbol 2 MovieClip
"platforms"Frame 19Symbol 498 MovieClip
"theBackground"Frame 20Symbol 238 MovieClip
"platforms"Frame 20Symbol 503 MovieClip
"theBackground"Frame 21Symbol 489 MovieClip
"platforms"Frame 21Symbol 506 MovieClip
"theBackground"Frame 22Symbol 2 MovieClip
"platforms"Frame 22Symbol 509 MovieClip
"theBackground"Frame 23Symbol 238 MovieClip
"platforms"Frame 23Symbol 513 MovieClip
"theBackground"Frame 24Symbol 489 MovieClip
"platforms"Frame 24Symbol 518 MovieClip
"theBackground"Frame 25Symbol 2 MovieClip
"platforms"Frame 25Symbol 521 MovieClip
"theBackground"Frame 26Symbol 238 MovieClip
"platforms"Frame 26Symbol 525 MovieClip
"theBackground"Frame 27Symbol 489 MovieClip
"platforms"Frame 27Symbol 530 MovieClip
"theBackground"Frame 28Symbol 2 MovieClip
"platforms"Frame 28Symbol 536 MovieClip
"theBackground"Frame 29Symbol 238 MovieClip
"platforms"Frame 29Symbol 540 MovieClip
"overachiever"Symbol 110 MovieClip Frame 1Symbol 72 Button
"dontfearthereaper"Symbol 110 MovieClip Frame 1Symbol 77 Button
"over9000"Symbol 110 MovieClip Frame 1Symbol 81 Button
"ravemeister"Symbol 110 MovieClip Frame 1Symbol 85 Button
"soiherd"Symbol 110 MovieClip Frame 1Symbol 89 Button
"springless"Symbol 110 MovieClip Frame 1Symbol 93 Button
"artistach"Symbol 110 MovieClip Frame 1Symbol 97 Button
"stillalive"Symbol 110 MovieClip Frame 1Symbol 101 Button
"tehh4xcheatz"Symbol 110 MovieClip Frame 1Symbol 105 Button
"startthegame"Symbol 110 MovieClip Frame 1Symbol 109 Button
"overachiever"Symbol 174 MovieClip Frame 1Symbol 72 Button
"stillalive"Symbol 174 MovieClip Frame 1Symbol 101 Button
"springless"Symbol 174 MovieClip Frame 1Symbol 93 Button
"over9000"Symbol 174 MovieClip Frame 1Symbol 81 Button
"ravemeister"Symbol 174 MovieClip Frame 1Symbol 85 Button
"artistach"Symbol 174 MovieClip Frame 1Symbol 97 Button
"dontfearthereaper"Symbol 174 MovieClip Frame 1Symbol 77 Button
"soiherd"Symbol 174 MovieClip Frame 1Symbol 89 Button
"tehh4xcheatz"Symbol 174 MovieClip Frame 1Symbol 105 Button
"startthegame"Symbol 174 MovieClip Frame 1Symbol 109 Button
"plats"Symbol 241 MovieClip Frame 1Symbol 240 MovieClip
"inSprite"Symbol 409 MovieClip Frame 1Symbol 38 MovieClip
"bwhite"Symbol 409 MovieClip Frame 1Symbol 38 MovieClip
"outline"Symbol 409 MovieClip Frame 1Symbol 295 MovieClip
"inSprite"Symbol 409 MovieClip Frame 2Symbol 305 MovieClip
"bwhite"Symbol 409 MovieClip Frame 2Symbol 305 MovieClip
"outline"Symbol 409 MovieClip Frame 2Symbol 315 MovieClip
"inSprite"Symbol 409 MovieClip Frame 3Symbol 347 MovieClip
"bwhite"Symbol 409 MovieClip Frame 3Symbol 347 MovieClip
"outline"Symbol 409 MovieClip Frame 3Symbol 376 MovieClip
"inSprite"Symbol 409 MovieClip Frame 5Symbol 347 MovieClip
"inSprite"Symbol 409 MovieClip Frame 6Symbol 378 MovieClip
"inSprite"Symbol 409 MovieClip Frame 7Symbol 393 MovieClip
"bwhite"Symbol 409 MovieClip Frame 7Symbol 393 MovieClip
"mage"Symbol 414 MovieClip Frame 1Symbol 263 MovieClip
"mudkip"Symbol 414 MovieClip Frame 1Symbol 287 MovieClip
"sprite"Symbol 414 MovieClip Frame 1Symbol 409 MovieClip
"stickhitbox"Symbol 414 MovieClip Frame 1Symbol 411 MovieClip
"nodrawhitbox"Symbol 414 MovieClip Frame 1Symbol 413 MovieClip
"cheatinput"Symbol 425 MovieClip Frame 1Symbol 424 EditableText
"mudkipbutton"Symbol 441 MovieClip Frame 1Symbol 431 Button
"ravebutton"Symbol 441 MovieClip Frame 1Symbol 436 Button
"magebutton"Symbol 441 MovieClip Frame 1Symbol 438 Button
"alllvlsbutton"Symbol 441 MovieClip Frame 1Symbol 440 Button
"cheatmenu"Symbol 443 MovieClip Frame 1Symbol 441 MovieClip
"spikes"Symbol 471 MovieClip Frame 1Symbol 462 MovieClip
"door"Symbol 471 MovieClip Frame 1Symbol 467 MovieClip
"plats"Symbol 471 MovieClip Frame 1Symbol 469 MovieClip
"txt1"Symbol 476 MovieClip Frame 1Symbol 474 EditableText
"txt2"Symbol 476 MovieClip Frame 1Symbol 475 EditableText
"switchdoor1"Symbol 484 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor2"Symbol 484 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor3"Symbol 484 MovieClip Frame 1Symbol 483 MovieClip
"switch1"Symbol 485 MovieClip Frame 1Symbol 480 MovieClip
"switch2"Symbol 485 MovieClip Frame 1Symbol 480 MovieClip
"switch3"Symbol 485 MovieClip Frame 1Symbol 480 MovieClip
"plats"Symbol 485 MovieClip Frame 1Symbol 484 MovieClip
"door"Symbol 485 MovieClip Frame 1Symbol 467 MovieClip
"spikes"Symbol 493 MovieClip Frame 1Symbol 462 MovieClip
"door"Symbol 493 MovieClip Frame 1Symbol 467 MovieClip
"plats"Symbol 493 MovieClip Frame 1Symbol 492 MovieClip
"switchdoor1"Symbol 497 MovieClip Frame 1Symbol 483 MovieClip
"switch1"Symbol 498 MovieClip Frame 1Symbol 480 MovieClip
"plats"Symbol 498 MovieClip Frame 1Symbol 497 MovieClip
"door"Symbol 498 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor1"Symbol 502 MovieClip Frame 1Symbol 483 MovieClip
"switch1"Symbol 503 MovieClip Frame 1Symbol 480 MovieClip
"plats"Symbol 503 MovieClip Frame 1Symbol 502 MovieClip
"door"Symbol 503 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor1"Symbol 505 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor2"Symbol 505 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor3"Symbol 505 MovieClip Frame 1Symbol 483 MovieClip
"switch2"Symbol 506 MovieClip Frame 1Symbol 480 MovieClip
"switch1"Symbol 506 MovieClip Frame 1Symbol 480 MovieClip
"switch3"Symbol 506 MovieClip Frame 1Symbol 480 MovieClip
"spikes"Symbol 506 MovieClip Frame 1Symbol 462 MovieClip
"plats"Symbol 506 MovieClip Frame 1Symbol 505 MovieClip
"door"Symbol 506 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor1"Symbol 508 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor2"Symbol 508 MovieClip Frame 1Symbol 483 MovieClip
"switch1"Symbol 509 MovieClip Frame 1Symbol 480 MovieClip
"switch2"Symbol 509 MovieClip Frame 1Symbol 480 MovieClip
"spikes"Symbol 509 MovieClip Frame 1Symbol 462 MovieClip
"door"Symbol 509 MovieClip Frame 1Symbol 467 MovieClip
"plats"Symbol 509 MovieClip Frame 1Symbol 508 MovieClip
"spikes"Symbol 513 MovieClip Frame 1Symbol 462 MovieClip
"plats"Symbol 513 MovieClip Frame 1Symbol 511 MovieClip
"door"Symbol 513 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor1"Symbol 517 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor2"Symbol 517 MovieClip Frame 1Symbol 483 MovieClip
"spikes"Symbol 518 MovieClip Frame 1Symbol 462 MovieClip
"switch1"Symbol 518 MovieClip Frame 1Symbol 480 MovieClip
"switch2"Symbol 518 MovieClip Frame 1Symbol 480 MovieClip
"plats"Symbol 518 MovieClip Frame 1Symbol 517 MovieClip
"door"Symbol 518 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor3"Symbol 520 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor1"Symbol 520 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor2"Symbol 520 MovieClip Frame 1Symbol 483 MovieClip
"spikes"Symbol 521 MovieClip Frame 1Symbol 462 MovieClip
"switch3"Symbol 521 MovieClip Frame 1Symbol 480 MovieClip
"switch1"Symbol 521 MovieClip Frame 1Symbol 480 MovieClip
"switch2"Symbol 521 MovieClip Frame 1Symbol 480 MovieClip
"plats"Symbol 521 MovieClip Frame 1Symbol 520 MovieClip
"door"Symbol 521 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor3"Symbol 523 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor1"Symbol 523 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor2"Symbol 523 MovieClip Frame 1Symbol 483 MovieClip
"spikes"Symbol 525 MovieClip Frame 1Symbol 462 MovieClip
"plats"Symbol 525 MovieClip Frame 1Symbol 523 MovieClip
"switch1"Symbol 525 MovieClip Frame 1Symbol 480 MovieClip
"switch3"Symbol 525 MovieClip Frame 1Symbol 480 MovieClip
"switch2"Symbol 525 MovieClip Frame 1Symbol 480 MovieClip
"door"Symbol 525 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor2"Symbol 527 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor1"Symbol 527 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor3"Symbol 527 MovieClip Frame 1Symbol 483 MovieClip
"spikes"Symbol 530 MovieClip Frame 1Symbol 462 MovieClip
"spikes2"Symbol 530 MovieClip Frame 1Symbol 462 MovieClip
"switch1"Symbol 530 MovieClip Frame 1Symbol 480 MovieClip
"switch2"Symbol 530 MovieClip Frame 1Symbol 480 MovieClip
"switch3"Symbol 530 MovieClip Frame 1Symbol 480 MovieClip
"plats"Symbol 530 MovieClip Frame 1Symbol 527 MovieClip
"door"Symbol 530 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor2"Symbol 534 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor3"Symbol 534 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor1"Symbol 534 MovieClip Frame 1Symbol 483 MovieClip
"spikes"Symbol 536 MovieClip Frame 1Symbol 462 MovieClip
"plats"Symbol 536 MovieClip Frame 1Symbol 534 MovieClip
"switch2"Symbol 536 MovieClip Frame 1Symbol 480 MovieClip
"switch1"Symbol 536 MovieClip Frame 1Symbol 480 MovieClip
"switch3"Symbol 536 MovieClip Frame 1Symbol 480 MovieClip
"door"Symbol 536 MovieClip Frame 1Symbol 467 MovieClip
"switchdoor1"Symbol 538 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor3"Symbol 538 MovieClip Frame 1Symbol 483 MovieClip
"switchdoor2"Symbol 538 MovieClip Frame 1Symbol 483 MovieClip
"spikes"Symbol 540 MovieClip Frame 1Symbol 462 MovieClip
"spikes2"Symbol 540 MovieClip Frame 1Symbol 462 MovieClip
"spikes3"Symbol 540 MovieClip Frame 1Symbol 462 MovieClip
"spikes4"Symbol 540 MovieClip Frame 1Symbol 462 MovieClip
"plats"Symbol 540 MovieClip Frame 1Symbol 538 MovieClip
"switch3"Symbol 540 MovieClip Frame 1Symbol 480 MovieClip
"switch1"Symbol 540 MovieClip Frame 1Symbol 480 MovieClip
"switch2"Symbol 540 MovieClip Frame 1Symbol 480 MovieClip
"door"Symbol 540 MovieClip Frame 1Symbol 467 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 131 bytes "..$1$ZC$iDQntAwEjrRj7pomwEerN.."
ExportAssets (56)Timeline Frame 3Symbol 9 as "raveMusic"
ExportAssets (56)Timeline Frame 3Symbol 10 as "menuMusic"
ExportAssets (56)Timeline Frame 3Symbol 11 as "levelMusic"
ExportAssets (56)Timeline Frame 3Symbol 12 as "levelMusic3"
ExportAssets (56)Timeline Frame 3Symbol 13 as "levelMusic2"

Labels

"PreLoader"Frame 1
"intro"Frame 4
"menu"Frame 6
"chooselevel"Frame 7
"achievements"Frame 8
"NoJumps"Frame 9
"leastLines"Frame 10
"options"Frame 11
"stats"Frame 12
"beta"Frame 15
"lvl1"Frame 16
"lvl2"Frame 17
"lvl3"Frame 18
"lvl4"Frame 19
"lvl5"Frame 20
"lvl6"Frame 21
"lvl7"Frame 22
"lvl8"Frame 23
"lvl9"Frame 24
"lvl10"Frame 25
"lvl11"Frame 26
"lvl12"Frame 27
"lvl13"Frame 28
"lvl14"Frame 29
"end"Frame 33
"credits"Frame 35
"start"Symbol 110 MovieClip Frame 2
"stopped"Symbol 110 MovieClip Frame 65

Dynamic Text Variables

_root.gray_so.data.totalTimerSymbol 230 EditableText""
_root.gray_so.data.bestTimeSymbol 231 EditableText""
_root.gray_so.data.totalLinesSymbol 232 EditableText""
_root.gray_so.data.totalDeathsSymbol 233 EditableText""
_root.gray_so.data.totalJumpsSymbol 234 EditableText""
_root.cheatactivateSymbol 424 EditableText"Input Cheat"
_root.ySpeedSymbol 455 EditableText""
_root.yUpSymbol 456 EditableText""
_root.doubleJumpSymbol 457 EditableText""
_root.timerSymbol 542 EditableText""




http://swfchan.com/19/91419/info.shtml
Created: 27/3 -2019 22:50:05 Last modified: 27/3 -2019 22:50:05 Server time: 08/05 -2024 21:59:16