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

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

eVADE.swf

This is the info page for
Flash #110207

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


Text
Brought to you by:

99%

PLAY

100%

PLAY

function

ZETTA

JAQ

MUSIC

SOUND

QUALITY

Q

Q

eVADE

BEGIN

LEVEL SELECTION

PLAY MORE GAMES

BEGIN

LEVEL SELECTION

PLAY MORE GAMES

ZETTA FUNCTION '10  [v.2]

MUSIC - JAQ

FOR MORE AWESOME

FOLLOW US
ON TWITTER

OUR
FACEBOOK

MENU

MENU

FINAL RESULTS

0

Failures

CLEAR DATA

CLEAR DATA

CLEAR DATA

Are you sure?

NO

YES

Choose A Level

BACK

BACK

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

FAILURES:

0

TOTAL FAILURES:

0

CONGRATULATIONS!

It only took you

0

failures to complete the project!

TESTING ::

[Information]

CHAM
28

FAILURE  #

99

RETRY

SKIP LEVEL

MAIN MENU

Success

Completed

[TEST]

Test
#

99

::

[TEST HERE]

CHAM
03

CHAM
36

CHAM
24

SPACE

JUMP  -

MOVE  -

JUMP

DOUBLE JUMP

SUPER JUMP

WALL JUMP

DASH

AIR DASH

CRAWL

DIVE

HOVER

DIAGONAL SUPER JUMP

WAIT        SUPER JUMP

CHAM
37

.000

99

secs

READY

99

3

99

2

99

1

99

.041

99

.083

.125

.166

.208

.249

.290

.332

.374

.415

.457

.498

.540

.582

.623

.665

.706

.748

.790

.831

.873

.914

.956

.999

99

CHAM
31

CHAM
11

CHAM
25

CHAM
12

CHAM
33

CHAM
18

CHAM
38

CHAM
17

CHAM
20

CHAM
26

CHAM
40

CHAM
06

CHAM
35

CHAM
23

CHAM
39

CHAM
30

CHAM
32

CHAM
27

CHAM
34

CHAM
29

CHAM
21

CHAM
22

CHAM
15

99

99

99

99

99

99

99

CHAM
13

CHAM
14

CHAM
16

CHAM
19

CHAM
02

CHAM
04

CHAM
01

SPACE

JUMP

(IN AIR)   +

DOUBLE JUMP

(HOLD)

+

CRAWL

SUPER JUMP

(QUICK TAP)

DASH

(IN AIR)

AIR DASH

(AGAINST WALL)     +

WALL JUMP

DIVE

HOVER

DIAGONAL SUPER JUMP

SUCCESS

Welcome to our assessment chambers.

[Space]

We have been conducting experiments for
a secret project:

To create the most indestructible unit
in the universe.

And that project is you.

Please stand on the target to
demonstrate our results.

As you've probably noticed.
You are not indestructible.

Indestructibility is impossible.

So! We have come up with an alternative.

We will train you to become untouchable instead of
being indestructible.

You cannot be destroyed if nothing
can even touch you right?

We have equipped you with all you need to be able to
evade any danger that comes to you.

We will now give you this time to familiarize with
moving your body.

You've completed your introduction to the project.

You will now be put into our many assessment
chambers to evaluate your success.

Your failures will be recorded, and at the end you will
be notified with the total.

Don't worry, we can rebuild you infinitely. But it's better
to keep your failures at a minimum.

If the current challenge becomes too tough, feel no
shame in skipping that level.

Just make sure you come back to complete it
afterwards.

Now if you could exit, we can
proceed with the testing.

CHAM
05

CHAM
10

CHAM
09

CHAM
07

CHAM
08

CHAM
99

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 2
function playerHit() { if (_root.engAllowDeath) { _root.mainPlayer._visible = false; _root.attachMovie("sprDeath", "sprDeath", 99998); if (_root.mainPlayer._xscale < 0) { _root.sprDeath._xscale = -100; } else { _root.sprDeath._xscale = 100; } _root.sprDeath._yscale = 100; _root.sprDeath._x = _root.mainPlayer._x; _root.sprDeath._y = _root.mainPlayer._y; _root.mainPlayer._x = -100; _root.mainPlayer._y = -100; _root.totalDeaths++; _root.mainOverlay.swapDepths(999999); _root.mainOverlay.gotoAndPlay("death"); var _local2 = SharedObject.getLocal("Evade"); _local2.data.totalDeaths = _root.totalDeaths; _local2.flush(); _root.levelSpeedTimer.gotoAndStop(1); _root.engAllowDeath = false; _root.mainThought._visible = false; } } function clearBullets() { var _local3 = 0; var _local2 = 0; while (_local3 < 35) { _local2 = 0; while (_local2 <= 100) { _root[("bul" + _local3) + _local2].removeMovieClip(); _local2++; } _local3++; } } function respawnPlayer() { _root.mainPlayer._visible = true; _root.engReset = true; _root.engAllowDeath = true; _root.mainPlayer._x = xSpawn; _root.mainPlayer._y = ySpawn; if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.levelReaction.gotoAndStop(1); _root.engBounds.levelMovingPlats2.gotoAndPlay(50); } function playerHitIntro() { if (_root.engAllowDeath) { _root.mainPlayer._visible = false; _root.attachMovie("sprDeath", "sprDeath", 99998); if (_root.mainPlayer._xscale < 0) { _root.sprDeath._xscale = -100; } else { _root.sprDeath._xscale = 100; } _root.sprDeath._yscale = 100; _root.sprDeath._x = _root.mainPlayer._x; _root.sprDeath._y = _root.mainPlayer._y; _root.mainPlayer._x = -100; _root.mainPlayer._y = -100; _root.engAllowDeath = false; _root.levelSpeach.play(); _root.levelStopper = false; } } stop(); fxSelection = new Sound(); fxSelection.attachSound("fxSelection"); fxSelection2 = new Sound(); fxSelection2.attachSound("fxSelection2"); mscTitle = new Sound(); mscTitle.attachSound("mscTitle"); mscNormal = new Sound(); mscNormal.attachSound("mscNormal"); mscDance = new Sound(); mscDance.attachSound("mscDance"); mscHardcore = new Sound(); mscHardcore.attachSound("mscHardcore"); fxFart1 = new Sound(); fxFart1.attachSound("fxFart1"); fxFart2 = new Sound(); fxFart2.attachSound("fxFart2"); fxFart3 = new Sound(); fxFart3.attachSound("fxFart3"); _root.soundCurrent = "title"; _root.soundOn = true; _root.disLevelName = new Array(40); _root.disLevelName[0] = "Introduction"; _root.disLevelName[1] = "The Basics"; _root.disLevelName[2] = "Performance in a Tunnel"; _root.disLevelName[3] = "Vertical Boost Capabilities"; _root.disLevelName[4] = "Hop Timing"; _root.disLevelName[5] = "Competency with Simple Stairs"; _root.disLevelName[6] = "Precision Landing"; _root.disLevelName[7] = "General Speed"; _root.disLevelName[8] = "Ascension and Descension"; _root.disLevelName[9] = "Fear of Tight Spaces"; _root.disLevelName[10] = "Competency of Falling, Floating and Climbing"; _root.disLevelName[11] = "Infiltration Skills of a Laser-Guarded Fortress"; _root.disLevelName[12] = "Aerial Maneuvering Skills"; _root.disLevelName[13] = "Mobility in Deep Space"; _root.disLevelName[14] = "Patience"; _root.disLevelName[15] = "Dexterity within Circles of Danger"; _root.disLevelName[16] = "Potential Ability to Use an Underground Subway"; _root.disLevelName[17] = "Focused Speed"; _root.disLevelName[18] = "Ability to Read Patterns"; _root.disLevelName[19] = "Hurdle Jumping Skills"; _root.disLevelName[20] = "Paranoia"; _root.disLevelName[21] = "Operation within Malfunction"; _root.disLevelName[22] = "Performance in Low Visibility"; _root.disLevelName[23] = "Basic Reaction Speed"; _root.disLevelName[24] = "Simplistic Timing of Deporting from a Vehicle"; _root.disLevelName[25] = "Air Movement Control and Timing"; _root.disLevelName[26] = "Performance with Forced Hyperactivity"; _root.disLevelName[27] = "Accuracy of Diagonal Movement"; _root.disLevelName[28] = "High Speed"; _root.disLevelName[29] = "Visualization and Imagination"; _root.disLevelName[30] = "Ninja-Like Movements"; _root.disLevelName[31] = "Humor"; _root.disLevelName[32] = "Perseverance when Working Around the Clock"; _root.disLevelName[33] = "Ability to Deal with a Sticky Situation"; _root.disLevelName[34] = "Tolerance of Gradually Decreasing Temperature"; _root.disLevelName[35] = "Jumping Aim into a Precise Target"; _root.disLevelName[36] = "Concentration and Speed"; _root.disLevelName[37] = "Punctuality in Catching Moving Transportation"; _root.disLevelName[38] = "Capability to Cope with Depressing Weather"; _root.disLevelName[39] = "Determination to Conquer the Waterfall of Fire"; root_cm = new ContextMenu(); root_cm.hideBuiltInItems(); _root.menu = root_cm; var savefile = SharedObject.getLocal("Evade"); if (savefile.data.levelStatus == undefined) { savefile.data.levelStatus = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2); savefile.data.levelLocked = new Array(1, 1, 1, 1, 1); savefile.data.totalCompletedLevels = 0; savefile.data.totalDeaths = 0; savefile.data.totalDeathsFinal = 0; savefile.data.gameDone = false; savefile.flush(); _root.levelStatus = savefile.data.levelStatus; _root.levelLocked = savefile.data.levelLocked; _root.totalCompletedLevels = savefile.data.totalCompletedLevels; _root.totalDeaths = savefile.data.totalDeaths; _root.totalDeathsFinal = savefile.data.totalDeathsFinal; _root.gameDone = savefile.data.gameDone; } else { _root.levelStatus = savefile.data.levelStatus; _root.levelLocked = savefile.data.levelLocked; _root.totalCompletedLevels = savefile.data.totalCompletedLevels; _root.totalDeaths = savefile.data.totalDeaths; _root.totalDeathsFinal = savefile.data.totalDeathsFinal; _root.gameDone = savefile.data.gameDone; }
Frame 3
var chosenMusic = "title"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 161 MovieClip in Frame 3
onClipEvent (enterFrame) { if (_root.totalCompletedLevels == 40) { gotoAndStop (2); } }
Frame 4
var chosenMusic = "title"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 190 MovieClip "00" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "10" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "20" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "30" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "40" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "50" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "60" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "70" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "81" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "91" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "101" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "111" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "121" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "131" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "141" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "151" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "162" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "172" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "182" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "192" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "202" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "212" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "222" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "232" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "243" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "253" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "263" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "273" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "283" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "293" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "303" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "313" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "324" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "334" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "344" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "354" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "364" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "374" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "384" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 190 MovieClip "394" in Frame 4
onClipEvent (enterFrame) { if (_name.length == 2) { if (_root.levelStatus[_name.substr(0, 1)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } else if (_name.length == 3) { if (_root.levelStatus[_name.substr(0, 2)] == 2) { gotoAndStop (2); } else { gotoAndStop (1); } } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[0] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[1] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[2] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[3] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 232 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.levelLocked[4] == 0) { gotoAndStop (2); } else { gotoAndStop (1); } }
Instance of Symbol 237 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.totalCompletedLevels == 40) { if (_root.totalDeathsFinal == 0) { _root.totalDeathsFinal = _root.totalDeaths; var savefile = SharedObject.getLocal("Evade"); savefile.data.totalDeathsFinal = _root.totalDeathsFinal; savefile.flush(); } gotoAndStop (2); } }
Instance of Symbol 251 MovieClip in Frame 4
onClipEvent (enterFrame) { if (_root.totalCompletedLevels == 40) { if (!_root.gameDone) { _root.gameDone = true; var savefile = SharedObject.getLocal("Evade"); savefile.data.totalDeathsFinal = _root.totalDeathsFinal; savefile.data.gameDone = _root.gameDone; savefile.flush(); gotoAndStop (2); } } }
Instance of Symbol 255 MovieClip "disLevelDisplayer" in Frame 4
onClipEvent (enterFrame) { startDrag ("", true); }
Frame 5
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 28; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 5
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 5
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 5
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 5
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = 10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 5
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 385 MovieClip "mainOverlay" in Frame 5
onClipEvent (load) { this.swapDepths(999999); }
Instance of Symbol 392 MovieClip "miscEntrance" in Frame 5
onClipEvent (enterFrame) { this.swapDepths(999999); }
Instance of Symbol 367 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { _root.playerHit(); } }
Instance of Symbol 367 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { if (!_root.engSuccess) { _root.engSuccess = true; _root.engAllowDeath = false; _root.mainOverlay.swapDepths(999999); _root.mainOverlay.gotoAndPlay("success"); } } }
Frame 6
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 3; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "1" in Frame 6
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 40; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 6
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 40; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 7
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 36; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 402 MovieClip in Frame 7
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 7
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 7
onClipEvent (load) { var bulletTime = 24; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 7
onClipEvent (load) { var bulletTime = 24; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = -5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 7
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 7
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = -5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 8
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 24; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.levelThought = 1; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 8
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 413 MovieClip "2" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "1" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "0" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 0; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "5" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "4" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "3" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -25; var ySpeed = 0; var levelSwitch = 1; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "8" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -15; var ySpeed = 0; var levelSwitch = 2; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 2; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "7" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -15; var ySpeed = 0; var levelSwitch = 2; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 2; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "6" in Frame 8
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -15; var ySpeed = 0; var levelSwitch = 2; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.engReset) { var bulletTime = 0; var bulletSpawnTime = 1; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -9999; var xSpeed = -30; var ySpeed = 0; var levelSwitch = 2; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 367 MovieClip in Frame 8
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 1) { _root.mainThought.gotoAndStop("reaction"); _root.mainThought._visible = false; _root.mainThought._visible = true; _root.levelThought = 2; } } }
Instance of Symbol 436 MovieClip "mainThought" in Frame 8
onClipEvent (load) { var visualTime = 0; var visualMax = 140; _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (_visible) { if (visualTime <= -1) { visualTime--; } else { visualTime++; } if (visualTime >= visualMax) { visualTime = -1; } if (visualTime == 1) { _alpha = 10; } else if (visualTime == 3) { _alpha = 50; } else if (visualTime == 5) { _alpha = 70; } else if (visualTime == 8) { _alpha = 85; } else if (visualTime == 11) { _alpha = 95; } else if (visualTime == 14) { _alpha = 100; } _x = _root.mainPlayer._x; _y = _root.mainPlayer._y; if (visualTime == -1) { _alpha = 95; } else if (visualTime == -3) { _alpha = 85; } else if (visualTime == -5) { _alpha = 70; } else if (visualTime == -8) { _alpha = 50; } else if (visualTime == -11) { _alpha = 20; } else if (visualTime == -14) { _visible = false; } } if (!_visible) { _alpha = 0; var visualTime = 0; } }
Instance of Symbol 443 MovieClip "levelReaction" in Frame 8
onClipEvent (load) { _root.levelSwitches = new Array(0, 0, 0); _root.levelReactionTime = 0; } onClipEvent (enterFrame) { if (_root.engReset) { _root.levelSwitches = new Array(0, 0, 0); _root.levelReactionTime = 0; } }
Frame 9
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 37; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 402 MovieClip in Frame 9
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 9
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 9
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 9
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 9
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 452 MovieClip in Frame 9
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 9
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 9
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 491 MovieClip "levelSpeedTimer" in Frame 9
onClipEvent (load) { _root.levelSeconds = 6; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 6; gotoAndPlay (1); } } }
Frame 10
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 31; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 10
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 10
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 10
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 10
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 10
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 10
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 11
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 11; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.levelThought = 1; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 11
onClipEvent (load) { var bulletTime = 16; var bulletSpawnTime = 32; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 11
onClipEvent (load) { var bulletTime = 8; var bulletSpawnTime = 32; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 11
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 32; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 513 MovieClip in Frame 11
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 0; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 367 MovieClip in Frame 11
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 1) { _root.mainThought.gotoAndStop("hover"); _root.mainThought._visible = false; _root.mainThought._visible = true; _root.levelThought = 2; } } }
Instance of Symbol 436 MovieClip "mainThought" in Frame 11
onClipEvent (load) { var visualTime = 0; var visualMax = 140; _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (_visible) { if (visualTime <= -1) { visualTime--; } else { visualTime++; } if (visualTime >= visualMax) { visualTime = -1; } if (visualTime == 1) { _alpha = 10; } else if (visualTime == 3) { _alpha = 50; } else if (visualTime == 5) { _alpha = 70; } else if (visualTime == 8) { _alpha = 85; } else if (visualTime == 11) { _alpha = 95; } else if (visualTime == 14) { _alpha = 100; } _x = _root.mainPlayer._x; _y = _root.mainPlayer._y; if (visualTime == -1) { _alpha = 95; } else if (visualTime == -3) { _alpha = 85; } else if (visualTime == -5) { _alpha = 70; } else if (visualTime == -8) { _alpha = 50; } else if (visualTime == -11) { _alpha = 20; } else if (visualTime == -14) { _visible = false; } } if (!_visible) { _alpha = 0; var visualTime = 0; } }
Frame 12
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 25; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 12
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 12
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 12
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 12
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 12
onClipEvent (load) { var bulletTime = 10; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 12
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 13
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 12; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 413 MovieClip "0" in Frame 13
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser2"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = -15; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "2" in Frame 13
onClipEvent (load) { var bulletTime = 25; var bulletSpawnTime = 50; var bulletType = "PurpleLaser2"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = -15; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "3" in Frame 13
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 50; var bulletType = "PurpleLaser2"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = -15; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "1" in Frame 13
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 96; var bulletType = "PurpleLaser2"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 15; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 452 MovieClip in Frame 13
onClipEvent (load) { var spinSpeed = -1; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 14
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 33; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "2" in Frame 14
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 135; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = -8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 14
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 45; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = -8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 14
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 14
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 14
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 452 MovieClip in Frame 14
onClipEvent (load) { var spinSpeed = 0.5; var levelStart = 0; } onClipEvent (enterFrame) { if (_root.engReset) { _rotation = 0; levelStart = 0; } if (levelStart <= 52) { levelStart++; } else { _rotation = (_rotation + spinSpeed); } var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 15
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 18; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 15
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 42; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 15
onClipEvent (load) { var bulletTime = 21; var bulletSpawnTime = 42; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 15
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 491 MovieClip "levelSpeedTimer" in Frame 15
onClipEvent (load) { _root.levelSeconds = 12; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 12; gotoAndPlay (1); } } }
Frame 16
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 38; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 16
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 16
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 16
onClipEvent (load) { var bulletTime = 10; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 6; var delaySwitch = 7; var delayDuration = -24; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 16
onClipEvent (load) { var bulletTime = 14; var bulletSpawnTime = 50; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 3; var delaySwitch = 7; var delayDuration = -24; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "6" in Frame 16
onClipEvent (load) { var bulletTime = 22; var bulletSpawnTime = 45; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "7" in Frame 16
onClipEvent (load) { var bulletTime = 44; var bulletSpawnTime = 45; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "8" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 30; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -24; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "9" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "10" in Frame 16
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "11" in Frame 16
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 513 MovieClip in Frame 16
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 0; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 16
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 17
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 17; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 17
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 17
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 17
onClipEvent (load) { var bulletTime = 24; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 17
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 402 MovieClip in Frame 17
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 17
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 72; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 17
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 72; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = -5; var ySpeed = 5; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 18
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 20; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 18
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 18
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 18
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 19
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 26; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 19
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 19
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 413 MovieClip "0" in Frame 19
onClipEvent (load) { var bulletTime = 49; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "1" in Frame 19
onClipEvent (load) { var bulletTime = 42; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "2" in Frame 19
onClipEvent (load) { var bulletTime = 35; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "3" in Frame 19
onClipEvent (load) { var bulletTime = 28; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "4" in Frame 19
onClipEvent (load) { var bulletTime = 21; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "5" in Frame 19
onClipEvent (load) { var bulletTime = 14; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "6" in Frame 19
onClipEvent (load) { var bulletTime = 7; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "7" in Frame 19
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 56; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 402 MovieClip in Frame 19
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 20
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 40; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 20
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 513 MovieClip in Frame 20
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 1; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 271 MovieClip "0" in Frame 20
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 20
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 20
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 20
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 20
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 20
onClipEvent (load) { var bulletTime = 30; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "6" in Frame 20
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "7" in Frame 20
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "8" in Frame 20
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 21
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 6; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "2" in Frame 21
onClipEvent (load) { var bulletTime = 14; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = true; var delayCount = 6; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 21
onClipEvent (load) { var bulletTime = 7; var bulletSpawnTime = 42; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = true; var delayCount = 3; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 21
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 21
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 21
onClipEvent (load) { var bulletTime = 24; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 21
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 21
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 22
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 35; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 22
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 22
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; var defaultSpeedHori = 10; var freezetime = 0; var freezemax = 42; } onClipEvent (enterFrame) { freezetime++; if (freezetime == freezemax) { if (defaultSpeedHori != 0) { defaultSpeedHori--; freezetime = 0; } } var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; var defaultSpeedHori = 10; var freezetime = 0; var freezemax = 42; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 600 MovieClip in Frame 22
onClipEvent (load) { var total = 440; var time = 0; var per = 0; } onClipEvent (enterFrame) { if (time != total) { time++; per = int((time / total) * 100); this._alpha = per; } else if (time == total) { _root.playerHit(); total = 440; time = 0; per = 0; } if (_root.engReset) { total = 440; time = 0; per = 0; } }
Frame 23
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 23; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 23
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 23
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 23
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 23
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 36; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 23
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 120; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 23
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 609 MovieClip "levelLowVisibilty" in Frame 23
onClipEvent (enterFrame) { this.swapDepths(99999); }
Frame 24
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 39; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 413 MovieClip "0" in Frame 24
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "1" in Frame 24
onClipEvent (load) { var bulletTime = 3; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "2" in Frame 24
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "3" in Frame 24
onClipEvent (load) { var bulletTime = 13; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "4" in Frame 24
onClipEvent (load) { var bulletTime = 13; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "5" in Frame 24
onClipEvent (load) { var bulletTime = 22; var bulletSpawnTime = 30; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 1; var delaySwitch = 2; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "6" in Frame 24
onClipEvent (load) { var bulletTime = 11; var bulletSpawnTime = 48; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "7" in Frame 24
onClipEvent (load) { var bulletTime = 5; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "8" in Frame 24
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "9" in Frame 24
onClipEvent (load) { var bulletTime = 11; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "10" in Frame 24
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "11" in Frame 24
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "12" in Frame 24
onClipEvent (load) { var bulletTime = 18; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "13" in Frame 24
onClipEvent (load) { var bulletTime = 23; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "14" in Frame 24
onClipEvent (load) { var bulletTime = 20; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "15" in Frame 24
onClipEvent (load) { var bulletTime = 15; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "16" in Frame 24
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "17" in Frame 24
onClipEvent (load) { var bulletTime = 21; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "18" in Frame 24
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "19" in Frame 24
onClipEvent (load) { var bulletTime = 5; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "20" in Frame 24
onClipEvent (load) { var bulletTime = 3; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "21" in Frame 24
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "PurpleLaser"; var bulletRotation = 110; var delayFunction = false; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = -4; var ySpeed = 10; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Frame 25
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 30; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "4" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -60; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 25
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 0; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 25
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 8; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 452 MovieClip in Frame 25
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 25
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 513 MovieClip in Frame 25
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 0; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Frame 26
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 32; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 26
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; var fartTime = 0; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { var fartTime = 0; modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { if (fartTime == 0) { var randomFart = int((Math.random() * 3) + 1); if (randomFart == 1) { _root.fxFart1.start(0, 1); } else if (randomFart == 2) { _root.fxFart2.start(0, 1); } else if (randomFart == 3) { _root.fxFart3.start(0, 1); } fartTime = 1; } modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 27
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 27; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 27
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 413 MovieClip "0" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "1" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 4; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "2" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 2; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "3" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 2; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "4" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "5" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -10; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "6" in Frame 27
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 50; var bulletType = "PurpleLaser2"; var bulletRotation = 180; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -50; var xSpeed = 12; var ySpeed = 0; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 27
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 25; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 25; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 28
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 34; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 28
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 28
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 29
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 29; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 452 MovieClip in Frame 29
onClipEvent (load) { var spinSpeed = 4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 29
onClipEvent (load) { var spinSpeed = -4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 29
onClipEvent (load) { var spinSpeed = 4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 29
onClipEvent (load) { var spinSpeed = -4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 29
onClipEvent (load) { var spinSpeed = -3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 29
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 491 MovieClip "levelSpeedTimer" in Frame 29
onClipEvent (load) { _root.levelSeconds = 5; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 5; gotoAndPlay (1); } } }
Frame 30
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 21; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 6; var delaySwitch = 7; var delayDuration = -80; var xSpeed = 0; var ySpeed = 10; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "13" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -300; var xSpeed = 0; var ySpeed = 10; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "11" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 90; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -25; var xSpeed = 0; var ySpeed = -8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 9; var delaySwitch = 10; var delayDuration = -70; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -150; var xSpeed = -8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "8" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 6; var delaySwitch = 10; var delayDuration = -150; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "14" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -400; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "7" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -190; var xSpeed = 0; var ySpeed = 8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "10" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 1; var delaySwitch = 7; var delayDuration = -300; var xSpeed = 0; var ySpeed = 8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "12" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 90; var delayFunction = true; var delayCount = 1; var delaySwitch = 2; var delayDuration = -210; var xSpeed = 0; var ySpeed = -8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 90; var delayFunction = true; var delayCount = 0; var delaySwitch = 2; var delayDuration = -80; var xSpeed = 0; var ySpeed = -10; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 9; var delaySwitch = 10; var delayDuration = -220; var xSpeed = 0; var ySpeed = 8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "9" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 2; var delaySwitch = 3; var delayDuration = -220; var xSpeed = 0; var ySpeed = 8; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 513 MovieClip in Frame 30
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 1; _root.levelSwitches[1] = 0; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 271 MovieClip "4" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "6" in Frame 30
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -110; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 30
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 31
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 22; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 513 MovieClip in Frame 31
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 1; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 402 MovieClip in Frame 31
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 31
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 31
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 31
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 31
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -13; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 31
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dUp = Key.isDown(40); var dRight = Key.isDown(37); var dLeft = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dDown = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 32
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 15; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 413 MovieClip "0" in Frame 32
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "1" in Frame 32
onClipEvent (load) { var bulletTime = 3; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "4" in Frame 32
onClipEvent (load) { var bulletTime = 3; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "5" in Frame 32
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "2" in Frame 32
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 413 MovieClip "3" in Frame 32
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 9; var bulletType = "PurpleLaser2"; var bulletRotation = 90; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 0; var ySpeed = 15; var levelSwitch = 0; _root.levelSwitches = new Array(1, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 32
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 729 MovieClip "levelSpeedTimer" in Frame 32
onClipEvent (load) { _root.levelSeconds = 35; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 35; gotoAndPlay (1); } } }
Frame 33
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 13; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 413 MovieClip "2" in Frame 33
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "PurpleLaser2"; var bulletRotation = 0; var delayFunction = false; var delayCount = 0; var delaySwitch = 0; var delayDuration = 0; var xSpeed = 15; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i])) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 33
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 33
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 34
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 14; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 402 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 402 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["cir" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 34
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 34
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 0.75; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 0.75; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 35
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 16; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 35
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 35
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 36
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 19; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "0" in Frame 36
onClipEvent (load) { var bulletTime = 19; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 36
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 36
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 36
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 180; var xSpeed = 10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 36
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 10; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 37
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 2; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.levelThought = 1; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 513 MovieClip in Frame 37
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 271 MovieClip "0" in Frame 37
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 50; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 37
onClipEvent (load) { var bulletTime = 25; var bulletSpawnTime = 50; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 37
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 436 MovieClip "mainThought" in Frame 37
onClipEvent (load) { var visualTime = 0; var visualMax = 140; _alpha = 0; _visible = false; } onClipEvent (enterFrame) { if (_visible) { if (visualTime <= -1) { visualTime--; } else { visualTime++; } if (visualTime >= visualMax) { visualTime = -1; } if (visualTime == 1) { _alpha = 10; } else if (visualTime == 3) { _alpha = 50; } else if (visualTime == 5) { _alpha = 70; } else if (visualTime == 8) { _alpha = 85; } else if (visualTime == 11) { _alpha = 95; } else if (visualTime == 14) { _alpha = 100; } _x = _root.mainPlayer._x; _y = _root.mainPlayer._y; if (visualTime == -1) { _alpha = 95; } else if (visualTime == -3) { _alpha = 85; } else if (visualTime == -5) { _alpha = 70; } else if (visualTime == -8) { _alpha = 50; } else if (visualTime == -11) { _alpha = 20; } else if (visualTime == -14) { _visible = false; } } if (!_visible) { _alpha = 0; var visualTime = 0; } }
Instance of Symbol 367 MovieClip in Frame 37
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 1) { _root.mainThought.gotoAndStop("crawl"); _root.mainThought._visible = false; _root.mainThought._visible = true; _root.levelThought = 2; } } }
Instance of Symbol 367 MovieClip in Frame 37
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 2) { _root.mainThought.gotoAndStop("walljump"); _root.mainThought._visible = false; _root.levelThought = 3; } else if (_root.levelThought == 3) { _root.mainThought.gotoAndStop("walljump"); _root.mainThought._visible = true; _root.levelThought = 4; } } }
Frame 38
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 4; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.levelThought = 1; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 8; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 38
onClipEvent (load) { var bulletTime = 2; var bulletSpawnTime = 8; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 38
onClipEvent (load) { var bulletTime = 4; var bulletSpawnTime = 8; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 6; var delayDuration = -8; var xSpeed = -10; var ySpeed = 0; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 14; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 14; var bulletType = "RedFire"; var bulletRotation = 180; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = 8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 38
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "7" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 14; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "6" in Frame 38
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 14; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 7; var delayDuration = -10; var xSpeed = -8; var ySpeed = 0; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 367 MovieClip in Frame 38
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 1) { _root.mainThought.gotoAndStop("diasprjump"); _root.mainThought._visible = false; _root.mainThought._visible = true; _root.levelThought = 2; } } }
Instance of Symbol 367 MovieClip in Frame 38
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer)) { if (_root.levelThought == 2) { _root.mainThought.gotoAndStop("dive"); _root.mainThought._visible = false; _root.levelThought = 3; } else if (_root.levelThought == 3) { _root.mainThought.gotoAndStop("dive"); _root.mainThought._visible = true; _root.levelThought = 4; } } }
Frame 39
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 1; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; _root.engAllowMovement = false; _root.mainPlayer._visible = false; _root.levelStopper = true; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 810 MovieClip "levelBlockVis" in Frame 39
onClipEvent (load) { _visible = false; }
Instance of Symbol 271 MovieClip "0" in Frame 39
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 0; var delayFunction = true; var delayCount = 0; var delaySwitch = 1; var delayDuration = -999; var xSpeed = -12; var ySpeed = 0; var levelSwitch = 0; _root.levelSwitches = new Array(0, 0); _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[0] == 0) { _visible = false; } else if (_root.levelSwitches[0] == 3) { _visible = false; } else { _visible = true; } if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHitIntro(); _root.levelSwitches[0] = 2; } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 39
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; _root.engAllowMovement = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { _root.tutorialAllow = true; _root.tutorialDid = "stand"; modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; if (_root.tutorialAllow) { _root.tutorialDid = "sprjump"; if (dLeft || (dRight)) { _root.tutorialDid = "diasprjump"; } } } else { speedJump = speedInitial; if (_root.tutorialAllow) { _root.tutorialDid = "jump"; } } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; if (_root.tutorialAllow) { _root.tutorialDid = "walljump"; } } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; if (_root.tutorialAllow) { _root.tutorialDid = "walljump"; } } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; if (_root.tutorialAllow) { _root.tutorialDid = "dash"; if (modeJump || (modeFall)) { _root.tutorialDid = "airdash"; } } } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; if (_root.tutorialAllow) { _root.tutorialDid = "dash"; if (modeJump || (modeFall)) { _root.tutorialDid = "airdash"; } } } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; if (_root.tutorialAllow) { _root.tutorialDid = "dbljump"; } } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); if (_root.tutorialAllow) { _root.tutorialDid = "dive"; } } else if (modeVisual == "hover") { gotoAndStop ("hover"); if (_root.tutorialAllow) { _root.tutorialDid = "hover"; } } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 367 MovieClip in Frame 39
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { if (_root.levelStopper) { if (_root.levelSwitches[0] == 0) { _root.engAllowMovement = false; _root.levelTutTur.play(); _root.mainThought._visible = false; if (_root.levelSpeach._currentframe == 7) { _root.levelSpeach.nextFrame(); } } } } }
Frame 40
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 5; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 452 MovieClip in Frame 40
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 40
onClipEvent (load) { var spinSpeed = -2; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 452 MovieClip in Frame 40
onClipEvent (load) { var spinSpeed = -2; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 40
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 266 MovieClip in Frame 40
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 40
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 40
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 40
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 40
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Instance of Symbol 367 MovieClip in Frame 40
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { if (!_root.engSuccess) { _root.engSuccess = true; _root.engAllowDeath = false; _root.mainOverlay.swapDepths(999999); _root.mainOverlay.gotoAndPlay("success"); } } }
Frame 41
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 10; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 452 MovieClip in Frame 41
onClipEvent (load) { var spinSpeed = -4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 41
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 58; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 6; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 41
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 58; var bulletType = "RedFire"; var bulletRotation = 270; var xSpeed = 0; var ySpeed = 6; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 41
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 3; var delayDuration = -13; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 41
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = true; var delayCount = 0; var delaySwitch = 3; var delayDuration = -13; var xSpeed = 0; var ySpeed = 5; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 41
onClipEvent (load) { var bulletTime = 36; var bulletSpawnTime = 72; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -8; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 513 MovieClip in Frame 41
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Frame 42
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 9; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "hardcore"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 271 MovieClip "1" in Frame 42
onClipEvent (load) { var bulletTime = 5; var bulletSpawnTime = 8; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = true; var delayCount = 0; var delaySwitch = 3; var delayDuration = -48; var xSpeed = -9; var ySpeed = 9; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 42
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -13; var xSpeed = 9; var ySpeed = 9; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 513 MovieClip in Frame 42
onClipEvent (load) { _root.levelSwitches = new Array(1, 0); _root.levelCheckPoint = new Array(); _root.levelCheckPoint[0] = 0; var checkpointNum = 0; } onClipEvent (enterFrame) { if (_root.levelCheckPoint[checkpointNum] == 1) { gotoAndStop (2); } else { gotoAndStop (1); } if (_root.mainPlayer.hitTest(this)) { _root.levelCheckPoint[checkpointNum] = 1; _root.levelSwitches[0] = 0; _root.levelSwitches[1] = 1; _root.xSpawn = _x; _root.ySpawn = _y - 20; } }
Instance of Symbol 271 MovieClip "3" in Frame 42
onClipEvent (load) { var bulletTime = 8; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 42
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 10; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = true; var delayCount = 0; var delaySwitch = 5; var delayDuration = -11; var xSpeed = 5; var ySpeed = 5; var levelSwitch = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "4" in Frame 42
onClipEvent (load) { var bulletTime = 5; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -13; var xSpeed = 9; var ySpeed = 9; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "5" in Frame 42
onClipEvent (load) { var bulletTime = 10; var bulletSpawnTime = 12; var bulletType = "RedFire"; var bulletRotation = 225; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -13; var xSpeed = 9; var ySpeed = 9; var levelSwitch = 1; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { if (_root.levelSwitches[levelSwitch] == 1) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 452 MovieClip in Frame 42
onClipEvent (load) { var spinSpeed = 4; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Frame 43
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 7; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "normal"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 452 MovieClip in Frame 43
onClipEvent (load) { var spinSpeed = 3; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Frame 43
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 43
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 315; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = -9; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 43
onClipEvent (load) { var bulletTime = 0; var bulletSpawnTime = 24; var bulletType = "RedFire"; var bulletRotation = 270; var delayFunction = false; var delayCount = 0; var delaySwitch = 7; var delayDuration = -14; var xSpeed = 0; var ySpeed = 9; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (delayCount >= 0) { if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; if (delayFunction) { delayCount++; if (delayCount == delaySwitch) { delayCount = -1; } } gotoAndPlay (2); break; } i++; } } } else if (delayCount <= -1) { delayCount--; if (delayCount <= delayDuration) { delayCount = 0; bulletTime = 0; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Frame 44
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 8; _root.engAllowDeath = true; _root.engReset = false; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "dance"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 452 MovieClip in Frame 44
onClipEvent (load) { var spinSpeed = 8; } onClipEvent (enterFrame) { _rotation = (_rotation + spinSpeed); var i = 0; while (i <= 4) { if (this["bar" + i].hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _root.playerHit(); } i++; } }
Instance of Symbol 271 MovieClip "1" in Frame 44
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "0" in Frame 44
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 0; var xSpeed = -10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "3" in Frame 44
onClipEvent (load) { var bulletTime = 12; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 180; var xSpeed = 10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 271 MovieClip "2" in Frame 44
onClipEvent (load) { var bulletTime = 6; var bulletSpawnTime = 48; var bulletType = "RedFire"; var bulletRotation = 180; var xSpeed = 10; var ySpeed = 0; _root["bulletList" + _name] = new Array(""); } onClipEvent (enterFrame) { bulletTime++; if (bulletTime == bulletSpawnTime) { var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == "") { var newDepth = ((100 * _name) + i); _root.attachMovie("bul" + bulletType, ("bul" + _name) + i, newDepth); _root[("bul" + _name) + i]._x = _x; _root[("bul" + _name) + i]._y = _y; _root[("bul" + _name) + i]._rotation = bulletRotation; _root["bulletList" + _name][i] = ("bul" + _name) + i; _root["bulletList" + _name].push(""); bulletTime = 0; gotoAndPlay (2); break; } i++; } } var i = 0; while (i <= _root["bulletList" + _name].length) { if (_root["bulletList" + _name][i] == (("bul" + _name) + i)) { _root[("bul" + _name) + i]._x = _root[("bul" + _name) + i]._x + xSpeed; _root[("bul" + _name) + i]._y = _root[("bul" + _name) + i]._y + ySpeed; if ((((_root[("bul" + _name) + i]._x > Stage.width) || (_root[("bul" + _name) + i]._x < 0)) || (_root[("bul" + _name) + i]._y < 0)) || (_root[("bul" + _name) + i]._y > Stage.height)) { _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.engBounds.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, true)) { var lastDepth = _root[("bul" + _name) + i].getDepth(); var lastx = _root[("bul" + _name) + i]._x; var lasty = _root[("bul" + _name) + i]._y; _root.attachMovie("splsh" + bulletType, ("splsh" + _name) + i, lastDepth); _root[("splsh" + _name) + i]._x = lastx; _root[("splsh" + _name) + i]._y = lasty; _root[("splsh" + _name) + i]._rotation = bulletRotation; _root[("bul" + _name) + i].removeMovieClip(); _root["bulletList" + _name][i] = ""; } if (_root.mainPlayer.hitTest(_root[("bul" + _name) + i]._x, _root[("bul" + _name) + i]._y, false)) { _root.playerHit(); } } i++; } }
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 44
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; _root.engAllowMovement = true; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engAllowMovement) { if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } } else { gotoAndStop (1); _xscale = scaledTo; } }
Instance of Symbol 491 MovieClip "levelSpeedTimer" in Frame 44
onClipEvent (load) { _root.levelSeconds = 9; _root.engAllowMovement = false; _root.engReset = false; } onClipEvent (enterFrame) { if (_currentframe == 1) { if (_root.engReset) { _root.levelSeconds = 9; gotoAndPlay (1); } } }
Frame 45
_root.xSpawn = _root.mainPlayer._x; _root.ySpawn = _root.mainPlayer._y; _root.engChamNum = 99; _root.engAllowDeath = true; _root.respawnPlayer(); _root.engSuccess = false; var chosenMusic = "title"; if (_root.soundOn) { if (_root.soundCurrent != chosenMusic) { stopAllSounds(); if (chosenMusic == "title") { _root.mscTitle.start(0, 100); } else if (chosenMusic == "normal") { _root.mscNormal.start(0, 100); } else if (chosenMusic == "hardcore") { _root.mscHardcore.start(0, 100); } else if (chosenMusic == "dance") { _root.mscDance.start(0, 100); } _root.soundCurrent = chosenMusic; } } _root.soundCurrent = chosenMusic;
Instance of Symbol 355 MovieClip "mainPlayer" in Frame 45
onClipEvent (load) { var engBounds = _root.engBounds; _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; } onClipEvent (enterFrame) { var dUpLeft = (Key.isDown(38) && (Key.isDown(37))); var dUpRight = (Key.isDown(38) && (Key.isDown(39))); var dDownLeft = (Key.isDown(40) && (Key.isDown(37))); var dDownRight = (Key.isDown(40) && (Key.isDown(39))); var dDown = Key.isDown(40); var dLeft = Key.isDown(37); var dRight = Key.isDown(39); var dZ = Key.isDown(90); var dX = Key.isDown(88); var dUp = Key.isDown(32); var dUp2 = Key.isDown(38); if (_root.engReset) { _root.engCrawl = false; var modeVisual = "stand"; var modeExInsert = 0; var modeFall = true; var modeJump = false; var modeStand = false; var modeCrouch = false; var modeSuperJump = false; var modeHover = false; var modeDive = false; var modeWallJump = 0; var easeVert = 0; var easeHori = 0; var speedHori = 10; var speedInitial = 15; var speedCrouchIni = 25; var speedIncVelocity = 2; var speedDrop = 3; var speedDropReset = speedDrop; var speedJump = 0; var speedWallDrop = 4; var speedCrouch = 3; var speedHover = 3; var speedRoll = 17; var attHeight = Math.floor(_height); var attHalfHeight = Math.floor(_height / 2); var attHalfWidth = Math.floor(_width / 2); var attQuarterWidth = Math.floor(_width / 4); var attHeightDefault = attHeight; var attHalfHeightDefault = attHalfHeight; var attHeightCrawl = 20; var attHalfHeightCrawl = 10; var ktimeLeft = 0; var ktimeRight = 0; var ktimeUp = 0; var ktimeUp2 = 0; var ktimeDown = 0; var ktimeDown2 = 0; var ktimeWallJump = 0; var ktimeDRight = 0; var ktimeDRight2 = 0; var ktimeDLeft = 0; var ktimeDLeft2 = 0; var ktimeThrust = 0; var ktimeThrust2 = 0; var ktimeHover = -1; var ktimeDive = 0; var thrustPlusX = 0; var thrustPlusY = 0; var hoverDuration = 0; var hoverDurationMax = 24; var scaledTo = 100; var crawlZone = false; _root.engReset = false; } if (dRight) { _xscale = scaledTo; if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeRight = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 1; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 2; } else if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -1; } else { modeWallJump = 0; } ktimeRight = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x + speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHalfHeight, true)) { _x = (_x+1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest((_x + attHalfWidth) + 1, _y - attHeight, true)) { _x = (_x+1); } easeHori = 0; } } if (dLeft) { _xscale = (-scaledTo); if (modeVisual != "dbljump") { if (modeVisual != "dash") { if (modeVisual != "dashstop") { if (modeVisual != "hover") { if (modeVisual != "dive") { modeVisual = "run"; } } } } } _root.visGetUpDone = true; ktimeLeft = -1; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; } else if (modeHover) { speedHori = speedHover; } else { speedHori = defaultSpeedHori; } } else if (modeHover) { speedHori = speedHover; } else if (crawlZone) { speedHori = speedCrouch; } else if (modeVisual == "dive") { speedHori = speedRoll; } else { speedHori = defaultSpeedHori; modeCrouch = false; } if (easeHori == 0) { if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 2; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true)) { if (!modeStand) { modeVisual = "walldrag"; } if (((modeWallJump == 0) && (!modeStand)) && (!dDown)) { modeWallJump = -2; } else { modeWallJump = 0; } ktimeLeft = 0; easeHori = 3; } else { modeWallJump = 0; _x = (_x - speedHori); } } if (easeHori == 1) { while (!engBounds.hitTest(_x - attHalfWidth, _y, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 2) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHalfHeight, true)) { _x = (_x-1); } easeHori = 0; } if (easeHori == 3) { while (!engBounds.hitTest(_x - attHalfWidth, _y - attHeight, true)) { _x = (_x-1); } easeHori = 0; } } if (_root.engCrawl) { attHeight = attHeightCrawl; attHalfHeight = attHalfHeightCrawl; if (_currentframe != 2) { _root.engCrawl = false; } if (engBounds.hitTest(_x, _y - attHeightDefault, true)) { crawlZone = true; } else { crawlZone = false; } } else { attHeight = attHeightDefault; attHalfHeight = attHalfHeightDefault; crawlZone = false; } if (modeHover) { if (!dUp2) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } if (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } else if (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true)) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } hoverDuration++; if (hoverDuration >= hoverDurationMax) { modeHover = false; modeFall = true; speedDrop = 2; ktimeHover = -1; } } else { ktimeThrust2 = 0; hoverDuration = 0; } if (modeFall) { if (modeVisual != "walldrag") { if (modeVisual != "dash") { if (modeVisual != "dive") { modeVisual = "fall"; } } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attQuarterWidth, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 1; } else if (engBounds.hitTest((_x - attQuarterWidth) + 1, _y + speedDrop, true)) { ktimeUp = 0; easeVert = 2; } else { _y = (_y + speedDrop); speedDrop = speedDrop + speedIncVelocity; } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) { _y = (_y+1); } speedDrop = speedDropReset; easeVert = 0; modeFall = false; } } if (modeJump) { if (modeVisual != "dbljump") { if (modeVisual != "dash") { modeVisual = "jump"; } } if (dUp2) { if (ktimeHover == 0) { modeVisual = "hover"; modeHover = true; modeJump = false; modeFall = false; ktimeThrust2 = 1; ktimeUp = 0; } } if (!modeDive) { if ((ktimeDown != -1) && ((!ktimeDown) >= 1)) { if (!dDown) { ktimeDown = -2; } } if (ktimeDown == -2) { if (dDown) { ktimeDown = -1; ktimeDown2 = 0; } } } if (easeVert == 0) { if (engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) { easeVert = 1; ktimeUp = 0; } else if (engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true)) { easeVert = 2; ktimeUp = 0; } else { if (speedJump > 0) { _y = (_y - speedJump); speedJump = speedJump - speedIncVelocity; } if (speedJump <= 0) { modeFall = true; modeJump = false; speedDrop = 0; if (modeSuperJump) { ktimeThrust = 1; thrustPlusY = -15; if (dLeft) { thrustPlusX = 15; } else if (dRight) { thrustPlusX = -15; } } } } if (easeVert == 1) { while (!engBounds.hitTest(_x + attHalfWidth, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } if (easeVert == 2) { while (!engBounds.hitTest((_x - attHalfWidth) + 1, _y - attHeight, true)) { _y = (_y-1); } easeVert = 0; modeFall = true; modeJump = false; speedDrop = speedJump; } } } if (((!modeFall) && (!modeJump)) && (!modeHover)) { modeStand = true; modeSuperJump = false; modeDive = false; modeWallJump = 0; ktimeHover = 0; ktimeDown = 0; ktimeDown2 = 0; if (defaultSpeedHori == undefined) { defaultSpeedHori = speedHori; } if (crawlZone) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else if (dDown) { if (modeStand) { speedHori = speedCrouch; modeCrouch = true; modeVisual = "crouch"; } else { speedHori = defaultSpeedHori; } } else { speedHori = defaultSpeedHori; modeCrouch = false; if ((!dLeft) && (!dRight)) { if (modeVisual == "fall") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dive") { modeVisual = "getup"; _root.visGetUpDone = false; gotoAndStop ("getup"); modeExInsert = 1; } else if (modeVisual == "dash") { modeVisual = "dashstop"; _root.visDashStopDone = false; gotoAndStop ("dashstop"); modeExInsert = 2; } if (modeExInsert == 1) { if (_root.visGetUpDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else if (modeExInsert == 2) { if (_root.visDashStopDone) { modeVisual = "stand"; ktimeDLeft2 = 0; ktimeDRight2 = 0; modeExInsert = 0; } } else { modeVisual = "stand"; } } } if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } if (ktimeUp2 == 0) { if (!crawlZone) { if (dUp) { modeStand = false; ktimeUp = -1; ktimeWallJump = -1; ktimeUp2 = -1; if (modeCrouch) { speedJump = speedCrouchIni; modeSuperJump = true; ktimeUp = 0; ktimeThrust = 1; } else { speedJump = speedInitial; } modeJump = true; } } } while (engBounds.hitTest(_x, _y, true)) { _y = (_y-1); } if ((!engBounds.hitTest((_x - attQuarterWidth) + 1, _y + 1, true)) && (!engBounds.hitTest(_x + attQuarterWidth, _y + 1, true))) { modeFall = true; speedDrop = speedDropReset; ktimeUp = -1; } } if (defaultIncVelocity == undefined) { defaultIncVelocity = speedIncVelocity; } if (modeFall) { if (modeWallJump <= -1) { speedDrop = speedWallDrop; speedIncVelocity = 1; ktimeThrust = 0; } } else { speedIncVelocity = defaultIncVelocity; } if (modeWallJump == 0) { speedIncVelocity = defaultIncVelocity; } if (modeWallJump <= -1) { if ((!dLeft) && (!dRight)) { modeVisual = "fall"; modeWallJump = 0; } } if (ktimeWallJump == 0) { if ((!engBounds.hitTest(_x + attHalfWidth, (_y - attHeight) - speedJump, true)) || (!engBounds.hitTest((_x - attHalfWidth) + 1, (_y - attHeight) - speedJump, true))) { if (modeWallJump == -1) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeLeft = 1; ktimeWallJump = -1; } } else if (modeWallJump == -2) { if (dUp) { modeStand = false; ktimeUp = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeRight = 1; ktimeWallJump = -1; } } } } if (ktimeUp2 == -1) { if (!dUp) { ktimeUp2 = 0; } } if (ktimeDown == -1) { if (dDown) { ktimeDown = 1; } } if (ktimeRight == -1) { if (!dRight) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } else { ktimeRight = 1; ktimeDRight = 1; } } } if (ktimeLeft == -1) { if (!dLeft) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } else { ktimeLeft = 1; ktimeDLeft = 1; } } } if (ktimeUp == -1) { if (!dUp) { ktimeUp = 1; } } if (ktimeWallJump == -1) { if (!dUp) { ktimeWallJump = 0; } } if (ktimeDown > 0) { ktimeDown++; if (!dDown) { ktimeDown2 = -1; } } if (ktimeDown == 7) { ktimeDown = 0; ktimeDown2 = 0; } if (ktimeDown2 == -1) { if (dDown) { modeVisual = "dive"; modeDive = true; ktimeThrust = 1; ktimeDive = 1; } } if (ktimeDive > 0) { ktimeDive++; if (ktimeDive == 2) { speedDrop = speedDrop + 10; } else if (ktimeDive == 3) { speedDrop = speedDrop + 5; } else if (ktimeDive == 4) { speedDrop = speedDrop + 2; } } if (ktimeRight > 0) { if ((engBounds.hitTest((_x + attHalfWidth) + speedHori, _y, true) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x + attHalfWidth) + speedHori, _y - attHeight, true))) { ktimeRight = 0; } ktimeRight++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeRight == 2) { _x = (_x + 10); } else if (ktimeRight == 3) { _x = (_x + 5); } else if (ktimeRight == 4) { _x = (_x + 3); } else if (ktimeRight == 5) { _x = (_x + 2); } else if (ktimeRight == 6) { _x = (_x + 1); } else if (ktimeRight == 7) { ktimeRight = 0; } } } } if (ktimeLeft > 0) { if ((engBounds.hitTest((_x - attHalfWidth) - speedHori, _y, true) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHalfHeight, true))) || (engBounds.hitTest((_x - attHalfWidth) - speedHori, _y - attHeight, true))) { ktimeLeft = 0; } ktimeLeft++; } if (!dDown) { if (!modeHover) { if (!crawlZone) { if (ktimeLeft == 2) { _x = (_x - 10); } else if (ktimeLeft == 3) { _x = (_x - 5); } else if (ktimeLeft == 4) { _x = (_x - 3); } else if (ktimeLeft == 5) { _x = (_x - 2); } else if (ktimeLeft == 6) { _x = (_x - 1); } else if (ktimeLeft == 7) { ktimeLeft = 0; } } } } if (ktimeDRight > 0) { ktimeDRight++; } if (ktimeDRight >= 1) { if (dRight) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDRight2 = 1; ktimeThrust = 1; thrustPlusX = -25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDRight == 4) { ktimeDRight = 0; } if (ktimeDRight2 > 0) { ktimeDRight2++; } if (ktimeDRight2 == 1) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 10, _y, true)) { _x = (_x + 10); } } else if (ktimeDRight2 == 2) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 25, _y, true)) { _x = (_x + 25); } } else if (ktimeDRight2 == 3) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 5, _y, true)) { _x = (_x + 5); } } else if (ktimeDRight2 == 5) { if (!engBounds.hitTest(((_x + attHalfWidth) + speedHori) + 2, _y, true)) { _x = (_x + 2); } } else if (ktimeDRight2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDRight2 = 0; } if (ktimeDLeft > 0) { ktimeDLeft++; } if (ktimeDLeft >= 1) { if (dLeft) { if (!modeHover) { if (!modeDive) { if (!crawlZone) { ktimeDLeft2 = 1; ktimeThrust = 1; thrustPlusX = 25; thrustPlusY = -10; modeVisual = "dash"; } } } } } if (ktimeDLeft == 4) { ktimeDLeft = 0; } if (ktimeDLeft2 > 0) { ktimeDLeft2++; } if (ktimeDLeft2 == 1) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 10, _y, true)) { _x = (_x - 10); } } else if (ktimeDLeft2 == 2) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 25, _y, true)) { _x = (_x - 25); } } else if (ktimeDLeft2 == 3) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 5, _y, true)) { _x = (_x - 5); } } else if (ktimeDLeft2 == 5) { if (!engBounds.hitTest(((_x - attHalfWidth) - speedHori) - 2, _y, true)) { _x = (_x - 2); } } else if (ktimeDLeft2 == 9) { if (modeVisual != "stand") { modeExInsert = 0; if (modeVisual != "hover") { if (!crawlZone) { modeVisual = "run"; } } } ktimeDLeft2 = 0; } if (ktimeUp == 1) { if (dUp) { modeVisual = "dbljump"; ktimeWallJump = -1; speedJump = speedInitial; modeFall = false; modeJump = true; ktimeUp = 0; } } if (ktimeThrust > 0) { ktimeThrust++; } if (ktimeThrust == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x + thrustPlusX; _root.fxThrust1._y = _y + thrustPlusY; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x + thrustPlusX; _root.fxThrust2._y = _y + thrustPlusY; _root.fxThrust2._rotation = random(360); } else if (ktimeThrust == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x + thrustPlusX; _root.fxThrust3._y = _y + thrustPlusY; _root.fxThrust3._rotation = random(360); } else if (ktimeThrust == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x + thrustPlusX; _root.fxThrust4._y = _y + thrustPlusY; _root.fxThrust4._rotation = random(360); } else if (ktimeThrust == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x + thrustPlusX; _root.fxThrust5._y = _y + thrustPlusY; _root.fxThrust5._rotation = random(360); } else if (ktimeThrust == 7) { _root.attachMovie("fxThrust", "fxThrust6", 56); _root.fxThrust6._x = _x + thrustPlusX; _root.fxThrust6._y = _y + thrustPlusY; _root.fxThrust6._rotation = random(360); } else if (ktimeThrust == 8) { _root.attachMovie("fxThrust", "fxThrust7", 57); _root.fxThrust7._x = _x + thrustPlusX; _root.fxThrust7._y = _y + thrustPlusY; _root.fxThrust7._rotation = random(360); } else if (ktimeThrust == 9) { _root.attachMovie("fxThrust", "fxThrust8", 58); _root.fxThrust8._x = _x + thrustPlusX; _root.fxThrust8._y = _y + thrustPlusY; _root.fxThrust8._rotation = random(360); ktimeThrust = 0; thrustPlusX = 0; thrustPlusY = 0; } if (ktimeThrust2 > 0) { ktimeThrust2++; } if (ktimeThrust2 == 2) { _root.attachMovie("fxThrust", "fxThrust1", 51); _root.fxThrust1._x = _x; _root.fxThrust1._y = _y + 5; _root.fxThrust1._rotation = random(360); } else if (ktimeThrust2 == 3) { _root.attachMovie("fxThrust", "fxThrust2", 52); _root.fxThrust2._x = _x; _root.fxThrust2._y = _y + 5; _root.fxThrust2._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 10; } else if (ktimeThrust2 == 4) { _root.attachMovie("fxThrust", "fxThrust3", 53); _root.fxThrust3._x = _x; _root.fxThrust3._y = _y + 5; _root.fxThrust3._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 5; _root.fxThrust2._y = _root.fxThrust2._y + 10; } else if (ktimeThrust2 == 5) { _root.attachMovie("fxThrust", "fxThrust4", 54); _root.fxThrust4._x = _x; _root.fxThrust4._y = _y + 5; _root.fxThrust4._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 3; _root.fxThrust2._y = _root.fxThrust2._y + 5; _root.fxThrust3._y = _root.fxThrust3._y + 10; } else if (ktimeThrust2 == 6) { _root.attachMovie("fxThrust", "fxThrust5", 55); _root.fxThrust5._x = _x; _root.fxThrust5._y = _y + 5; _root.fxThrust5._rotation = random(360); _root.fxThrust1._y = _root.fxThrust1._y + 1; _root.fxThrust2._y = _root.fxThrust2._y + 3; _root.fxThrust3._y = _root.fxThrust3._y + 5; _root.fxThrust4._y = _root.fxThrust4._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust2._y = _root.fxThrust2._y + 1; _root.fxThrust3._y = _root.fxThrust3._y + 3; _root.fxThrust4._y = _root.fxThrust4._y + 5; _root.fxThrust5._y = _root.fxThrust5._y + 10; } else if (ktimeThrust2 == 7) { _root.fxThrust3._y = _root.fxThrust3._y + 1; _root.fxThrust4._y = _root.fxThrust4._y + 3; _root.fxThrust5._y = _root.fxThrust5._y + 5; } else if (ktimeThrust2 == 8) { _root.fxThrust4._y = _root.fxThrust4._y + 1; _root.fxThrust5._y = _root.fxThrust5._y + 3; ktimeThrust2 = 2; } if (modeVisual == "dive") { gotoAndStop ("dive"); } else if (modeVisual == "hover") { gotoAndStop ("hover"); } else if (modeVisual == "dash") { gotoAndStop ("dash"); } else if (modeVisual == "dbljump") { gotoAndStop ("dblJump"); } else if (modeVisual == "walldrag") { gotoAndStop ("walldrag"); } else if (modeVisual == "jump") { gotoAndStop ("jump"); } else if (modeVisual == "fall") { gotoAndStop ("fall"); } else if (modeVisual == "run") { gotoAndStop ("run"); } else if (modeVisual == "crouch") { gotoAndStop ("crouch"); } else if (modeVisual == "stand") { gotoAndStop ("stand"); } }
Frame 46
_root.clearBullets(); gotoAndStop(_root.nextLevel);
Frame 47
_root.clearBullets(); gotoAndStop(_root.nextLevel);
Symbol 13 MovieClip [sprDeath] Frame 17
_root.sprDeath.removeMovieClip();
Symbol 15 MovieClip [fxRedFire] Frame 16
stop();
Symbol 25 MovieClip [splshRedFire] Frame 6
stop(); _root.removeMovieClip(_name);
Symbol 30 MovieClip [fxThrust] Frame 15
stop();
Symbol 52 Button
on (release) { _root.fxSelection.start(0, 1); _root.nextFrame(); }
Symbol 53 MovieClip Frame 1
_root.percentPreloaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (_root.percentPreloaded != 100) { preloaderBar._xscale = _root.percentPreloaded; var loadedText = int(_root.percentPreloaded); _root.percentPreloadedDis = loadedText + "%"; } else { _root.percentPreloadedDis = "100%"; gotoAndStop (3); }
Symbol 53 MovieClip Frame 2
gotoAndPlay (1);
Symbol 55 Button
on (release) { getURL ("http://armorgames.com", "_blank"); }
Symbol 68 Button
on (press) { getURL ("http://www.armorgames.com", "_blank"); }
Symbol 71 MovieClip Frame 164
_root.nextFrame();
Symbol 82 MovieClip Frame 1
_root.mscTitle.start(0, 100);
Symbol 82 MovieClip Frame 245
_parent.nextFrame();
Symbol 83 Button
on (release) { nextFrame(); }
Symbol 87 Button
on (release) { _root.soundOn = false; stopAllSounds(); nextFrame(); }
Symbol 89 Button
on (release) { _root.soundOn = true; if (_root.soundCurrent == "title") { _root.mscTitle.start(0, 1); } else if (_root.soundCurrent == "normal") { _root.mscNormal.start(0, 1); } else if (_root.soundCurrent == "dance") { _root.mscDance.start(0, 1); } else if (_root.soundCurrent == "hardcore") { _root.mscHardcore.start(0, 1); } prevFrame(); }
Symbol 90 MovieClip Frame 1
stop();
Symbol 96 Button
on (release) { if (_root._quality == "HIGH") { _root._quality = "MEDIUM"; } else if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } else if (_root._quality == "LOW") { _root._quality = "HIGH"; } }
Symbol 108 MovieClip Frame 1
stop();
Symbol 116 Button
on (release) { if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.gotoAndStop(39); }
Symbol 117 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); }
Symbol 118 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (3); }
Symbol 119 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (4); } on (keyPress "<Space>") { _root.fxSelection.start(0, 1); _root.gotoAndStop(39); }
Symbol 122 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (3); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); } on (keyPress "<Space>") { _root.fxSelection.start(0, 1); _root.gotoAndStop("frmLevel"); }
Symbol 123 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); }
Symbol 124 Button
on (release) { if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.gotoAndStop("frmLevel"); }
Symbol 126 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); } on (keyPress "<Space>") { getURL ("http://armorgames.com", "_blank"); }
Symbol 127 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); }
Symbol 128 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); }
Symbol 129 MovieClip Frame 1
stop();
Symbol 137 Button
on (release) { getURL ("http://jaqoshinou.newgrounds.com", "_blank"); }
Symbol 141 Button
on (release) { getURL ("http://twitter.com/armorgames", "_blank"); }
Symbol 143 Button
on (release) { getURL ("http://www.facebook.com/pages/Armor-Games/19522089061", "_blank"); }
Symbol 147 Button
on (release) { _root.clearBullets(); gotoAndStop ("frmMenu"); }
Symbol 160 Button
on (release) { _root.mainClear.gotoAndStop(2); }
Symbol 161 MovieClip Frame 1
stop();
Symbol 171 Button
on (release) { gotoAndStop (1); }
Symbol 172 Button
on (release) { var savefile = SharedObject.getLocal("Evade"); savefile.data.levelStatus = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2); savefile.data.levelLocked = new Array(1, 1, 1, 1, 1); savefile.data.totalCompletedLevels = 0; savefile.data.totalDeaths = 0; savefile.data.totalDeathsFinal = 0; savefile.data.gameDone = false; savefile.flush(); _root.levelStatus = savefile.data.levelStatus; _root.levelLocked = savefile.data.levelLocked; _root.totalCompletedLevels = savefile.data.totalCompletedLevels; _root.totalDeaths = savefile.data.totalDeaths; _root.totalDeathsFinal = savefile.data.totalDeathsFinal; _root.gameDone = savefile.data.gameDone; stopAllSounds(); _root.gotoAndStop(1); }
Symbol 175 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 30
stop();
Symbol 185 Button
on (release) { if (_root.soundOn) { _root.fxSelection.start(0, 1); } prevFrame(); }
Symbol 188 Button
on (rollOver) { if (_name.length == 2) { _root.levelNumChosen = _name.substr(0, 1); _root.disLevelDisplayer.gotoAndStop(2); } else if (_name.length == 3) { _root.levelNumChosen = _name.substr(0, 2); _root.disLevelDisplayer.gotoAndStop(2); } } on (rollOut) { _root.disLevelDisplayer.gotoAndStop(1); } on (release) { if (_name.length == 2) { if (_root.levelLocked[_name.substr(1, 1)] == 1) { num = int(_name.substr(0, 1)); roomNum = "cham" + (num + 1); _root.gotoAndStop(roomNum); } } else if (_name.length == 3) { if (_root.levelLocked[_name.substr(2, 1)] == 1) { num = int(_name.substr(0, 2)); roomNum = "cham" + (num + 1); _root.gotoAndStop(roomNum); } } }
Symbol 189 Button
on (rollOver) { if (_name.length == 2) { _root.levelNumChosen = _name.substr(0, 1); _root.disLevelDisplayer.gotoAndStop(2); } else if (_name.length == 3) { _root.levelNumChosen = _name.substr(0, 2); _root.disLevelDisplayer.gotoAndStop(2); } } on (rollOut) { _root.disLevelDisplayer.gotoAndStop(1); } on (release) { if (_name.length == 2) { if (_root.levelLocked[_name.substr(1, 1)] == 1) { num = int(_name.substr(0, 1)); roomNum = "cham" + (num + 1); _root.gotoAndStop(roomNum); } } else if (_name.length == 3) { if (_root.levelLocked[_name.substr(2, 1)] == 1) { num = int(_name.substr(0, 2)); roomNum = "cham" + (num + 1); _root.gotoAndStop(roomNum); } } }
Symbol 190 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 249 Button
on (release) { gotoAndStop (1); }
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
_root.disLevelDisplayer.gotoAndStop(1);
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop(); _root.nameDisplay = _root.disLevelName[_root.levelNumChosen];
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 8
gotoAndStop (1);
Symbol 314 MovieClip Frame 5
if ((Key.isDown(39) || (Key.isDown(37))) || (Key.isDown(40))) { gotoAndPlay (7); }
Symbol 314 MovieClip Frame 6
gotoAndPlay (4);
Symbol 314 MovieClip Frame 8
if (Key.isDown(40)) { gotoAndPlay (21); _root.engCrawl = true; }
Symbol 314 MovieClip Frame 14
if (Key.isDown(39) || (Key.isDown(37))) { play(); _root.engCrawl = true; } else { gotoAndPlay (21); } if (_root.tutorialAllow) { _root.tutorialDid = "crawl"; }
Symbol 314 MovieClip Frame 20
if (Key.isDown(39) || (Key.isDown(37))) { gotoAndPlay ("crawl"); } else { gotoAndPlay (21); }
Symbol 314 MovieClip Frame 21
if (Key.isDown(39) || (Key.isDown(37))) { gotoAndPlay ("crawl"); }
Symbol 314 MovieClip Frame 22
gotoAndPlay (21);
Symbol 320 MovieClip Frame 5
_root.visDashStopDone = true;
Symbol 328 MovieClip Frame 7
stop();
Symbol 338 MovieClip Frame 7
stop(); _root.visGetUpDone = true;
Symbol 351 MovieClip Frame 4
_root.visDashStopDone = true;
Symbol 369 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } nextFrame(); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (3); } on (keyPress "<Space>") { _root.clearBullets(); _root.respawnPlayer(); _parent.gotoAndStop(1); }
Symbol 370 Button
on (release) { _root.clearBullets(); _root.respawnPlayer(); _parent.gotoAndStop(1); }
Symbol 371 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (2); }
Symbol 372 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (3); }
Symbol 373 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } nextFrame(); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } prevFrame(); } on (keyPress "<Space>") { if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.clearBullets(); if (_root.levelStatus[_root.engChamNum] == 1) { _root.nextLevel = "cham" + (_root.engChamNum + 1); _root.gotoAndStop("frmSwitch"); } else { _root.gotoAndStop("frmLevel"); } _root.levelLowVisibilty.swapDepths(-1); _parent.gotoAndStop(1); }
Symbol 374 Button
on (rollOver) { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); }
Symbol 375 Button
on (release) { if (_root.soundOn) { _root.fxSelection.start(0, 1); } _root.clearBullets(); if (_root.levelStatus[_root.engChamNum] == 1) { _root.nextLevel = "cham" + (_root.engChamNum + 1); _root.gotoAndStop("frmSwitch"); } else { _root.gotoAndStop("frmLevel"); } _root.levelLowVisibilty.swapDepths(-1); _parent.gotoAndStop(1); }
Symbol 376 Button
on (keyPress "<Down>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } gotoAndStop (1); } on (keyPress "<Up>") { if (_root.soundOn) { _root.fxSelection2.start(0, 1); } prevFrame(); } on (keyPress "<Space>") { _root.clearBullets(); _root.levelLowVisibilty.swapDepths(-1); _root.gotoAndStop("frmMenu"); if (_root.soundOn) { _root.fxSelection.start(0, 1); } _parent.gotoAndStop(1); }
Symbol 377 Button
on (release) { _root.clearBullets(); _root.levelLowVisibilty.swapDepths(-1); _root.gotoAndStop("frmMenu"); if (_root.soundOn) { _root.fxSelection.start(0, 1); } _parent.gotoAndStop(1); }
Symbol 378 MovieClip Frame 1
if (soundOn) { _root.fxSelection2.start(0, 1); } stop();
Symbol 378 MovieClip Frame 2
if (soundOn) { _root.fxSelection2.start(0, 1); }
Symbol 378 MovieClip Frame 3
if (soundOn) { _root.fxSelection2.start(0, 1); }
Symbol 383 MovieClip Frame 1
var chamNum = (int(_root.engChamNum) - 1); _root.displaySuccess = _root.disLevelName[chamNum];
Symbol 384 MovieClip Frame 15
_root.clearBullets(); var savefile = SharedObject.getLocal("Evade"); var completeChamNum = (int(_root.engChamNum) - 1); if (_root.levelStatus[completeChamNum] == 1) { _root.levelStatus[completeChamNum] = 2; _root.totalCompletedLevels++; var savefile = SharedObject.getLocal("Evade"); savefile.data.totalCompletedLevels = _root.totalCompletedLevels; savefile.data.levelStatus = _root.levelStatus; savefile.flush(); } _root.levelLowVisibilty.gotoAndStop("clear"); _root.levelLowVisibilty.swapDepths(-1); if (_root.levelStatus[_root.engChamNum] == 1) { _root.nextLevel = "cham" + (_root.engChamNum + 1); _root.gotoAndStop("frmComSwitch"); } else { _root.gotoAndStop("frmLevel"); } _parent.gotoAndStop(1);
Symbol 385 MovieClip Frame 1
stop();
Instance of Symbol 367 MovieClip in Symbol 385 MovieClip Frame 2
onClipEvent (enterFrame) { _root.clearBullets(); }
Symbol 385 MovieClip Frame 15
stop();
Symbol 385 MovieClip Frame 65
stop();
Symbol 391 MovieClip Frame 1
_root.disTestName = _root.disLevelName[_root.engChamNum - 1];
Symbol 392 MovieClip Frame 56
stop();
Symbol 413 MovieClip Frame 10
gotoAndStop (1);
Symbol 436 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 1
stop();
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 367 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _parent.play(); } }
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Instance of Symbol 266 MovieClip in Symbol 443 MovieClip Frame 2
onClipEvent (enterFrame) { var i = 0; while (i <= 2) { if (this["bar" + i].hitTest(_root.mainPlayer)) { _root.playerHit(); } i++; } }
Symbol 443 MovieClip Frame 79
_root.levelSwitches[0] = 1;
Symbol 443 MovieClip Frame 80
stop(); _root.levelSwitches[0] = 0;
Instance of Symbol 367 MovieClip in Symbol 443 MovieClip Frame 80
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _parent.play(); } }
Symbol 443 MovieClip Frame 169
_root.levelSwitches[1] = 1;
Symbol 443 MovieClip Frame 170
stop(); _root.levelSwitches[1] = 0;
Instance of Symbol 367 MovieClip in Symbol 443 MovieClip Frame 170
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { _parent.play(); } }
Symbol 443 MovieClip Frame 254
_root.levelSwitches[2] = 1;
Symbol 443 MovieClip Frame 255
_root.levelSwitches[2] = 0;
Symbol 443 MovieClip Frame 310
stop();
Symbol 491 MovieClip Frame 2
_root.engAllowMovement = false;
Symbol 491 MovieClip Frame 96
_root.engReset = true; _root.engAllowMovement = true;
Symbol 491 MovieClip Frame 120
_root.levelSeconds--; if (_root.levelSeconds <= 0) { gotoAndStop (1); _root.playerHit(); } else { gotoAndPlay ("restart"); }
Symbol 513 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 188
gotoAndPlay (1);
Symbol 609 MovieClip Frame 189
stop();
Symbol 612 Button
on (release) { _root.levelLowVisibilty.swapDepths(-1); _root.levelLowVisibilty.gotoAndStop("clear"); _root.clearBullets(); gotoAndStop ("frmMenu"); }
Symbol 729 MovieClip Frame 2
_root.engAllowMovement = false;
Symbol 729 MovieClip Frame 96
_root.engReset = true; _root.engAllowMovement = true;
Symbol 729 MovieClip Frame 120
_root.levelSeconds--; if (_root.levelSeconds <= 0) { gotoAndStop (1); _root.levelSwitches[0] = 0; } else { gotoAndPlay ("restart"); }
Symbol 772 MovieClip Frame 97
gotoAndPlay (1);
Symbol 805 MovieClip Frame 217
_root.levelSpeach.gotoAndStop(2);
Symbol 805 MovieClip Frame 300
stop();
Symbol 805 MovieClip Frame 301
_root.introTutLevel = 1;
Symbol 805 MovieClip Frame 344
_root.tutorialDid = ""; _root.tutorialAllow = false;
Symbol 805 MovieClip Frame 345
stop(); _root.mainThought.gotoAndStop("jump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 345
onClipEvent (enterFrame) { if (_root.tutorialDid == "jump") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 346
stop(); _root.mainThought.gotoAndStop("dbljump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 346
onClipEvent (enterFrame) { if (_root.tutorialDid == "dbljump") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 347
stop(); _root.mainThought.gotoAndStop("crawl"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 347
onClipEvent (enterFrame) { if (_root.tutorialDid == "crawl") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 348
stop(); _root.mainThought.gotoAndStop("sprjump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 348
onClipEvent (enterFrame) { if (_root.tutorialDid == "sprjump") { _parent.gotoAndPlay("success"); } else if (_root.tutorialDid == "diasprjump") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 349
stop(); _root.mainThought.gotoAndStop("dash"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 349
onClipEvent (enterFrame) { if (_root.tutorialDid == "dash") { _parent.gotoAndPlay("success"); } else if (_root.tutorialDid == "airdash") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 350
stop(); _root.mainThought.gotoAndStop("airdash"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 350
onClipEvent (enterFrame) { if (_root.tutorialDid == "airdash") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 351
stop(); _root.mainThought.gotoAndStop("walljump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 351
onClipEvent (enterFrame) { if (_root.tutorialDid == "walljump") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 352
stop(); _root.mainThought.gotoAndStop("dive"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 352
onClipEvent (enterFrame) { if (_root.tutorialDid == "dive") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 353
stop(); _root.mainThought.gotoAndStop("hover"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 353
onClipEvent (enterFrame) { if (_root.tutorialDid == "hover") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 354
stop(); _root.mainThought.gotoAndStop("diasprjump"); _root.mainThought._visible = false; _root.mainThought._visible = true;
Instance of Symbol 367 MovieClip in Symbol 805 MovieClip Frame 354
onClipEvent (enterFrame) { if (_root.tutorialDid == "diasprjump") { _parent.gotoAndPlay("success"); } }
Symbol 805 MovieClip Frame 355
if (_root.soundOn) { _root.fxSelection2.start(0, 1); } _root.introTutLevel++;
Symbol 805 MovieClip Frame 400
_root.tutorialDid = ""; _root.tutorialAllow = false; if (_root.introTutLevel == 1) { gotoAndStop ("jump"); } else if (_root.introTutLevel == 2) { gotoAndStop ("dbljump"); } else if (_root.introTutLevel == 3) { gotoAndStop ("crawl"); } else if (_root.introTutLevel == 4) { gotoAndStop ("sprjump"); } else if (_root.introTutLevel == 5) { gotoAndStop ("diasprjump"); } else if (_root.introTutLevel == 6) { gotoAndStop ("dive"); } else if (_root.introTutLevel == 7) { gotoAndStop ("dash"); } else if (_root.introTutLevel == 8) { gotoAndStop ("airdash"); } else if (_root.introTutLevel == 9) { gotoAndStop ("walljump"); } else if (_root.introTutLevel == 10) { gotoAndStop ("hover"); }
Symbol 805 MovieClip Frame 483
_root.levelSpeach.nextFrame();
Symbol 805 MovieClip Frame 536
stop();
Symbol 814 Button
on (release, keyPress "<Space>") { nextFrame(); }
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 3
_root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 4
_root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 5
_root.levelMonitor.gotoAndPlay("low");
Symbol 835 MovieClip Frame 6
_root.levelIntro.gotoAndPlay(2);
Symbol 835 MovieClip Frame 7
_root.levelMonitor.gotoAndPlay("med"); _root.mainThought._visible = true;
Symbol 835 MovieClip Frame 67
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 68
stop(); _root.levelMonitor.gotoAndPlay("low");
Symbol 835 MovieClip Frame 69
stop(); _root.levelMonitor.gotoAndPlay("low");
Symbol 835 MovieClip Frame 70
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 71
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 72
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 73
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 74
_root.levelFlash.gotoAndPlay(2);
Symbol 835 MovieClip Frame 75
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 76
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 77
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 78
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 79
stop(); _root.levelMonitor.gotoAndPlay("high");
Symbol 835 MovieClip Frame 80
stop(); _root.levelMonitor.gotoAndPlay("med");
Symbol 835 MovieClip Frame 81
stop(); _root.levelFlash.gotoAndPlay("flash2"); _root.levelMonitor.gotoAndPlay("med");
Symbol 841 MovieClip Frame 1
stop(); stop();
Symbol 841 MovieClip Frame 95
_root.levelSwitches[0] = 1;
Symbol 841 MovieClip Frame 96
stop();
Symbol 843 MovieClip Frame 1
stop();
Instance of Symbol 367 MovieClip in Symbol 843 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.hitTest(_root.mainPlayer._x, _root.mainPlayer._y, true)) { if (!_root.engSuccess) { _root.engSuccess = true; _root.engAllowDeath = false; _root.mainOverlay.swapDepths(999999); _root.mainOverlay.gotoAndPlay("success"); } } }
Symbol 847 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 44
_root.mainPlayer._visible = true;
Symbol 847 MovieClip Frame 65
stop(); _root.engAllowMovement = true; _root.levelSpeach.nextFrame();
Symbol 850 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 2
_root.levelTarget._visible = false; _root.levelTutTur._visible = false; _root.levelTurCir._visible = false; _root.levelSwitches[0] = 3; _root.engReset = true; _root.engAllowMovement = true; _root.engBounds.block1.gotoAndStop(2); _root.respawnPlayer(); _root.levelMonitor.gotoAndPlay("tutorial");
Symbol 854 MovieClip Frame 30
stop(); _root.engAllowMovement = true;
Symbol 854 MovieClip Frame 32
_root.engBounds.block2.gotoAndStop(2); _root.levelExit.gotoAndStop(2); _root.levelBlockVis._visible = true;
Symbol 854 MovieClip Frame 65
stop();

Library Items

Symbol 1 GraphicUsed by:13
Symbol 2 GraphicUsed by:13
Symbol 3 GraphicUsed by:13
Symbol 4 GraphicUsed by:13
Symbol 5 GraphicUsed by:13
Symbol 6 GraphicUsed by:13
Symbol 7 GraphicUsed by:13
Symbol 8 GraphicUsed by:13
Symbol 9 GraphicUsed by:13
Symbol 10 GraphicUsed by:13
Symbol 11 GraphicUsed by:13
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip [sprDeath]Uses:1 2 3 4 5 6 7 8 9 10 11 12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [fxRedFire]Uses:14Used by:20
Symbol 16 GraphicUsed by:20
Symbol 17 GraphicUsed by:20
Symbol 18 GraphicUsed by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip [bulRedFire]Uses:15 16 17 18 19
Symbol 21 GraphicUsed by:25
Symbol 22 GraphicUsed by:25
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClip [splshRedFire]Uses:21 22 23 24
Symbol 26 GraphicUsed by:27 28
Symbol 27 MovieClip [bulPurpleLaser]Uses:26
Symbol 28 MovieClip [bulPurpleLaser2]Uses:26
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClip [fxThrust]Uses:29
Symbol 31 GraphicUsed by:Timeline
Symbol 32 FontUsed by:33
Symbol 33 TextUses:32Used by:Timeline
Symbol 34 GraphicUsed by:Timeline
Symbol 35 GraphicUsed by:71  Timeline
Symbol 36 GraphicUsed by:71  Timeline
Symbol 37 GraphicUsed by:Timeline
Symbol 38 GraphicUsed by:53
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:53
Symbol 41 GraphicUsed by:53
Symbol 42 FontUsed by:43 48 112 113 114 120 121 125 132 134 136 140 142 152 167 241 243 254 417 418 421 422 423 425 426 427 428 429 430 432 434 776 779 783 785 788 791 793 796 799 802 812 813 815 816 817 819 821 822 823 824 825 826 827 828 829 830 831 832 833 834
Symbol 43 EditableTextUses:42Used by:53
Symbol 44 GraphicUsed by:53
Symbol 45 FontUsed by:46 50 182 184
Symbol 46 TextUses:45Used by:52 53
Symbol 47 GraphicUsed by:53
Symbol 48 EditableTextUses:42Used by:53
Symbol 49 GraphicUsed by:52
Symbol 50 TextUses:45Used by:52
Symbol 51 GraphicUsed by:52
Symbol 52 ButtonUses:49 50 51 46Used by:53
Symbol 53 MovieClipUses:38 40 41 43 44 46 47 48 52Used by:Timeline
Symbol 54 GraphicUsed by:55 83 87 89 116 117 118 119 122 123 124 126 127 128 137 163 369 370 371 372 373 374 375 376 377
Symbol 55 ButtonUses:54Used by:129  Timeline
Symbol 56 GraphicUsed by:Timeline
Symbol 57 GraphicUsed by:Timeline
Symbol 58 GraphicUsed by:82
Symbol 59 SoundUsed by:71
Symbol 60 GraphicUsed by:71
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:71
Symbol 63 SoundUsed by:71
Symbol 64 SoundUsed by:71
Symbol 65 SoundUsed by:71
Symbol 66 GraphicUsed by:71
Symbol 67 GraphicUsed by:68
Symbol 68 ButtonUses:67Used by:71
Symbol 69 SoundUsed by:71
Symbol 70 SoundUsed by:71
Symbol 71 MovieClipUses:35 59 60 62 63 64 65 66 68 36 69 70Used by:82
Symbol 72 GraphicUsed by:82 97 147 176 384 392 600 609 612 854  Timeline
Symbol 73 GraphicUsed by:78
Symbol 74 FontUsed by:75
Symbol 75 TextUses:74Used by:78
Symbol 76 FontUsed by:77 110
Symbol 77 TextUses:76Used by:78
Symbol 78 MovieClipUses:73 75 77Used by:82
Symbol 79 FontUsed by:80 81
Symbol 80 TextUses:79Used by:82
Symbol 81 TextUses:79Used by:82
Symbol 82 MovieClipUses:58 71 72 78 80 81Used by:Timeline
Symbol 83 ButtonUses:54Used by:Timeline
Symbol 84 GraphicUsed by:90
Symbol 85 FontUsed by:86 91 93 95 144 146 149 151 165 173 174 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 233 234 235 236 239 242 253 359 360 362 363 364 380 381 382 387 388 389 390 457 459 461 463
Symbol 86 TextUses:85Used by:90
Symbol 87 ButtonUses:54Used by:90
Symbol 88 GraphicUsed by:90
Symbol 89 ButtonUses:54Used by:90
Symbol 90 MovieClipUses:84 86 87 88 89Used by:Timeline
Symbol 91 TextUses:85Used by:97
Symbol 92 GraphicUsed by:96
Symbol 93 TextUses:85Used by:96
Symbol 94 GraphicUsed by:96
Symbol 95 TextUses:85Used by:96
Symbol 96 ButtonUses:92 93 94 95Used by:97
Symbol 97 MovieClipUses:72 91 96Used by:Timeline
Symbol 98 GraphicUsed by:108 141 143
Symbol 99 Sound [mscNormal]Used by:108
Symbol 100 Sound [mscDance]Used by:108
Symbol 101 Sound [mscHardcore]Used by:108
Symbol 102 Sound [mscTitle]Used by:108
Symbol 103 Sound [fxFart1]Used by:108
Symbol 104 Sound [fxFart2]Used by:108
Symbol 105 Sound [fxFart3]Used by:108
Symbol 106 Sound [fxSelection]Used by:108
Symbol 107 Sound [fxSelection2]Used by:108
Symbol 108 MovieClipUses:98 99 100 101 102 103 104 105 106 107Used by:Timeline
Symbol 109 GraphicUsed by:Timeline
Symbol 110 TextUses:76Used by:Timeline
Symbol 111 GraphicUsed by:Timeline
Symbol 112 TextUses:42Used by:129
Symbol 113 TextUses:42Used by:129
Symbol 114 TextUses:42Used by:129
Symbol 115 GraphicUsed by:129
Symbol 116 ButtonUses:54Used by:129
Symbol 117 ButtonUses:54Used by:129
Symbol 118 ButtonUses:54Used by:129
Symbol 119 ButtonUses:54Used by:129
Symbol 120 TextUses:42Used by:129
Symbol 121 TextUses:42Used by:129
Symbol 122 ButtonUses:54Used by:129
Symbol 123 ButtonUses:54Used by:129
Symbol 124 ButtonUses:54Used by:129
Symbol 125 TextUses:42Used by:129
Symbol 126 ButtonUses:54Used by:129
Symbol 127 ButtonUses:54Used by:129
Symbol 128 ButtonUses:54Used by:129
Symbol 129 MovieClipUses:112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 55Used by:Timeline
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:Timeline
Symbol 132 TextUses:42Used by:Timeline
Symbol 133 GraphicUsed by:Timeline
Symbol 134 TextUses:42Used by:Timeline
Symbol 135 GraphicUsed by:Timeline
Symbol 136 TextUses:42Used by:137
Symbol 137 ButtonUses:54 136Used by:Timeline
Symbol 138 GraphicUsed by:Timeline
Symbol 139 GraphicUsed by:Timeline
Symbol 140 TextUses:42Used by:141
Symbol 141 ButtonUses:98 140Used by:Timeline
Symbol 142 TextUses:42Used by:143
Symbol 143 ButtonUses:98 142Used by:Timeline
Symbol 144 TextUses:85Used by:147 612
Symbol 145 GraphicUsed by:147 612
Symbol 146 TextUses:85Used by:147 612
Symbol 147 ButtonUses:72 144 145 146Used by:Timeline
Symbol 148 GraphicUsed by:161
Symbol 149 TextUses:85Used by:161
Symbol 150 GraphicUsed by:161
Symbol 151 EditableTextUses:85Used by:161
Symbol 152 TextUses:42Used by:161
Symbol 153 GraphicUsed by:160
Symbol 154 FontUsed by:155 158
Symbol 155 TextUses:154Used by:160
Symbol 156 GraphicUsed by:160
Symbol 157 GraphicUsed by:160
Symbol 158 TextUses:154Used by:160
Symbol 159 GraphicUsed by:160
Symbol 160 ButtonUses:153 155 156 157 158 159Used by:161  Timeline
Symbol 161 MovieClipUses:148 149 150 151 152 160Used by:Timeline
Symbol 162 GraphicUsed by:175 251
Symbol 163 ButtonUses:54Used by:175 251
Symbol 164 GraphicUsed by:175
Symbol 165 TextUses:85Used by:175
Symbol 166 GraphicUsed by:175
Symbol 167 TextUses:42Used by:175
Symbol 168 GraphicUsed by:171 172 189
Symbol 169 GraphicUsed by:171 172 189
Symbol 170 GraphicUsed by:171 172 189
Symbol 171 ButtonUses:168 169 170Used by:175
Symbol 172 ButtonUses:168 169 170Used by:175
Symbol 173 TextUses:85Used by:175
Symbol 174 TextUses:85Used by:175
Symbol 175 MovieClipUses:162 163 164 165 166 167 171 172 173 174Used by:Timeline
Symbol 176 MovieClipUses:72Used by:Timeline
Symbol 177 GraphicUsed by:Timeline
Symbol 178 FontUsed by:179
Symbol 179 TextUses:178Used by:Timeline
Symbol 180 GraphicUsed by:Timeline
Symbol 181 GraphicUsed by:185
Symbol 182 TextUses:45Used by:185
Symbol 183 GraphicUsed by:185
Symbol 184 TextUses:45Used by:185
Symbol 185 ButtonUses:181 182 183 184Used by:Timeline
Symbol 186 GraphicUsed by:188
Symbol 187 GraphicUsed by:188
Symbol 188 ButtonUses:186 187Used by:190
Symbol 189 ButtonUses:168 169 170Used by:190
Symbol 190 MovieClipUses:188 189Used by:Timeline
Symbol 191 TextUses:85Used by:Timeline
Symbol 192 TextUses:85Used by:Timeline
Symbol 193 TextUses:85Used by:Timeline
Symbol 194 TextUses:85Used by:Timeline
Symbol 195 TextUses:85Used by:Timeline
Symbol 196 TextUses:85Used by:Timeline
Symbol 197 TextUses:85Used by:Timeline
Symbol 198 TextUses:85Used by:Timeline
Symbol 199 TextUses:85Used by:Timeline
Symbol 200 TextUses:85Used by:Timeline
Symbol 201 TextUses:85Used by:Timeline
Symbol 202 TextUses:85Used by:Timeline
Symbol 203 TextUses:85Used by:Timeline
Symbol 204 TextUses:85Used by:Timeline
Symbol 205 TextUses:85Used by:Timeline
Symbol 206 TextUses:85Used by:Timeline
Symbol 207 TextUses:85Used by:Timeline
Symbol 208 TextUses:85Used by:Timeline
Symbol 209 TextUses:85Used by:Timeline
Symbol 210 TextUses:85Used by:Timeline
Symbol 211 TextUses:85Used by:Timeline
Symbol 212 TextUses:85Used by:Timeline
Symbol 213 TextUses:85Used by:Timeline
Symbol 214 TextUses:85Used by:Timeline
Symbol 215 TextUses:85Used by:Timeline
Symbol 216 TextUses:85Used by:Timeline
Symbol 217 TextUses:85Used by:Timeline
Symbol 218 TextUses:85Used by:Timeline
Symbol 219 TextUses:85Used by:Timeline
Symbol 220 TextUses:85Used by:Timeline
Symbol 221 TextUses:85Used by:Timeline
Symbol 222 TextUses:85Used by:Timeline
Symbol 223 TextUses:85Used by:Timeline
Symbol 224 TextUses:85Used by:Timeline
Symbol 225 TextUses:85Used by:Timeline
Symbol 226 TextUses:85Used by:Timeline
Symbol 227 TextUses:85Used by:Timeline
Symbol 228 TextUses:85Used by:Timeline
Symbol 229 TextUses:85Used by:Timeline
Symbol 230 TextUses:85Used by:Timeline
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:231Used by:Timeline
Symbol 233 TextUses:85Used by:237
Symbol 234 EditableTextUses:85Used by:237
Symbol 235 TextUses:85Used by:237
Symbol 236 EditableTextUses:85Used by:237
Symbol 237 MovieClipUses:233 234 235 236Used by:Timeline
Symbol 238 GraphicUsed by:251
Symbol 239 TextUses:85Used by:251
Symbol 240 GraphicUsed by:251
Symbol 241 TextUses:42Used by:251
Symbol 242 EditableTextUses:85Used by:251
Symbol 243 TextUses:42Used by:251
Symbol 244 GraphicUsed by:249 814
Symbol 245 GraphicUsed by:249 814
Symbol 246 GraphicUsed by:249 814
Symbol 247 GraphicUsed by:249 814
Symbol 248 GraphicUsed by:249 814
Symbol 249 ButtonUses:244 245 246 247 248Used by:251
Symbol 250 GraphicUsed by:251
Symbol 251 MovieClipUses:162 163 238 239 240 241 242 243 249 250Used by:Timeline
Symbol 252 GraphicUsed by:255
Symbol 253 TextUses:85Used by:255
Symbol 254 EditableTextUses:42Used by:255
Symbol 255 MovieClipUses:252 253 254Used by:Timeline
Symbol 256 GraphicUsed by:Timeline
Symbol 257 GraphicUsed by:Timeline
Symbol 258 FontUsed by:259 393 397 409 446 494 504 516 526 530 539 543 559 568 572 576 589 598 603 613 617 627 631 635 639 643 715 720 732 737 741 745 749 754 764 855 859 863 872 878 882
Symbol 259 TextUses:258Used by:Timeline
Symbol 260 GraphicUsed by:Timeline
Symbol 261 GraphicUsed by:264
Symbol 262 GraphicUsed by:264
Symbol 263 GraphicUsed by:264
Symbol 264 MovieClipUses:261 262 263Used by:266 452
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClipUses:264 265Used by:443  Timeline
Symbol 267 GraphicUsed by:Timeline
Symbol 268 GraphicUsed by:271
Symbol 269 GraphicUsed by:271
Symbol 270 GraphicUsed by:271
Symbol 271 MovieClipUses:268 269 270Used by:841  Timeline
Symbol 272 GraphicUsed by:Timeline
Symbol 273 GraphicUsed by:Timeline
Symbol 274 GraphicUsed by:302
Symbol 275 GraphicUsed by:302
Symbol 276 GraphicUsed by:302
Symbol 277 GraphicUsed by:302
Symbol 278 GraphicUsed by:302
Symbol 279 GraphicUsed by:302
Symbol 280 GraphicUsed by:302
Symbol 281 GraphicUsed by:302
Symbol 282 GraphicUsed by:302
Symbol 283 GraphicUsed by:302
Symbol 284 GraphicUsed by:302
Symbol 285 GraphicUsed by:302
Symbol 286 GraphicUsed by:302
Symbol 287 GraphicUsed by:302
Symbol 288 GraphicUsed by:302
Symbol 289 GraphicUsed by:302
Symbol 290 GraphicUsed by:302
Symbol 291 GraphicUsed by:302
Symbol 292 GraphicUsed by:302
Symbol 293 GraphicUsed by:302
Symbol 294 GraphicUsed by:302
Symbol 295 GraphicUsed by:302
Symbol 296 GraphicUsed by:302
Symbol 297 GraphicUsed by:302
Symbol 298 GraphicUsed by:302
Symbol 299 GraphicUsed by:302
Symbol 300 GraphicUsed by:302
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClipUses:274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301Used by:355
Symbol 303 GraphicUsed by:355
Symbol 304 GraphicUsed by:314
Symbol 305 GraphicUsed by:314
Symbol 306 GraphicUsed by:314
Symbol 307 GraphicUsed by:314
Symbol 308 GraphicUsed by:314
Symbol 309 GraphicUsed by:314
Symbol 310 GraphicUsed by:314
Symbol 311 GraphicUsed by:314
Symbol 312 GraphicUsed by:314
Symbol 313 GraphicUsed by:314
Symbol 314 MovieClipUses:304 305 306 307 308 309 310 311 312 313Used by:355
Symbol 315 GraphicUsed by:320
Symbol 316 GraphicUsed by:320
Symbol 317 GraphicUsed by:320
Symbol 318 GraphicUsed by:320
Symbol 319 GraphicUsed by:320
Symbol 320 MovieClipUses:315 316 317 318 319Used by:355
Symbol 321 GraphicUsed by:323
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClipUses:321 322Used by:355
Symbol 324 GraphicUsed by:328
Symbol 325 GraphicUsed by:328
Symbol 326 GraphicUsed by:328
Symbol 327 GraphicUsed by:328
Symbol 328 MovieClipUses:324 325 326 327Used by:355
Symbol 329 GraphicUsed by:330
Symbol 330 MovieClipUses:329Used by:355
Symbol 331 GraphicUsed by:333
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClipUses:331 332Used by:355
Symbol 334 GraphicUsed by:338
Symbol 335 GraphicUsed by:338
Symbol 336 GraphicUsed by:338
Symbol 337 GraphicUsed by:338
Symbol 338 MovieClipUses:334 335 336 337Used by:355
Symbol 339 GraphicUsed by:347
Symbol 340 GraphicUsed by:347
Symbol 341 GraphicUsed by:347
Symbol 342 GraphicUsed by:347
Symbol 343 GraphicUsed by:347
Symbol 344 GraphicUsed by:347
Symbol 345 GraphicUsed by:347
Symbol 346 GraphicUsed by:347
Symbol 347 MovieClipUses:339 340 341 342 343 344 345 346Used by:355
Symbol 348 GraphicUsed by:351
Symbol 349 GraphicUsed by:351
Symbol 350 GraphicUsed by:351
Symbol 351 MovieClipUses:348 349 350Used by:355
Symbol 352 GraphicUsed by:354
Symbol 353 GraphicUsed by:354
Symbol 354 MovieClipUses:352 353Used by:355
Symbol 355 MovieClipUses:302 303 314 320 323 328 330 333 338 347 351 354Used by:Timeline
Symbol 356 GraphicUsed by:357
Symbol 357 MovieClipUses:356Used by:Timeline
Symbol 358 GraphicUsed by:365
Symbol 359 TextUses:85Used by:365
Symbol 360 EditableTextUses:85Used by:365
Symbol 361 GraphicUsed by:365
Symbol 362 TextUses:85Used by:365
Symbol 363 TextUses:85Used by:365
Symbol 364 TextUses:85Used by:365
Symbol 365 MovieClipUses:358 359 360 361 362 363 364Used by:385
Symbol 366 GraphicUsed by:367 513
Symbol 367 MovieClipUses:366Used by:385 443 805 843  Timeline
Symbol 368 GraphicUsed by:378
Symbol 369 ButtonUses:54Used by:378
Symbol 370 ButtonUses:54Used by:378
Symbol 371 ButtonUses:54Used by:378
Symbol 372 ButtonUses:54Used by:378
Symbol 373 ButtonUses:54Used by:378
Symbol 374 ButtonUses:54Used by:378
Symbol 375 ButtonUses:54Used by:378
Symbol 376 ButtonUses:54Used by:378
Symbol 377 ButtonUses:54Used by:378
Symbol 378 MovieClipUses:368 369 370 371 372 373 374 375 376 377Used by:385
Symbol 379 GraphicUsed by:383
Symbol 380 TextUses:85Used by:383
Symbol 381 TextUses:85Used by:383
Symbol 382 EditableTextUses:85Used by:383
Symbol 383 MovieClipUses:379 380 381 382Used by:385
Symbol 384 MovieClipUses:72Used by:385
Symbol 385 MovieClipUses:365 367 378 383 384Used by:Timeline
Symbol 386 GraphicUsed by:391
Symbol 387 TextUses:85Used by:391
Symbol 388 EditableTextUses:85Used by:391
Symbol 389 TextUses:85Used by:391
Symbol 390 EditableTextUses:85Used by:391
Symbol 391 MovieClipUses:386 387 388 389 390Used by:392
Symbol 392 MovieClipUses:72 391Used by:Timeline
Symbol 393 TextUses:258Used by:Timeline
Symbol 394 GraphicUsed by:Timeline
Symbol 395 GraphicUsed by:396
Symbol 396 MovieClipUses:395Used by:Timeline
Symbol 397 TextUses:258Used by:Timeline
Symbol 398 GraphicUsed by:Timeline
Symbol 399 GraphicUsed by:402
Symbol 400 GraphicUsed by:401
Symbol 401 MovieClipUses:400Used by:402
Symbol 402 MovieClipUses:399 401Used by:Timeline
Symbol 403 GraphicUsed by:Timeline
Symbol 404 GraphicUsed by:Timeline
Symbol 405 GraphicUsed by:Timeline
Symbol 406 GraphicUsed by:Timeline
Symbol 407 GraphicUsed by:408
Symbol 408 MovieClipUses:407Used by:Timeline
Symbol 409 TextUses:258Used by:Timeline
Symbol 410 GraphicUsed by:Timeline
Symbol 411 GraphicUsed by:413
Symbol 412 GraphicUsed by:413
Symbol 413 MovieClipUses:411 412Used by:Timeline
Symbol 414 GraphicUsed by:436
Symbol 415 FontUsed by:416 775 778 781 782 787 790 792 803
Symbol 416 TextUses:415Used by:436
Symbol 417 TextUses:42Used by:436
Symbol 418 TextUses:42Used by:436
Symbol 419 GraphicUsed by:436
Symbol 420 GraphicUsed by:436
Symbol 421 TextUses:42Used by:436
Symbol 422 TextUses:42Used by:436
Symbol 423 TextUses:42Used by:436
Symbol 424 GraphicUsed by:436
Symbol 425 TextUses:42Used by:436
Symbol 426 TextUses:42Used by:436
Symbol 427 TextUses:42Used by:436
Symbol 428 TextUses:42Used by:436
Symbol 429 TextUses:42Used by:436
Symbol 430 TextUses:42Used by:436
Symbol 431 GraphicUsed by:436
Symbol 432 TextUses:42Used by:436
Symbol 433 GraphicUsed by:436
Symbol 434 TextUses:42Used by:436
Symbol 435 GraphicUsed by:436
Symbol 436 MovieClipUses:414 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435Used by:Timeline
Symbol 437 GraphicUsed by:443
Symbol 438 GraphicUsed by:443
Symbol 439 GraphicUsed by:443
Symbol 440 GraphicUsed by:443
Symbol 441 GraphicUsed by:443
Symbol 442 GraphicUsed by:443
Symbol 443 MovieClipUses:437 266 367 438 439 440 441 442Used by:Timeline
Symbol 444 GraphicUsed by:445
Symbol 445 MovieClipUses:444Used by:Timeline
Symbol 446 TextUses:258Used by:Timeline
Symbol 447 GraphicUsed by:Timeline
Symbol 448 GraphicUsed by:Timeline
Symbol 449 GraphicUsed by:Timeline
Symbol 450 GraphicUsed by:Timeline
Symbol 451 GraphicUsed by:452
Symbol 452 MovieClipUses:264 451Used by:Timeline
Symbol 453 FontUsed by:454 455 456 458 460 462 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 722 723 724 725 726 727 728
Symbol 454 TextUses:453Used by:491 729
Symbol 455 EditableTextUses:453Used by:491
Symbol 456 TextUses:453Used by:491 729
Symbol 457 TextUses:85Used by:491 729
Symbol 458 EditableTextUses:453Used by:491
Symbol 459 TextUses:85Used by:491 729
Symbol 460 EditableTextUses:453Used by:491
Symbol 461 TextUses:85Used by:491 729
Symbol 462 EditableTextUses:453Used by:491
Symbol 463 TextUses:85Used by:491 729
Symbol 464 EditableTextUses:453Used by:491
Symbol 465 TextUses:453Used by:491 729
Symbol 466 EditableTextUses:453Used by:491
Symbol 467 TextUses:453Used by:491 729
Symbol 468 TextUses:453Used by:491 729
Symbol 469 TextUses:453Used by:491 729
Symbol 470 TextUses:453Used by:491 729
Symbol 471 TextUses:453Used by:491 729
Symbol 472 TextUses:453Used by:491 729
Symbol 473 TextUses:453Used by:491 729
Symbol 474 TextUses:453Used by:491 729
Symbol 475 TextUses:453Used by:491 729
Symbol 476 TextUses:453Used by:491 729
Symbol 477 TextUses:453Used by:491 729
Symbol 478 TextUses:453Used by:491 729
Symbol 479 TextUses:453Used by:491 729
Symbol 480 TextUses:453Used by:491 729
Symbol 481 TextUses:453Used by:491 729
Symbol 482 TextUses:453Used by:491 729
Symbol 483 TextUses:453Used by:491 729
Symbol 484 TextUses:453Used by:491 729
Symbol 485 TextUses:453Used by:491 729
Symbol 486 TextUses:453Used by:491 729
Symbol 487 TextUses:453Used by:491 729
Symbol 488 TextUses:453Used by:491 729
Symbol 489 TextUses:453Used by:491 729
Symbol 490 EditableTextUses:453Used by:491
Symbol 491 MovieClipUses:454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490Used by:Timeline
Symbol 492 GraphicUsed by:493
Symbol 493 MovieClipUses:492Used by:Timeline
Symbol 494 TextUses:258Used by:Timeline
Symbol 495 GraphicUsed by:Timeline
Symbol 496 GraphicUsed by:Timeline
Symbol 497 GraphicUsed by:Timeline
Symbol 498 GraphicUsed by:Timeline
Symbol 499 GraphicUsed by:Timeline
Symbol 500 GraphicUsed by:501
Symbol 501 MovieClipUses:500Used by:503
Symbol 502 GraphicUsed by:503
Symbol 503 MovieClipUses:501 502Used by:Timeline
Symbol 504 TextUses:258Used by:Timeline
Symbol 505 GraphicUsed by:Timeline
Symbol 506 GraphicUsed by:Timeline
Symbol 507 GraphicUsed by:Timeline
Symbol 508 GraphicUsed by:Timeline
Symbol 509 GraphicUsed by:513
Symbol 510 GraphicUsed by:513
Symbol 511 GraphicUsed by:512
Symbol 512 MovieClipUses:511Used by:513
Symbol 513 MovieClipUses:366 509 510 512Used by:Timeline
Symbol 514 GraphicUsed by:515
Symbol 515 MovieClipUses:514Used by:Timeline
Symbol 516 TextUses:258Used by:Timeline
Symbol 517 GraphicUsed by:Timeline
Symbol 518 GraphicUsed by:Timeline
Symbol 519 GraphicUsed by:Timeline
Symbol 520 GraphicUsed by:Timeline
Symbol 521 GraphicUsed by:522
Symbol 522 MovieClipUses:521Used by:523 556 565
Symbol 523 MovieClipUses:522Used by:525
Symbol 524 GraphicUsed by:525
Symbol 525 MovieClipUses:523 524Used by:Timeline
Symbol 526 TextUses:258Used by:Timeline
Symbol 527 GraphicUsed by:Timeline
Symbol 528 GraphicUsed by:529
Symbol 529 MovieClipUses:528Used by:Timeline
Symbol 530 TextUses:258Used by:Timeline
Symbol 531 GraphicUsed by:Timeline
Symbol 532 GraphicUsed by:Timeline
Symbol 533 GraphicUsed by:Timeline
Symbol 534 GraphicUsed by:Timeline
Symbol 535 GraphicUsed by:Timeline
Symbol 536 GraphicUsed by:Timeline
Symbol 537 GraphicUsed by:538
Symbol 538 MovieClipUses:537Used by:Timeline
Symbol 539 TextUses:258Used by:Timeline
Symbol 540 GraphicUsed by:Timeline
Symbol 541 GraphicUsed by:542
Symbol 542 MovieClipUses:541Used by:Timeline
Symbol 543 TextUses:258Used by:Timeline
Symbol 544 GraphicUsed by:Timeline
Symbol 545 GraphicUsed by:Timeline
Symbol 546 GraphicUsed by:Timeline
Symbol 547 GraphicUsed by:Timeline
Symbol 548 GraphicUsed by:Timeline
Symbol 549 GraphicUsed by:Timeline
Symbol 550 GraphicUsed by:Timeline
Symbol 551 GraphicUsed by:Timeline
Symbol 552 GraphicUsed by:Timeline
Symbol 553 GraphicUsed by:Timeline
Symbol 554 GraphicUsed by:Timeline
Symbol 555 GraphicUsed by:Timeline
Symbol 556 MovieClipUses:522Used by:558
Symbol 557 GraphicUsed by:558
Symbol 558 MovieClipUses:556 557Used by:Timeline
Symbol 559 TextUses:258Used by:Timeline
Symbol 560 GraphicUsed by:Timeline
Symbol 561 GraphicUsed by:Timeline
Symbol 562 GraphicUsed by:Timeline
Symbol 563 GraphicUsed by:Timeline
Symbol 564 GraphicUsed by:Timeline
Symbol 565 MovieClipUses:522Used by:567
Symbol 566 GraphicUsed by:567
Symbol 567 MovieClipUses:565 566Used by:Timeline
Symbol 568 TextUses:258Used by:Timeline
Symbol 569 GraphicUsed by:Timeline
Symbol 570 GraphicUsed by:571
Symbol 571 MovieClipUses:570Used by:Timeline
Symbol 572 TextUses:258Used by:Timeline
Symbol 573 GraphicUsed by:Timeline
Symbol 574 GraphicUsed by:575
Symbol 575 MovieClipUses:574Used by:Timeline
Symbol 576 TextUses:258Used by:Timeline
Symbol 577 GraphicUsed by:Timeline
Symbol 578 GraphicUsed by:Timeline
Symbol 579 GraphicUsed by:Timeline
Symbol 580 GraphicUsed by:Timeline
Symbol 581 GraphicUsed by:Timeline
Symbol 582 GraphicUsed by:Timeline
Symbol 583 GraphicUsed by:Timeline
Symbol 584 GraphicUsed by:Timeline
Symbol 585 GraphicUsed by:Timeline
Symbol 586 GraphicUsed by:Timeline
Symbol 587 GraphicUsed by:588
Symbol 588 MovieClipUses:587Used by:Timeline
Symbol 589 TextUses:258Used by:Timeline
Symbol 590 GraphicUsed by:Timeline
Symbol 591 GraphicUsed by:Timeline
Symbol 592 GraphicUsed by:Timeline
Symbol 593 GraphicUsed by:Timeline
Symbol 594 GraphicUsed by:Timeline
Symbol 595 GraphicUsed by:Timeline
Symbol 596 GraphicUsed by:597
Symbol 597 MovieClipUses:596Used by:Timeline
Symbol 598 TextUses:258Used by:Timeline
Symbol 599 GraphicUsed by:Timeline
Symbol 600 MovieClipUses:72Used by:Timeline
Symbol 601 GraphicUsed by:602
Symbol 602 MovieClipUses:601Used by:Timeline
Symbol 603 TextUses:258Used by:Timeline
Symbol 604 GraphicUsed by:Timeline
Symbol 605 GraphicUsed by:Timeline
Symbol 606 GraphicUsed by:Timeline
Symbol 607 GraphicUsed by:Timeline
Symbol 608 GraphicUsed by:Timeline
Symbol 609 MovieClipUses:72Used by:Timeline
Symbol 610 GraphicUsed by:611
Symbol 611 MovieClipUses:610Used by:Timeline
Symbol 612 ButtonUses:72 144 145 146Used by:Timeline
Symbol 613 TextUses:258Used by:Timeline
Symbol 614 GraphicUsed by:Timeline
Symbol 615 GraphicUsed by:616
Symbol 616 MovieClipUses:615Used by:Timeline
Symbol 617 TextUses:258Used by:Timeline
Symbol 618 GraphicUsed by:Timeline
Symbol 619 GraphicUsed by:Timeline
Symbol 620 GraphicUsed by:Timeline
Symbol 621 GraphicUsed by:Timeline
Symbol 622 GraphicUsed by:Timeline
Symbol 623 GraphicUsed by:Timeline
Symbol 624 GraphicUsed by:Timeline
Symbol 625 GraphicUsed by:626
Symbol 626 MovieClipUses:625Used by:Timeline
Symbol 627 TextUses:258Used by:Timeline
Symbol 628 GraphicUsed by:Timeline
Symbol 629 GraphicUsed by:630
Symbol 630 MovieClipUses:629Used by:Timeline
Symbol 631 TextUses:258Used by:Timeline
Symbol 632 GraphicUsed by:Timeline
Symbol 633 GraphicUsed by:634
Symbol 634 MovieClipUses:633Used by:Timeline
Symbol 635 TextUses:258Used by:Timeline
Symbol 636 GraphicUsed by:Timeline
Symbol 637 GraphicUsed by:638
Symbol 638 MovieClipUses:637Used by:Timeline
Symbol 639 TextUses:258Used by:Timeline
Symbol 640 GraphicUsed by:Timeline
Symbol 641 GraphicUsed by:642
Symbol 642 MovieClipUses:641Used by:Timeline
Symbol 643 TextUses:258Used by:Timeline
Symbol 644 GraphicUsed by:Timeline
Symbol 645 GraphicUsed by:Timeline
Symbol 646 GraphicUsed by:Timeline
Symbol 647 GraphicUsed by:Timeline
Symbol 648 GraphicUsed by:Timeline
Symbol 649 GraphicUsed by:Timeline
Symbol 650 GraphicUsed by:Timeline
Symbol 651 GraphicUsed by:Timeline
Symbol 652 GraphicUsed by:Timeline
Symbol 653 GraphicUsed by:Timeline
Symbol 654 GraphicUsed by:Timeline
Symbol 655 GraphicUsed by:Timeline
Symbol 656 GraphicUsed by:Timeline
Symbol 657 GraphicUsed by:Timeline
Symbol 658 GraphicUsed by:Timeline
Symbol 659 GraphicUsed by:Timeline
Symbol 660 GraphicUsed by:Timeline
Symbol 661 GraphicUsed by:Timeline
Symbol 662 GraphicUsed by:Timeline
Symbol 663 GraphicUsed by:Timeline
Symbol 664 GraphicUsed by:Timeline
Symbol 665 GraphicUsed by:Timeline
Symbol 666 GraphicUsed by:Timeline
Symbol 667 GraphicUsed by:Timeline
Symbol 668 GraphicUsed by:Timeline
Symbol 669 GraphicUsed by:Timeline
Symbol 670 GraphicUsed by:Timeline
Symbol 671 GraphicUsed by:Timeline
Symbol 672 GraphicUsed by:Timeline
Symbol 673 GraphicUsed by:Timeline
Symbol 674 GraphicUsed by:Timeline
Symbol 675 GraphicUsed by:Timeline
Symbol 676 GraphicUsed by:Timeline
Symbol 677 GraphicUsed by:Timeline
Symbol 678 GraphicUsed by:Timeline
Symbol 679 GraphicUsed by:Timeline
Symbol 680 GraphicUsed by:Timeline
Symbol 681 GraphicUsed by:Timeline
Symbol 682 GraphicUsed by:Timeline
Symbol 683 GraphicUsed by:Timeline
Symbol 684 GraphicUsed by:Timeline
Symbol 685 GraphicUsed by:Timeline
Symbol 686 GraphicUsed by:Timeline
Symbol 687 GraphicUsed by:Timeline
Symbol 688 GraphicUsed by:Timeline
Symbol 689 GraphicUsed by:Timeline
Symbol 690 GraphicUsed by:Timeline
Symbol 691 GraphicUsed by:Timeline
Symbol 692 GraphicUsed by:Timeline
Symbol 693 GraphicUsed by:Timeline
Symbol 694 GraphicUsed by:Timeline
Symbol 695 GraphicUsed by:Timeline
Symbol 696 GraphicUsed by:Timeline
Symbol 697 GraphicUsed by:Timeline
Symbol 698 GraphicUsed by:Timeline
Symbol 699 GraphicUsed by:Timeline
Symbol 700 GraphicUsed by:Timeline
Symbol 701 GraphicUsed by:Timeline
Symbol 702 GraphicUsed by:Timeline
Symbol 703 GraphicUsed by:Timeline
Symbol 704 GraphicUsed by:Timeline
Symbol 705 GraphicUsed by:Timeline
Symbol 706 GraphicUsed by:Timeline
Symbol 707 GraphicUsed by:Timeline
Symbol 708 GraphicUsed by:Timeline
Symbol 709 GraphicUsed by:Timeline
Symbol 710 GraphicUsed by:Timeline
Symbol 711 GraphicUsed by:Timeline
Symbol 712 GraphicUsed by:Timeline
Symbol 713 GraphicUsed by:714
Symbol 714 MovieClipUses:713Used by:Timeline
Symbol 715 TextUses:258Used by:Timeline
Symbol 716 GraphicUsed by:Timeline
Symbol 717 GraphicUsed by:Timeline
Symbol 718 GraphicUsed by:719
Symbol 719 MovieClipUses:718Used by:Timeline
Symbol 720 TextUses:258Used by:Timeline
Symbol 721 GraphicUsed by:Timeline
Symbol 722 EditableTextUses:453Used by:729
Symbol 723 EditableTextUses:453Used by:729
Symbol 724 EditableTextUses:453Used by:729
Symbol 725 EditableTextUses:453Used by:729
Symbol 726 EditableTextUses:453Used by:729
Symbol 727 EditableTextUses:453Used by:729
Symbol 728 EditableTextUses:453Used by:729
Symbol 729 MovieClipUses:454 722 456 457 723 459 724 461 725 463 726 465 727 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 728Used by:Timeline
Symbol 730 GraphicUsed by:731
Symbol 731 MovieClipUses:730Used by:Timeline
Symbol 732 TextUses:258Used by:Timeline
Symbol 733 GraphicUsed by:Timeline
Symbol 734 GraphicUsed by:Timeline
Symbol 735 GraphicUsed by:736
Symbol 736 MovieClipUses:735Used by:Timeline
Symbol 737 TextUses:258Used by:Timeline
Symbol 738 GraphicUsed by:Timeline
Symbol 739 GraphicUsed by:740
Symbol 740 MovieClipUses:739Used by:Timeline
Symbol 741 TextUses:258Used by:Timeline
Symbol 742 GraphicUsed by:Timeline
Symbol 743 GraphicUsed by:744
Symbol 744 MovieClipUses:743Used by:Timeline
Symbol 745 TextUses:258Used by:Timeline
Symbol 746 GraphicUsed by:Timeline
Symbol 747 GraphicUsed by:748
Symbol 748 MovieClipUses:747Used by:Timeline
Symbol 749 TextUses:258Used by:Timeline
Symbol 750 GraphicUsed by:Timeline
Symbol 751 GraphicUsed by:Timeline
Symbol 752 GraphicUsed by:753
Symbol 753 MovieClipUses:752Used by:Timeline
Symbol 754 TextUses:258Used by:Timeline
Symbol 755 GraphicUsed by:Timeline
Symbol 756 GraphicUsed by:Timeline
Symbol 757 GraphicUsed by:Timeline
Symbol 758 GraphicUsed by:Timeline
Symbol 759 GraphicUsed by:Timeline
Symbol 760 GraphicUsed by:Timeline
Symbol 761 GraphicUsed by:Timeline
Symbol 762 GraphicUsed by:763
Symbol 763 MovieClipUses:762Used by:Timeline
Symbol 764 TextUses:258Used by:Timeline
Symbol 765 GraphicUsed by:805
Symbol 766 GraphicUsed by:805
Symbol 767 GraphicUsed by:805
Symbol 768 GraphicUsed by:805
Symbol 769 GraphicUsed by:805
Symbol 770 GraphicUsed by:772 805
Symbol 771 GraphicUsed by:805
Symbol 772 MovieClipUses:770Used by:805
Symbol 773 GraphicUsed by:805
Symbol 774 GraphicUsed by:805
Symbol 775 TextUses:415Used by:805
Symbol 776 TextUses:42Used by:805
Symbol 777 GraphicUsed by:805
Symbol 778 TextUses:415Used by:805
Symbol 779 TextUses:42Used by:805
Symbol 780 GraphicUsed by:805
Symbol 781 TextUses:415Used by:805
Symbol 782 TextUses:415Used by:805
Symbol 783 TextUses:42Used by:805
Symbol 784 GraphicUsed by:805
Symbol 785 TextUses:42Used by:805
Symbol 786 GraphicUsed by:805
Symbol 787 TextUses:415Used by:805
Symbol 788 TextUses:42Used by:805
Symbol 789 GraphicUsed by:805
Symbol 790 TextUses:415Used by:805
Symbol 791 TextUses:42Used by:805
Symbol 792 TextUses:415Used by:805
Symbol 793 TextUses:42Used by:805
Symbol 794 GraphicUsed by:805
Symbol 795 GraphicUsed by:805
Symbol 796 TextUses:42Used by:805
Symbol 797 GraphicUsed by:805
Symbol 798 GraphicUsed by:805
Symbol 799 TextUses:42Used by:805
Symbol 800 GraphicUsed by:805
Symbol 801 GraphicUsed by:805
Symbol 802 TextUses:42Used by:805
Symbol 803 TextUses:415Used by:805
Symbol 804 GraphicUsed by:805
Symbol 805 MovieClipUses:765 766 767 768 769 770 771 772 773 774 775 776 777 367 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804Used by:Timeline
Symbol 806 GraphicUsed by:Timeline
Symbol 807 GraphicUsed by:808
Symbol 808 MovieClipUses:807Used by:Timeline
Symbol 809 GraphicUsed by:810
Symbol 810 MovieClipUses:809Used by:Timeline
Symbol 811 GraphicUsed by:835
Symbol 812 TextUses:42Used by:835
Symbol 813 TextUses:42Used by:835
Symbol 814 ButtonUses:244 245 246 247 248Used by:835
Symbol 815 TextUses:42Used by:835
Symbol 816 TextUses:42Used by:835
Symbol 817 TextUses:42Used by:835
Symbol 818 GraphicUsed by:835
Symbol 819 TextUses:42Used by:835
Symbol 820 FontUsed by:821
Symbol 821 TextUses:42 820Used by:835
Symbol 822 TextUses:42Used by:835
Symbol 823 TextUses:42Used by:835
Symbol 824 TextUses:42Used by:835
Symbol 825 TextUses:42Used by:835
Symbol 826 TextUses:42Used by:835
Symbol 827 TextUses:42Used by:835
Symbol 828 TextUses:42Used by:835
Symbol 829 TextUses:42Used by:835
Symbol 830 TextUses:42Used by:835
Symbol 831 TextUses:42Used by:835
Symbol 832 TextUses:42Used by:835
Symbol 833 TextUses:42Used by:835
Symbol 834 TextUses:42Used by:835
Symbol 835 MovieClipUses:811 812 813 814 815 816 817 818 819 821 822 823 824 825 826 827 828 829 830 831 832 833 834Used by:Timeline
Symbol 836 GraphicUsed by:837
Symbol 837 MovieClipUses:836Used by:Timeline
Symbol 838 GraphicUsed by:841
Symbol 839 GraphicUsed by:841
Symbol 840 GraphicUsed by:841
Symbol 841 MovieClipUses:271 838 839 840Used by:Timeline
Symbol 842 GraphicUsed by:843
Symbol 843 MovieClipUses:842 367Used by:Timeline
Symbol 844 GraphicUsed by:847
Symbol 845 GraphicUsed by:847
Symbol 846 GraphicUsed by:847
Symbol 847 MovieClipUses:844 845 846Used by:Timeline
Symbol 848 GraphicUsed by:853
Symbol 849 GraphicUsed by:850
Symbol 850 MovieClipUses:849Used by:853
Symbol 851 GraphicUsed by:852
Symbol 852 MovieClipUses:851Used by:853
Symbol 853 MovieClipUses:848 850 852Used by:Timeline
Symbol 854 MovieClipUses:72Used by:Timeline
Symbol 855 TextUses:258Used by:Timeline
Symbol 856 GraphicUsed by:Timeline
Symbol 857 GraphicUsed by:858
Symbol 858 MovieClipUses:857Used by:Timeline
Symbol 859 TextUses:258Used by:Timeline
Symbol 860 GraphicUsed by:Timeline
Symbol 861 GraphicUsed by:862
Symbol 862 MovieClipUses:861Used by:Timeline
Symbol 863 TextUses:258Used by:Timeline
Symbol 864 GraphicUsed by:Timeline
Symbol 865 GraphicUsed by:Timeline
Symbol 866 GraphicUsed by:Timeline
Symbol 867 GraphicUsed by:Timeline
Symbol 868 GraphicUsed by:Timeline
Symbol 869 GraphicUsed by:Timeline
Symbol 870 GraphicUsed by:871
Symbol 871 MovieClipUses:870Used by:Timeline
Symbol 872 TextUses:258Used by:Timeline
Symbol 873 GraphicUsed by:Timeline
Symbol 874 GraphicUsed by:Timeline
Symbol 875 GraphicUsed by:Timeline
Symbol 876 GraphicUsed by:877
Symbol 877 MovieClipUses:876Used by:Timeline
Symbol 878 TextUses:258Used by:Timeline
Symbol 879 GraphicUsed by:Timeline
Symbol 880 GraphicUsed by:881
Symbol 881 MovieClipUses:880Used by:Timeline
Symbol 882 TextUses:258Used by:Timeline
Symbol 883 GraphicUsed by:Timeline
Symbol 884 GraphicUsed by:Timeline

Instance Names

"mainClear"Frame 3Symbol 175 MovieClip
"00"Frame 4Symbol 190 MovieClip
"10"Frame 4Symbol 190 MovieClip
"20"Frame 4Symbol 190 MovieClip
"30"Frame 4Symbol 190 MovieClip
"40"Frame 4Symbol 190 MovieClip
"50"Frame 4Symbol 190 MovieClip
"60"Frame 4Symbol 190 MovieClip
"70"Frame 4Symbol 190 MovieClip
"81"Frame 4Symbol 190 MovieClip
"91"Frame 4Symbol 190 MovieClip
"101"Frame 4Symbol 190 MovieClip
"111"Frame 4Symbol 190 MovieClip
"121"Frame 4Symbol 190 MovieClip
"131"Frame 4Symbol 190 MovieClip
"141"Frame 4Symbol 190 MovieClip
"151"Frame 4Symbol 190 MovieClip
"162"Frame 4Symbol 190 MovieClip
"172"Frame 4Symbol 190 MovieClip
"182"Frame 4Symbol 190 MovieClip
"192"Frame 4Symbol 190 MovieClip
"202"Frame 4Symbol 190 MovieClip
"212"Frame 4Symbol 190 MovieClip
"222"Frame 4Symbol 190 MovieClip
"232"Frame 4Symbol 190 MovieClip
"243"Frame 4Symbol 190 MovieClip
"253"Frame 4Symbol 190 MovieClip
"263"Frame 4Symbol 190 MovieClip
"273"Frame 4Symbol 190 MovieClip
"283"Frame 4Symbol 190 MovieClip
"293"Frame 4Symbol 190 MovieClip
"303"Frame 4Symbol 190 MovieClip
"313"Frame 4Symbol 190 MovieClip
"324"Frame 4Symbol 190 MovieClip
"334"Frame 4Symbol 190 MovieClip
"344"Frame 4Symbol 190 MovieClip
"354"Frame 4Symbol 190 MovieClip
"364"Frame 4Symbol 190 MovieClip
"374"Frame 4Symbol 190 MovieClip
"384"Frame 4Symbol 190 MovieClip
"394"Frame 4Symbol 190 MovieClip
"disLevelDisplayer"Frame 4Symbol 255 MovieClip
"2"Frame 5Symbol 271 MovieClip
"0"Frame 5Symbol 271 MovieClip
"1"Frame 5Symbol 271 MovieClip
"mainPlayer"Frame 5Symbol 355 MovieClip
"engBounds"Frame 5Symbol 357 MovieClip
"mainOverlay"Frame 5Symbol 385 MovieClip
"miscEntrance"Frame 5Symbol 392 MovieClip
"1"Frame 6Symbol 271 MovieClip
"2"Frame 6Symbol 271 MovieClip
"engBounds"Frame 6Symbol 396 MovieClip
"1"Frame 7Symbol 271 MovieClip
"2"Frame 7Symbol 271 MovieClip
"0"Frame 7Symbol 271 MovieClip
"3"Frame 7Symbol 271 MovieClip
"engBounds"Frame 7Symbol 408 MovieClip
"2"Frame 8Symbol 413 MovieClip
"1"Frame 8Symbol 413 MovieClip
"0"Frame 8Symbol 413 MovieClip
"5"Frame 8Symbol 413 MovieClip
"4"Frame 8Symbol 413 MovieClip
"3"Frame 8Symbol 413 MovieClip
"8"Frame 8Symbol 413 MovieClip
"7"Frame 8Symbol 413 MovieClip
"6"Frame 8Symbol 413 MovieClip
"mainThought"Frame 8Symbol 436 MovieClip
"levelReaction"Frame 8Symbol 443 MovieClip
"engBounds"Frame 8Symbol 445 MovieClip
"0"Frame 9Symbol 271 MovieClip
"1"Frame 9Symbol 271 MovieClip
"2"Frame 9Symbol 271 MovieClip
"mainPlayer"Frame 9Symbol 355 MovieClip
"levelSpeedTimer"Frame 9Symbol 491 MovieClip
"engBounds"Frame 9Symbol 493 MovieClip
"3"Frame 10Symbol 271 MovieClip
"2"Frame 10Symbol 271 MovieClip
"1"Frame 10Symbol 271 MovieClip
"0"Frame 10Symbol 271 MovieClip
"mainPlayer"Frame 10Symbol 355 MovieClip
"engBounds"Frame 10Symbol 503 MovieClip
"0"Frame 11Symbol 271 MovieClip
"1"Frame 11Symbol 271 MovieClip
"2"Frame 11Symbol 271 MovieClip
"mainThought"Frame 11Symbol 436 MovieClip
"engBounds"Frame 11Symbol 515 MovieClip
"0"Frame 12Symbol 271 MovieClip
"1"Frame 12Symbol 271 MovieClip
"2"Frame 12Symbol 271 MovieClip
"engBounds"Frame 12Symbol 525 MovieClip
"0"Frame 13Symbol 413 MovieClip
"2"Frame 13Symbol 413 MovieClip
"3"Frame 13Symbol 413 MovieClip
"1"Frame 13Symbol 413 MovieClip
"engBounds"Frame 13Symbol 529 MovieClip
"2"Frame 14Symbol 271 MovieClip
"3"Frame 14Symbol 271 MovieClip
"1"Frame 14Symbol 271 MovieClip
"4"Frame 14Symbol 271 MovieClip
"0"Frame 14Symbol 271 MovieClip
"engBounds"Frame 14Symbol 538 MovieClip
"0"Frame 15Symbol 271 MovieClip
"1"Frame 15Symbol 271 MovieClip
"mainPlayer"Frame 15Symbol 355 MovieClip
"levelSpeedTimer"Frame 15Symbol 491 MovieClip
"engBounds"Frame 15Symbol 542 MovieClip
"1"Frame 16Symbol 271 MovieClip
"2"Frame 16Symbol 271 MovieClip
"3"Frame 16Symbol 271 MovieClip
"4"Frame 16Symbol 271 MovieClip
"5"Frame 16Symbol 271 MovieClip
"6"Frame 16Symbol 271 MovieClip
"7"Frame 16Symbol 271 MovieClip
"8"Frame 16Symbol 271 MovieClip
"9"Frame 16Symbol 271 MovieClip
"10"Frame 16Symbol 271 MovieClip
"11"Frame 16Symbol 271 MovieClip
"mainPlayer"Frame 16Symbol 355 MovieClip
"engBounds"Frame 16Symbol 558 MovieClip
"1"Frame 17Symbol 271 MovieClip
"0"Frame 17Symbol 271 MovieClip
"2"Frame 17Symbol 271 MovieClip
"3"Frame 17Symbol 271 MovieClip
"engBounds"Frame 17Symbol 567 MovieClip
"engBounds"Frame 18Symbol 571 MovieClip
"0"Frame 19Symbol 413 MovieClip
"1"Frame 19Symbol 413 MovieClip
"2"Frame 19Symbol 413 MovieClip
"3"Frame 19Symbol 413 MovieClip
"4"Frame 19Symbol 413 MovieClip
"5"Frame 19Symbol 413 MovieClip
"6"Frame 19Symbol 413 MovieClip
"7"Frame 19Symbol 413 MovieClip
"engBounds"Frame 19Symbol 575 MovieClip
"0"Frame 20Symbol 271 MovieClip
"1"Frame 20Symbol 271 MovieClip
"2"Frame 20Symbol 271 MovieClip
"3"Frame 20Symbol 271 MovieClip
"4"Frame 20Symbol 271 MovieClip
"5"Frame 20Symbol 271 MovieClip
"6"Frame 20Symbol 271 MovieClip
"7"Frame 20Symbol 271 MovieClip
"8"Frame 20Symbol 271 MovieClip
"engBounds"Frame 20Symbol 588 MovieClip
"2"Frame 21Symbol 271 MovieClip
"1"Frame 21Symbol 271 MovieClip
"0"Frame 21Symbol 271 MovieClip
"3"Frame 21Symbol 271 MovieClip
"4"Frame 21Symbol 271 MovieClip
"engBounds"Frame 21Symbol 597 MovieClip
"mainPlayer"Frame 22Symbol 355 MovieClip
"engBounds"Frame 22Symbol 602 MovieClip
"0"Frame 23Symbol 271 MovieClip
"1"Frame 23Symbol 271 MovieClip
"2"Frame 23Symbol 271 MovieClip
"3"Frame 23Symbol 271 MovieClip
"mainPlayer"Frame 23Symbol 355 MovieClip
"levelLowVisibilty"Frame 23Symbol 609 MovieClip
"engBounds"Frame 23Symbol 611 MovieClip
"0"Frame 24Symbol 413 MovieClip
"1"Frame 24Symbol 413 MovieClip
"2"Frame 24Symbol 413 MovieClip
"3"Frame 24Symbol 413 MovieClip
"4"Frame 24Symbol 413 MovieClip
"5"Frame 24Symbol 413 MovieClip
"6"Frame 24Symbol 413 MovieClip
"7"Frame 24Symbol 413 MovieClip
"8"Frame 24Symbol 413 MovieClip
"9"Frame 24Symbol 413 MovieClip
"10"Frame 24Symbol 413 MovieClip
"11"Frame 24Symbol 413 MovieClip
"12"Frame 24Symbol 413 MovieClip
"13"Frame 24Symbol 413 MovieClip
"14"Frame 24Symbol 413 MovieClip
"15"Frame 24Symbol 413 MovieClip
"16"Frame 24Symbol 413 MovieClip
"17"Frame 24Symbol 413 MovieClip
"18"Frame 24Symbol 413 MovieClip
"19"Frame 24Symbol 413 MovieClip
"20"Frame 24Symbol 413 MovieClip
"21"Frame 24Symbol 413 MovieClip
"engBounds"Frame 24Symbol 616 MovieClip
"4"Frame 25Symbol 271 MovieClip
"0"Frame 25Symbol 271 MovieClip
"1"Frame 25Symbol 271 MovieClip
"5"Frame 25Symbol 271 MovieClip
"2"Frame 25Symbol 271 MovieClip
"3"Frame 25Symbol 271 MovieClip
"engBounds"Frame 25Symbol 626 MovieClip
"mainPlayer"Frame 26Symbol 355 MovieClip
"engBounds"Frame 26Symbol 630 MovieClip
"0"Frame 27Symbol 413 MovieClip
"1"Frame 27Symbol 413 MovieClip
"2"Frame 27Symbol 413 MovieClip
"3"Frame 27Symbol 413 MovieClip
"4"Frame 27Symbol 413 MovieClip
"5"Frame 27Symbol 413 MovieClip
"6"Frame 27Symbol 413 MovieClip
"mainPlayer"Frame 27Symbol 355 MovieClip
"engBounds"Frame 27Symbol 634 MovieClip
"mainPlayer"Frame 28Symbol 355 MovieClip
"engBounds"Frame 28Symbol 638 MovieClip
"mainPlayer"Frame 29Symbol 355 MovieClip
"levelSpeedTimer"Frame 29Symbol 491 MovieClip
"engBounds"Frame 29Symbol 642 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"0"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"13"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"11"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"1"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"3"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"8"Frame 30Symbol 271 MovieClip
"14"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"7"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"10"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"12"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"2"Frame 30Symbol 271 MovieClip
"5"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"9"Frame 30Symbol 271 MovieClip
"4"Frame 30Symbol 271 MovieClip
"6"Frame 30Symbol 271 MovieClip
"mainPlayer"Frame 30Symbol 355 MovieClip
"engBounds"Frame 30Symbol 714 MovieClip
"0"Frame 31Symbol 271 MovieClip
"mainPlayer"Frame 31Symbol 355 MovieClip
"engBounds"Frame 31Symbol 719 MovieClip
"0"Frame 32Symbol 413 MovieClip
"1"Frame 32Symbol 413 MovieClip
"4"Frame 32Symbol 413 MovieClip
"5"Frame 32Symbol 413 MovieClip
"2"Frame 32Symbol 413 MovieClip
"3"Frame 32Symbol 413 MovieClip
"mainPlayer"Frame 32Symbol 355 MovieClip
"levelSpeedTimer"Frame 32Symbol 729 MovieClip
"engBounds"Frame 32Symbol 731 MovieClip
"2"Frame 33Symbol 413 MovieClip
"1"Frame 33Symbol 271 MovieClip
"engBounds"Frame 33Symbol 736 MovieClip
"mainPlayer"Frame 34Symbol 355 MovieClip
"engBounds"Frame 34Symbol 740 MovieClip
"mainPlayer"Frame 35Symbol 355 MovieClip
"engBounds"Frame 35Symbol 744 MovieClip
"0"Frame 36Symbol 271 MovieClip
"1"Frame 36Symbol 271 MovieClip
"2"Frame 36Symbol 271 MovieClip
"3"Frame 36Symbol 271 MovieClip
"4"Frame 36Symbol 271 MovieClip
"engBounds"Frame 36Symbol 748 MovieClip
"0"Frame 37Symbol 271 MovieClip
"1"Frame 37Symbol 271 MovieClip
"2"Frame 37Symbol 271 MovieClip
"mainThought"Frame 37Symbol 436 MovieClip
"engBounds"Frame 37Symbol 753 MovieClip
"0"Frame 38Symbol 271 MovieClip
"1"Frame 38Symbol 271 MovieClip
"2"Frame 38Symbol 271 MovieClip
"4"Frame 38Symbol 271 MovieClip
"5"Frame 38Symbol 271 MovieClip
"7"Frame 38Symbol 271 MovieClip
"6"Frame 38Symbol 271 MovieClip
"engBounds"Frame 38Symbol 763 MovieClip
"levelMonitor"Frame 39Symbol 805 MovieClip
"levelTarget"Frame 39Symbol 808 MovieClip
"levelBlockVis"Frame 39Symbol 810 MovieClip
"0"Frame 39Symbol 271 MovieClip
"levelSpeach"Frame 39Symbol 835 MovieClip
"levelTurCir"Frame 39Symbol 837 MovieClip
"levelTutTur"Frame 39Symbol 841 MovieClip
"levelExit"Frame 39Symbol 843 MovieClip
"mainPlayer"Frame 39Symbol 355 MovieClip
"levelIntro"Frame 39Symbol 847 MovieClip
"engBounds"Frame 39Symbol 853 MovieClip
"levelFlash"Frame 39Symbol 854 MovieClip
"1"Frame 40Symbol 271 MovieClip
"mainPlayer"Frame 40Symbol 355 MovieClip
"engBounds"Frame 40Symbol 858 MovieClip
"0"Frame 41Symbol 271 MovieClip
"1"Frame 41Symbol 271 MovieClip
"2"Frame 41Symbol 271 MovieClip
"3"Frame 41Symbol 271 MovieClip
"4"Frame 41Symbol 271 MovieClip
"engBounds"Frame 41Symbol 862 MovieClip
"1"Frame 42Symbol 271 MovieClip
"0"Frame 42Symbol 271 MovieClip
"3"Frame 42Symbol 271 MovieClip
"2"Frame 42Symbol 271 MovieClip
"4"Frame 42Symbol 271 MovieClip
"5"Frame 42Symbol 271 MovieClip
"engBounds"Frame 42Symbol 871 MovieClip
"2"Frame 43Symbol 271 MovieClip
"3"Frame 43Symbol 271 MovieClip
"engBounds"Frame 43Symbol 877 MovieClip
"1"Frame 44Symbol 271 MovieClip
"0"Frame 44Symbol 271 MovieClip
"3"Frame 44Symbol 271 MovieClip
"2"Frame 44Symbol 271 MovieClip
"mainPlayer"Frame 44Symbol 355 MovieClip
"levelSpeedTimer"Frame 44Symbol 491 MovieClip
"engBounds"Frame 44Symbol 881 MovieClip
"mainPlayer"Frame 45Symbol 355 MovieClip
"preloaderBar"Symbol 53 MovieClip Frame 1Symbol 40 MovieClip
"bar2"Symbol 266 MovieClip Frame 1Symbol 264 MovieClip
"bar1"Symbol 266 MovieClip Frame 1Symbol 264 MovieClip
"vade"Symbol 355 MovieClip Frame 1Symbol 302 MovieClip
"vade"Symbol 355 MovieClip Frame 2Symbol 314 MovieClip
"vade"Symbol 355 MovieClip Frame 3Symbol 320 MovieClip
"vade"Symbol 355 MovieClip Frame 4Symbol 323 MovieClip
"vade"Symbol 355 MovieClip Frame 5Symbol 328 MovieClip
"vade"Symbol 355 MovieClip Frame 6Symbol 330 MovieClip
"vade"Symbol 355 MovieClip Frame 7Symbol 333 MovieClip
"vade"Symbol 355 MovieClip Frame 12Symbol 330 MovieClip
"cir2"Symbol 402 MovieClip Frame 1Symbol 401 MovieClip
"cir1"Symbol 402 MovieClip Frame 1Symbol 401 MovieClip
"bar3"Symbol 452 MovieClip Frame 1Symbol 264 MovieClip
"bar1"Symbol 452 MovieClip Frame 1Symbol 264 MovieClip
"bar2"Symbol 452 MovieClip Frame 1Symbol 264 MovieClip
"bar4"Symbol 452 MovieClip Frame 1Symbol 264 MovieClip
"levelMovingPlats2"Symbol 558 MovieClip Frame 1Symbol 556 MovieClip
"1"Symbol 841 MovieClip Frame 1Symbol 271 MovieClip
"block1"Symbol 853 MovieClip Frame 1Symbol 850 MovieClip
"block2"Symbol 853 MovieClip Frame 1Symbol 852 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 13 as "sprDeath"
ExportAssets (56)Timeline Frame 1Symbol 15 as "fxRedFire"
ExportAssets (56)Timeline Frame 1Symbol 20 as "bulRedFire"
ExportAssets (56)Timeline Frame 1Symbol 25 as "splshRedFire"
ExportAssets (56)Timeline Frame 1Symbol 27 as "bulPurpleLaser"
ExportAssets (56)Timeline Frame 1Symbol 28 as "bulPurpleLaser2"
ExportAssets (56)Timeline Frame 1Symbol 30 as "fxThrust"
ExportAssets (56)Timeline Frame 2Symbol 99 as "mscNormal"
ExportAssets (56)Timeline Frame 2Symbol 100 as "mscDance"
ExportAssets (56)Timeline Frame 2Symbol 101 as "mscHardcore"
ExportAssets (56)Timeline Frame 2Symbol 102 as "mscTitle"
ExportAssets (56)Timeline Frame 2Symbol 103 as "fxFart1"
ExportAssets (56)Timeline Frame 2Symbol 104 as "fxFart2"
ExportAssets (56)Timeline Frame 2Symbol 105 as "fxFart3"
ExportAssets (56)Timeline Frame 2Symbol 106 as "fxSelection"
ExportAssets (56)Timeline Frame 2Symbol 107 as "fxSelection2"

Labels

"frmMenu"Frame 3
"frmLevel"Frame 4
"cham28"Frame 5
"cham3"Frame 6
"cham36"Frame 7
"cham24"Frame 8
"cham37"Frame 9
"cham31"Frame 10
"cham11"Frame 11
"cham25"Frame 12
"cham12"Frame 13
"cham33"Frame 14
"cham18"Frame 15
"cham38"Frame 16
"cham17"Frame 17
"cham20"Frame 18
"cham26"Frame 19
"cham40"Frame 20
"cham6"Frame 21
"cham35"Frame 22
"cham23"Frame 23
"cham39"Frame 24
"cham30"Frame 25
"cham32"Frame 26
"cham27"Frame 27
"cham34"Frame 28
"cham29"Frame 29
"cham21"Frame 30
"cham22"Frame 31
"cham15"Frame 32
"cham13"Frame 33
"cham14"Frame 34
"cham16"Frame 35
"cham19"Frame 36
"cham2"Frame 37
"cham4"Frame 38
"cham1"Frame 39
"cham5"Frame 40
"cham10"Frame 41
"cham9"Frame 42
"cham7"Frame 43
"cham8"Frame 44
"cham"Frame 45
"frmSwitch"Frame 46
"frmComSwitch"Frame 47
"crawl"Symbol 314 MovieClip Frame 9
"stand"Symbol 355 MovieClip Frame 1
"crouch"Symbol 355 MovieClip Frame 2
"run"Symbol 355 MovieClip Frame 3
"jump"Symbol 355 MovieClip Frame 4
"fall"Symbol 355 MovieClip Frame 5
"dbljump"Symbol 355 MovieClip Frame 6
"walldrag"Symbol 355 MovieClip Frame 7
"getup"Symbol 355 MovieClip Frame 8
"dash"Symbol 355 MovieClip Frame 9
"dashstop"Symbol 355 MovieClip Frame 10
"hover"Symbol 355 MovieClip Frame 11
"dive"Symbol 355 MovieClip Frame 12
"death"Symbol 385 MovieClip Frame 2
"success"Symbol 385 MovieClip Frame 16
"jump"Symbol 436 MovieClip Frame 2
"dbljump"Symbol 436 MovieClip Frame 3
"sprjump"Symbol 436 MovieClip Frame 4
"walljump"Symbol 436 MovieClip Frame 5
"dash"Symbol 436 MovieClip Frame 6
"airdash"Symbol 436 MovieClip Frame 7
"crawl"Symbol 436 MovieClip Frame 8
"dive"Symbol 436 MovieClip Frame 9
"hover"Symbol 436 MovieClip Frame 10
"diasprjump"Symbol 436 MovieClip Frame 11
"reaction"Symbol 436 MovieClip Frame 12
"restart"Symbol 491 MovieClip Frame 97
"clear"Symbol 609 MovieClip Frame 189
"restart"Symbol 729 MovieClip Frame 97
"start"Symbol 805 MovieClip Frame 218
"high"Symbol 805 MovieClip Frame 228
"med"Symbol 805 MovieClip Frame 248
"low"Symbol 805 MovieClip Frame 274
"tutorial"Symbol 805 MovieClip Frame 301
"jump"Symbol 805 MovieClip Frame 345
"dbljump"Symbol 805 MovieClip Frame 346
"crawl"Symbol 805 MovieClip Frame 347
"sprjump"Symbol 805 MovieClip Frame 348
"dash"Symbol 805 MovieClip Frame 349
"airdash"Symbol 805 MovieClip Frame 350
"walljump"Symbol 805 MovieClip Frame 351
"dive"Symbol 805 MovieClip Frame 352
"hover"Symbol 805 MovieClip Frame 353
"diasprjump"Symbol 805 MovieClip Frame 354
"success"Symbol 805 MovieClip Frame 355
"flash2"Symbol 854 MovieClip Frame 32

Dynamic Text Variables

_root.percentPreloadedDisSymbol 43 EditableText"99%"
_root.percentPreloadedDisSymbol 48 EditableText"100%"
_root.totalDeathsFinalSymbol 151 EditableText"0"
_root.totalDeathsSymbol 234 EditableText"0"
_root.totalDeathsFinalSymbol 236 EditableText"0"
_root.totalDeathsFinalSymbol 242 EditableText"0"
_root.nameDisplaySymbol 254 EditableText"[Information]"
_root.totalDeathsSymbol 360 EditableText"99"
_root.displaySuccessSymbol 382 EditableText"[TEST]"
_root.engChamNumSymbol 388 EditableText"99"
_root.disTestNameSymbol 390 EditableText"[TEST HERE]"
_root.levelSecondsSymbol 455 EditableText"99"
_root.levelSecondsSymbol 458 EditableText"99"
_root.levelSecondsSymbol 460 EditableText"99"
_root.levelSecondsSymbol 462 EditableText"99"
_root.levelSecondsSymbol 464 EditableText"99"
_root.levelSecondsSymbol 466 EditableText"99"
_root.levelSecondsSymbol 490 EditableText"99"
_root.levelSecondsSymbol 722 EditableText"99"
_root.levelSecondsSymbol 723 EditableText"99"
_root.levelSecondsSymbol 724 EditableText"99"
_root.levelSecondsSymbol 725 EditableText"99"
_root.levelSecondsSymbol 726 EditableText"99"
_root.levelSecondsSymbol 727 EditableText"99"
_root.levelSecondsSymbol 728 EditableText"99"




http://swfchan.com/23/110207/info.shtml
Created: 13/3 -2019 22:33:29 Last modified: 13/3 -2019 22:33:29 Server time: 05/11 -2024 19:42:05