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

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

CyberShock - futuristic neo-arcade shooter game.swf

This is the info page for
Flash #135082

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


ActionScript [AS1/AS2]
Combined Code
movieClip 8 redEnemy { } movieClip 9 redEn { } // unknown tag 88 length 63 movieClip 14 fps { frame 1 { fps = 50; var timeinit = new Date(); var lasttime = timeinit.getMilliseconds(); onEnterFrame = function () { var v1 = new Date(); timepassed = v1.getMilliseconds() - lasttime >= 0 ? v1.getMilliseconds() - lasttime : 1000 + (v1.getMilliseconds() - lasttime); fps = Math.round(10000 / timepassed) / 10; lasttime = v1.getMilliseconds(); if (fps < 30) { trace('fps less than 30 frames per second =['); } }; } } movieClip 19 { frame 17 { stop(); } } movieClip 20 explosion { frame 1 { stop(); } } frame 1 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('3978bc9b', this, 10301, true); } frame 1 { mochi.as2.MochiServices.connect('acbf4f08a84d9700'); } frame 1 { mochi.as2.MochiAd.showPreGameAd({'id': 'acbf4f08a84d9700', 'res': '1280x1024'}); stop(); } button 24 { on (press) { getURL('www.armorgames.com', _blank); } } movieClip 25 { } movieClip 27 { } movieClip 29 { } // unknown tag 88 length 93 movieClip 33 { frame 1 { function myWidth(moveObj, newWidth) { moveObj.w = moveObj._width; moveObj.dwidth = newWidth - moveObj.w; moveObj.t = 0; NFRAMES = 6; moveObj.onEnterFrame = function () { if (moveObj.t++ < NFRAMES) { moveObj._width = easeOutQuad(moveObj.t, moveObj.w, moveObj.dwidth, NFRAMES); } else { delete this.onEnterFrame; } }; } function myMove(moveObj, newX) { moveObj.x = moveObj._x; moveObj.dx = newX - moveObj.x; moveObj.t = 0; NFRAMES = 6; moveObj.onEnterFrame = function () { if (moveObj.t++ < NFRAMES) { moveObj._x = easeOutQuad(moveObj.t, moveObj.x, moveObj.dx, NFRAMES); } else { delete this.onEnterFrame; } }; } percentLoaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); this.myWidth(this.loadBar, percentLoaded * 1.94); this.myMove(this.mc_loadNum, percentLoaded * 1.9 - 8); mc_loadNum.loadNum.text = percentLoaded; easeOutQuad = function (time, beginX, changeX, durationX) { time /= durationX / 2; if (time < 1) { return (changeX / 2) * time * time + beginX; } return (-changeX / 2) * (--time * (time - 2) - 1) + beginX; }; } frame 2 { if (percentLoaded < 100) { gotoAndPlay('loading'); } } frame 25 { _root.gotoAndPlay(2); } } frame 2 { function sitelock(urls_allowed) { lock = false; domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; for (x in urls_allowed) { if (urls_allowed[x] == real_domain[0]) { lock = false; } } if (lock) { _root.gotoAndStop('error'); } } urls_allowed = ['lazeronline.co.uk', 'www.lazeronline.co.uk', 'flashgamelicense.com', 'www.flashgamelicense.com']; sitelock(urls_allowed); } frame 2 { stop(); } frame 2 { _root.playerColour = 7; _root.laserColour = 7; _root.qual = 'LOW'; _root.autoAim = false; _root.playerCol = 7; _root.laserCol = 7; } // unknown tag 88 length 33 movieClip 40 { } movieClip 41 { } movieClip 42 { } movieClip 90 { frame 58 { stop(); } } movieClip 94 { } movieClip 95 { } movieClip 97 { } movieClip 98 { } movieClip 100 { } movieClip 104 { } movieClip 105 { } movieClip 107 { } movieClip 112 { } movieClip 118 { } movieClip 121 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 225 { _root.nextFrame(); } } movieClip 122 { frame 1 { stopAllSounds(); } frame 330 { stop(); } } movieClip 167 { frame 1 { stop(); } } frame 3 { stop(); var _mochiads_game_id = 'acbf4f08a84d9700'; Mouse.show(); Stage.showMenu = false; } frame 3 { _root._quality = 'HIGH'; i = 0; while (i < 30) { bullName = 'bullet' + i; removeMovieClip(_root[bullName]); ++i; } i = 0; while (i < 30) { bullName2 = 'ebullet' + i; removeMovieClip(_root[bullName2]); ++i; } g = 0; while (g < _root.enemies) { eName = 'enemy' + g; _root[eName].removeMovieClip(); ++g; } g = 0; while (g < _root.powerups) { powerUp = 'HealthPU' + g; _root[powerUp].removeMovieClip(); ++g; } a = 0; while (a < _root.hpBars) { barName = 'bossBar2' + a; barName2 = 'bossBar' + a; _root[barName].removeMovieClip(); _root[barName2].removeMovieClip(); ++a; } _root.targeter.removeMovieClip(); _root.pauseMenu.removeMovieClip(); _root.bScreen.removeMovieClip(); _root.bScreen.gotoAndStop(1); stopAllSounds(); _root.music = new Sound(this); _root.music.attachSound('menu'); _root.music.start(0, 99); kirupaSound66 = new Sound(this); kirupaSound66.attachSound('cybershock'); kirupaSound66.start(0, 1); var currentPosition = 0; var paused = false; _root.mute_btn.onRelease = function () { if (music.getVolume() > 0) { music.setVolume(0); _root.mute_btn.gotoAndStop(2); } else { music.setVolume(100); _root.mute_btn.gotoAndStop(1); } }; } movieClip 178 { } instance of movieClip 25 { onClipEvent (press) { getURL('http://www.armorgames.com', _blank); } } // unknown tag 88 length 62 // unknown tag 88 length 69 movieClip 186 { } button 187 { on (press) { getURL('http://www.facebook.com/ArmorGames', _blank); } } button 188 { on (press) { getURL('http://www.facebook.com/pages/Lazer/120531068016980', _blank); } } button 190 { on (press) { getURL('http://www.facebook.com/pages/Lazer/120531068016980', _blank); } } movieClip 199 { } button 203 { on (press) { getURL('http://www.lazeronline.co.uk/Flash/Games/Cybershock/buyMusic.html', _blank); } } movieClip 208 { frame 1 { stop(); } } movieClip 210 { } movieClip 214 { } button 216 { on (release) { gotoAndStop('startGame'); } } button 218 { on (release) { gotoAndStop('options'); } } movieClip 219 { } button 221 { on (release) { gotoAndStop('tutorial'); } } button 224 { on (release) { gotoAndStop('credits'); } } button 226 { on (press) { getURL('http://www.armorgames.com', _blank); } } // unknown tag 88 length 63 movieClip 235 { } movieClip 238 { } movieClip 241 { } movieClip 244 { } movieClip 245 { frame 1 { stop(); } frame 44 { stop(); } instance of movieClip 235 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle)) { kirupaSound = new Sound(this); kirupaSound.attachSound('healthRes'); kirupaSound.start(0, 1); if (_root.health < 100) { _root.health += 10; _root.hpBar._xscale = _root.health; } this.removeMovieClip(); } } } instance of movieClip 238 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle)) { if (_root.playerSpeed < 20) { _root.playerSpeed += 0.5; } this.removeMovieClip(); } } } instance of movieClip 241 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle)) { _root.playerDamage += 0.5; this.removeMovieClip(); } } } instance of movieClip 244 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle)) { if (_root.regen < 100) { _root.regen += 2.5; } this.removeMovieClip(); } } } } instance console of movieClip 245 { onClipEvent (load) { _visible = true; _visible = false; this.gotoAndPlay(2); } } // unknown tag 88 length 69 movieClip 252 { frame 1 { stop(); } frame 44 { stop(); } } instance credits of movieClip 252 { onClipEvent (load) { _visible = false; } } movieClip 253 { } movieClip 254 { frame 15 { stop(); } } frame 4 { stop(); } // unknown tag 88 length 99 movieClip 264 { } movieClip 273 { } movieClip 282 { } movieClip 284 { } movieClip 285 { frame 1 { _root.playerColour = 1; } frame 2 { _root.playerColour = 2; } frame 3 { _root.playerColour = 3; } frame 4 { _root.playerColour = 4; } frame 5 { _root.playerColour = 5; } frame 6 { _root.playerColour = 6; } frame 7 { _root.playerColour = 7; } } movieClip 288 { instance playerDEMO of movieClip 285 { onClipEvent (load) { this.bubble._visible = false; this.gotoAndStop(7); } } frame 20 { stop(); } instance playerDEMO of movieClip 285 { onClipEvent (load) { this.bubble._visible = false; this.gotoAndStop(7); } } } button 290 { on (press) { nextFrame(); } } movieClip 297 { } movieClip 300 { } movieClip 301 { } movieClip 302 { } movieClip 305 { } movieClip 306 { frame 20 { stop(); } } button 308 { on (press) { prevFrame(); } } movieClip 314 { } movieClip 316 { } movieClip 319 { frame 20 { stop(); } } movieClip 322 { } movieClip 328 { } movieClip 333 { instance of movieClip 328 { } } movieClip 334 { } movieClip 336 { } movieClip 337 { frame 1 { stop(); } } movieClip 341 { } movieClip 342 { instance melee1 of movieClip 337 { onClipEvent (load) { this.gotoAndStop(_root.colour); } } instance melee2 of movieClip 337 { onClipEvent (load) { this.gotoAndStop(_root.colour); } } instance melee3 of movieClip 337 { onClipEvent (load) { this.gotoAndStop(_root.colour); } } } movieClip 345 { } movieClip 350 { } movieClip 351 { } movieClip 356 { instance of movieClip 334 { onClipEvent (load) { this.gotoAndStop(1); this.bubble._visible = false; } } instance of movieClip 285 { onClipEvent (load) { this.gotoAndStop(1); this.bubble._visible = false; } } instance of movieClip 342 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { _rotation = _rotation + 15; } } instance ecircle of movieClip 351 { onClipEvent (load) { this.gotoAndStop(1); } } instance of movieClip 285 { onClipEvent (load) { this.gotoAndStop(1); this.bubble._visible = true; } } frame 20 { stop(); } instance of movieClip 334 { onClipEvent (load) { this.gotoAndStop(1); this.bubble._visible = false; } } instance of movieClip 285 { onClipEvent (load) { this.gotoAndStop(1); this.bubble._visible = false; } } instance of movieClip 342 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { _rotation = _rotation + 15; } } instance ecircle of movieClip 351 { onClipEvent (load) { this.gotoAndStop(1); } } instance of movieClip 285 { onClipEvent (load) { this.gotoAndStop(1); this.bubble._visible = true; } } } movieClip 361 { } movieClip 364 { } movieClip 367 { } movieClip 377 { frame 20 { stop(); } } button 378 { on (release) { _root.gotoAndStop('startGame'); } } movieClip 379 { frame 1 { stop(); } } button 381 { on (release) { gotoAndStop('tutorial'); _root.theScore = 0; _root.prog = 0; } } button 383 { on (release) { gotoAndStop('main'); } } button 384 { on (press) { getURL('http://www.armorgames.com', _blank); } } frame 5 { stop(); } frame 5 { _root._quality = 'LOW'; } movieClip 392 { frame 1 { stop(); } } movieClip 393 { frame 1 { _root.laserColour = 1; } frame 1 { stop(); } frame 2 { _root.laserColour = 2; } frame 3 { _root.laserColour = 3; } frame 4 { _root.laserColour = 4; } frame 5 { _root.laserColour = 5; } frame 6 { _root.laserColour = 6; } frame 7 { _root.laserColour = 7; } } // unknown tag 88 length 215 button 400 { on (press) { if (_root.playerColour == 7) { _root.optionsMenu.playerDEMO.gotoAndStop(1); _root.playerCol = 1; } else { _root.optionsMenu.playerDEMO.nextFrame(); ++_root.playerCol; } } } button 401 { on (press) { if (_root.playerColour == 1) { _root.optionsMenu.playerDEMO.gotoAndStop(7); _root.playerCol = 7; } else { _root.optionsMenu.playerDEMO.prevFrame(); --_root.playerCol; } } } button 402 { on (press) { if (_root.laserColour == 7) { _root.optionsMenu.laserDEMO.gotoAndStop(1); _root.laserCol = 1; } else { _root.optionsMenu.laserDEMO.nextFrame(); ++_root.laserCol; } } } button 403 { on (press) { if (_root.laserColour == 1) { _root.optionsMenu.laserDEMO.gotoAndStop(7); _root.laserCol = 7; } else { _root.optionsMenu.laserDEMO.prevFrame(); --_root.laserCol; } } } movieClip 405 { } button 407 { on (press) { _root.qual = 'LOW'; _root.optionsMenu.lowBtnON._visible = true; _root.optionsMenu.medBtnON._visible = false; _root.optionsMenu.hiBtnON._visible = false; } } button 409 { on (press) { _root.qual = 'MEDIUM'; _root.optionsMenu.lowBtnON._visible = false; _root.optionsMenu.medBtnON._visible = true; _root.optionsMenu.hiBtnON._visible = false; } } button 411 { on (press) { _root.qual = 'HIGH'; _root.optionsMenu.lowBtnON._visible = false; _root.optionsMenu.medBtnON._visible = false; _root.optionsMenu.hiBtnON._visible = true; } } button 413 { on (press) { _root.optionsMenu.autoAimOn._visible = true; _root.optionsMenu.autoAimOff._visible = false; _root.autoAim = true; } } button 415 { on (press) { _root.optionsMenu.autoAimOn._visible = false; _root.optionsMenu.autoAimOff._visible = true; _root.autoAim = false; } } movieClip 416 { frame 1 { _root.optionsMenu.lowBtnON._visible = true; _root.optionsMenu.medBtnON._visible = false; _root.optionsMenu.hiBtnON._visible = false; _root.optionsMenu.autoAimOff._visible = true; _root.optionsMenu.autoAimOn._visible = false; } instance playerDEMO of movieClip 285 { onClipEvent (load) { this.bubble._visible = false; this.gotoAndStop(7); } } instance laserDEMO of movieClip 393 { onClipEvent (load) { this.gotoAndStop(7); } } frame 20 { stop(); _root.optionsMenu.lowBtnON._visible = true; _root.optionsMenu.medBtnON._visible = false; _root.optionsMenu.hiBtnON._visible = false; _root.optionsMenu.autoAimOff._visible = true; _root.optionsMenu.autoAimOn._visible = false; } instance playerDEMO of movieClip 285 { onClipEvent (load) { this.bubble._visible = false; this.gotoAndStop(7); } } instance laserDEMO of movieClip 393 { onClipEvent (load) { this.gotoAndStop(7); } } } frame 6 { stop(); } button 423 { on (press) { getURL('http://www.lazeronline.co.uk', _blank); } } movieClip 425 { frame 75 { stop(); } } frame 7 { stop(); } button 429 { on (press) { _root.difficulty = 1; _root.gotoAndStop('game'); _root.theScore = 0; _root.prog = 0; } } button 431 { on (press) { _root.difficulty = 2; _root.gotoAndStop('game'); _root.theScore = 0; _root.prog = 0; } } button 433 { on (press) { _root.difficulty = 3; _root.gotoAndStop('game'); _root.theScore = 0; _root.prog = 0; } } // unknown tag 88 length 75 movieClip 445 { frame 133 { stop(); } } frame 8 { stop(); stopAllSounds(); Mouse.hide(); _root._quality = _root.qual; if (_root.difficulty == 1) { _root.healthVal = 25; _root.speedVal = 1; _root.fireVal = 4; _root.powerVal = 0.5; _root.difficultyOffset = 0; } if (_root.difficulty == 2) { _root.healthVal = 15; _root.speedVal = 0.85; _root.fireVal = 3.5; _root.powerVal = 0.4; _root.difficultyOffset = 10; } if (_root.difficulty == 3) { _root.healthVal = 10; _root.speedVal = 0.5; _root.fireVal = 2.5; _root.powerVal = 0.3; _root.difficultyOffset = 20; } _root.bScreen._visible = false; _root.music = new Sound(this); _root.music.attachSound('songMain'); _root.music.start(0, 99); var currentPosition = 0; var paused = false; _root.mute_btn.onRelease = function () { if (music.getVolume() > 0) { music.setVolume(0); _root.mute_btn.gotoAndStop(2); } else { music.setVolume(100); _root.mute_btn.gotoAndStop(1); } }; _root.barsOnStage = 0; _root.letsGo = false; _root.globalAim = false; _root.bubble = 0; _root.hpBars = 0; _root.powerups = 0; _root.enemiesOnStage = -3; _root.spawnRND = true; _root.string = 0; _root.stringTimer = 45; _root.stringTemp = 0; _root.strings._visible = false; _root.interval = false; topmargin = '0'; showMouse; bottommargin = '0'; leftmargin = '0'; rightmargin = '0'; _root.string = 0; _root.stringTimer = 45; _root.stringTemp = 0; _root.diedNum = 0; _root.powerupTime = 600; _root.lockedM = false; _root.pauseGame = false; _root.enLaserSpeed = 20; _root.sittingDuck = false; _root.advanced = false; _root.clicks = 0; _root.hit = 0; _root.fired = 0; _root.killed = 0; _root.colour; _root.exSpeed = 2; _root.drop = 7; _root.enHealth = 1; _root.enemyVal = 10; _root.enSize = 100; _root.enFireSpeed = 100; _root.scoreOnStage = 0; _root.theScore = 0; _root.prog = 0; _root.i = 0; _root.bullets = 0; _root.bullets2 = 0; _root.playerDamage = 5; _root.enemyDamage = 500; _root.powerups = 0; _root.globalDepth = 0; _root.explosions = 0; _root.enemies = 0; _root.brokenSize = 30; _root.bars = 0; _root.titPow._x = 3000; _root.invPow._y = 3000; } movieClip 447 { } movieClip 448 { instance of movieClip 447 { onClipEvent (enterFrame) { _x = _root.circle._x; _y = _root.circle._y; } } } instance laser of movieClip 393 { onClipEvent (load) { if (_visible == true) { kirupaSound66 = new Sound(this); kirupaSound66.attachSound('lazerP2'); kirupaSound66.start(0, 1); r = 200; speed = 65; _x = _root.circle._x - _root.offset2 + _root.offset1; _y = _root.circle._y - _root.offset2 + _root.offset1; this.gotoAndStop(_root.laserCol); _xscale = r; _yscale = r + random(_root.playerDamage * 20); rotationDirection = Math.round(180 - Math.atan2(_root.targeter._x - _root.circle._x, _root.targeter._y - _root.circle._y) * 180 / Math.PI); _rotation = rotationDirection; bulletAngle = (rotationDirection - 90) * Math.PI / 180; xSpeed = Math.cos(bulletAngle) * speed; ySpeed = Math.sin(bulletAngle) * speed; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { _y = _y + ySpeed; _x = _x + xSpeed; if (this._x > 1400 || this._x < -100 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } instance laserdown of movieClip 393 { onClipEvent (load) { if (_visible == true) { var damage = _root.enemyDamage; i = 0; r = 200; speed = _root.enLaserSpeed; slowSpeed = speed / 9; _xscale = r; _yscale = r; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { if (_root.bulletTime == false) { _y = _y + speed; } else { _y = _y + slowSpeed; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } instance laserright of movieClip 393 { onClipEvent (load) { if (_visible == true) { var damage = _root.enemyDamage; i = 0; r = 200; speed = _root.enLaserSpeed; slowSpeed = speed / 9; _xscale = r; _yscale = r; } } onClipEvent (enterFrame) { if (_root.pauseGame == false && _visible == true) { if (_root.bulletTime == false) { _x = _x + speed; } else { _x = _x + slowSpeed; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } instance laserleft of movieClip 393 { onClipEvent (load) { if (_visible == true) { var damage = _root.enemyDamage; i = 0; r = 200; speed = _root.enLaserSpeed; slowSpeed = speed / 9; _xscale = r; _yscale = r; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { if (_root.bulletTime == false) { _x = _x - speed; } else { _x = _x - slowSpeed; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } instance laserup of movieClip 393 { onClipEvent (load) { if (_visible == true) { var damage = _root.enemyDamage; i = 0; r = 200; speed = _root.enLaserSpeed; slowSpeed = speed / 9; _xscale = r; _yscale = r; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { if (_root.bulletTime == false) { _y = _y - speed; } else { _y = _y - slowSpeed; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } movieClip 451 { } instance rightUp of movieClip 393 { onClipEvent (load) { if (_visible == true) { var damage = _root.enemyDamage; i = 0; r = 200; speed = _root.enLaserSpeed; slowSpeed = speed / 9; _xscale = r; _yscale = r; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { if (_root.bulletTime == false) { _x = _x + speed; _y = _y - speed; } else { _x = _x + slowSpeed; _y = _y - slowSpeed; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } instance leftUp of movieClip 393 { onClipEvent (load) { if (_visible == true) { var damage = _root.enemyDamage; i = 0; r = 200; speed = _root.enLaserSpeed; slowSpeed = speed / 9; _xscale = r; _yscale = r; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { if (_root.bulletTime == false) { _x = _x - speed; _y = _y - speed; } else { _x = _x - slowSpeed; _y = _y - slowSpeed; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } instance rightDown of movieClip 393 { onClipEvent (load) { if (_visible == true) { var damage = _root.enemyDamage; i = 0; r = 200; speed = _root.enLaserSpeed; slowSpeed = speed / 9; _xscale = r; _yscale = r; } } onClipEvent (enterFrame) { if (_root.pauseGame == false) { if (_visible == true) { if (_root.bulletTime == false) { _x = _x + speed; _y = _y + speed; } else { _x = _x + slowSpeed; _y = _y + slowSpeed; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } instance leftDown of movieClip 393 { onClipEvent (load) { if (_visible == true) { var damage = _root.enemyDamage; i = 0; r = 200; speed = _root.enLaserSpeed; slowSpeed = speed / 9; _xscale = r; _yscale = r; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { if (_root.bulletTime == false) { _x = _x - speed; _y = _y + speed; } else { _x = _x - slowSpeed; _y = _y + slowSpeed; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } instance elaser of movieClip 393 { onClipEvent (load) { if (_visible == true) { kirupaSound66 = new Sound(this); kirupaSound66.attachSound('lazar'); kirupaSound66.start(0, 1); r = 200; speed = _root.enLaserSpeed * 4; this.gotoAndStop(_root.colour); _xscale = r; _yscale = r; var damage = _root.enemyDamage; rotationDirection = Math.round(180 - Math.atan2(_root.circle._x - _x, _root.circle._y - _y) * 180 / Math.PI); _rotation = rotationDirection; bulletAngle = (rotationDirection - 90) * Math.PI / 180; xSpeed = Math.cos(bulletAngle) * _root.enLaserSpeed; ySpeed = Math.sin(bulletAngle) * _root.enLaserSpeed; xMove = xSpeed; yMove = ySpeed; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { if (_root.bulletTime == false) { _y = _y + yMove; _x = _x + xMove; } else { _y = _y + yMove / 3; _x = _x + xMove / 3; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } instance alaser of movieClip 393 { onClipEvent (load) { if (_visible == true) { trace(_root.globalAim); xshoot = random(1280); yshoot = random(1024); enemyName = 'enemy' + _root.enemies; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('lazar'); kirupaSound66.start(0, 1); r = 200; speed = 65; this.gotoAndStop('player'); _xscale = r; _yscale = r; var damage = _root.enemyDamage; if (_root.globalAim == true) { rotationDirection = Math.round(180 - Math.atan2(_root.targeter._x - _x, _root.targeter._y - _y) * 180 / Math.PI); _rotation = rotationDirection; } if (_root.globalAim == false) { rotationDirection = Math.round(180 - Math.atan2(xshoot - _x, yshoot - _y) * 180 / Math.PI); _rotation = rotationDirection; } bulletAngle = (rotationDirection - 90) * Math.PI / 180; xSpeed = Math.cos(bulletAngle) * _root.enLaserSpeed; ySpeed = Math.sin(bulletAngle) * _root.enLaserSpeed; xMove = xSpeed; yMove = ySpeed; } } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { if (_root.bulletTime == false) { _y = _y + yMove; _x = _x + xMove; } else { _y = _y + yMove / 3; _x = _x + xMove / 3; } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } } movieClip 457 { } instance powStat1 of movieClip 457 { onClipEvent (load) { _alpha = 100; } onClipEvent (enterFrame) { if (_visible == true) { _y = _y - 2; _alpha = _alpha - 0.5; if (_alpha < 0) { trace('Garbage removed - PowerUp Display'); this.removeMovieClip(); } } } } movieClip 460 { } movieClip 461 { } movieClip 462 { } instance healthPow of movieClip 235 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle)) { if (_root.health < 100) { if (_root.health >= 100 - _root.healthVal) { _root.health = 100; } else { _root.health += _root.healthVal; } _root.hpBar._xscale = _root.health; _root.hpBar.gotoAndStop(Math.round(_root.health)); _root.backBar.gotoAndStop(Math.round(_root.health)); _root.healthPercentage = Math.round(_root.health) + '%'; kirupaSound = new Sound(this); kirupaSound.attachSound('healthUp'); kirupaSound.setVolume = 20; kirupaSound.start(0, 1); _root.powerUpStatusText = '+Health'; ++_root.scoreOnStage; plusVar = 'notice' + _root.scoreOnStage; duplicateMovieClip(_root.powStat1, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y - 20; this.removeMovieClip(); } } } } instance speedPow of movieClip 238 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle)) { percent = (_root.playerSpeed / 20) * 100; speedBar._xscale = percent; _root.powerDisplay.gotoAndPlay(1); _root.disPow = 'Speed increased'; kirupaSound = new Sound(this); kirupaSound.attachSound('speedUp'); kirupaSound.start(0, 1); _root.powerUpStatusText = '+Speed'; ++_root.scoreOnStage; plusVar = 'notice' + _root.scoreOnStage; duplicateMovieClip(_root.powStat1, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y - 20; if (_root.playerSpeed < 20) { _root.playerSpeed += _root.speedVal; percent = (_root.playerSpeed / 20) * 100; _root.speedBar._xscale = percent; } this.removeMovieClip(); } } } instance firePow of movieClip 241 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle)) { _root.playerDamage += _root.powerVal; _root.powerDisplay.gotoAndPlay(1); _root.disPow = 'Firepower increased'; if (_root.playerDamage < 20) { percent = (_root.playerDamage / 20) * 100; _root.powerBar._xscale = percent; } _root.laser._xscale += 5; _root.laser._yscale += 5; kirupaSound = new Sound(this); kirupaSound.attachSound('powerUp'); kirupaSound.start(0, 1); _root.powerUpStatusText = '+Firepower'; ++_root.scoreOnStage; plusVar = 'notice' + _root.scoreOnStage; duplicateMovieClip(_root.powStat1, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y - 20; this.removeMovieClip(); } } } instance shieldsPow of movieClip 244 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle)) { if (_root.regen < 100) { percent = (_root.regen / 100) * 100; _root.fspeedBar._xscale = percent; _root.regen += _root.fireVal; _root.powerDisplay.gotoAndPlay(1); _root.disPow = 'Firing speed increased'; kirupaSound = new Sound(this); kirupaSound.attachSound('fsUp'); kirupaSound.start(0, 1); _root.powerUpStatusText = '+Firing Speed'; ++_root.scoreOnStage; plusVar = 'notice' + _root.scoreOnStage; duplicateMovieClip(_root.powStat1, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y - 20; } this.removeMovieClip(); } } } instance titPow of movieClip 361 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle) && _root.invincible == false && _root.big == false && _root.bulletTime == false) { kirupaSound = new Sound(this); kirupaSound.attachSound('fatman'); kirupaSound.setVolume = 20; kirupaSound.start(0, 1); _root.powerUpStatusText = 'Titan!'; ++_root.scoreOnStage; plusVar = 'notice' + _root.scoreOnStage; duplicateMovieClip(_root.powStat1, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y - 20; _root.big = true; _root.powTimer += _root.powerupTime; _root.powBar.gotoAndStop(1); this.removeMovieClip(); } } } instance invPow of movieClip 364 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle) && _root.invincible == false && _root.big == false && _root.bulletTime == false) { kirupaSound = new Sound(this); kirupaSound.attachSound('untouchable'); kirupaSound.setVolume = 20; kirupaSound.start(0, 1); _root.powerUpStatusText = 'Invincible!'; ++_root.scoreOnStage; plusVar = 'notice' + _root.scoreOnStage; duplicateMovieClip(_root.powStat1, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y - 20; _root.invincible = true; _root.powTimer += _root.powerupTime; _root.powBar.gotoAndStop(80); this.removeMovieClip(); } } } instance timePow of movieClip 367 { onClipEvent (load) { } onClipEvent (enterFrame) { if (this.hitTest(_root.circle) && _root.invincible == false && _root.big == false && _root.bulletTime == false) { kirupaSound = new Sound(this); kirupaSound.attachSound('grow'); kirupaSound.setVolume = 20; kirupaSound.start(0, 1); _root.powerUpStatusText = 'Time Delay!'; ++_root.scoreOnStage; plusVar = 'notice' + _root.scoreOnStage; duplicateMovieClip(_root.powStat1, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y - 20; _root.bulletTime = true; _root.powTimer += _root.powerupTime; _root.powBar.gotoAndStop(60); this.removeMovieClip(); } } } instance circle of movieClip 285 { onClipEvent (load) { function shootDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserdown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop('red'); trace('Enemy Fired ' + bulletVal); } function shootUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserup, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop('red'); trace('Enemy Fired ' + bulletVal); } function shootRight() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserright, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop('red'); trace('Enemy Fired ' + bulletVal); } function shootLeft() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserleft, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop('red'); trace('Enemy Fired ' + bulletVal); } function shootLDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.leftDown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop('red'); trace('Enemy Fired ' + bulletVal); } function shootLUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.leftUp, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop('red'); trace('Enemy Fired ' + bulletVal); } function shootRUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.rightUp, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop('red'); trace('Enemy Fired ' + bulletVal); } function shootRDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.rightDown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop('red'); trace('Enemy Fired ' + bulletVal); } function growPowerUp() { if (_xscale < 500 && _root.powTimer > 0) { _yscale = _yscale + 5; _xscale = _xscale + 5; offset = true; } } _root.spawnGrace = 0; lives = 3; this.bubble._visible = false; damTaken = 0; _root.playerSpeed = 8; speed = _root.playerSpeed; fastSpeed = 20; shoot = false; _root.duds = 0; _root.bulletTime = false; _root.offset1 = 0; _root.offset2 = 0; m = 0; _root.dead = false; rebound = 0.1; i = 0; energy = 100; _root.health = 100; _root.regen = 10; this.gotoAndStop(_root.playerCol); _root.powTimer = 0; _root.invincible = false; _root.speeder = false; _root.big = false; _root.shield = 0; _root.hpBar._xscale = _root.health; _root.hpBar.gotoAndStop(Math.round(_root.health)); _root.healthPercentage = Math.round(_root.health) + '%'; } onClipEvent (enterFrame) { if (_root.spawnGrace > 0) { --_root.spawnGrace; _root.spawnGrace._alpha = random(100); } if (_root.health > 100) { _root.health = 100; } if (_alpha < 100) { _alpha = _alpha + 1; } if (Key.isDown(80)) { _root.pauseGame = true; _root.pauseMenu._x = 700; _root.pauseMenu._visible = true; _root.pauseMenu._y = 487.7; _root.pauseMenu.gotoAndPlay(2); _root.pauseMenu.swapDepths(_root.getNextHighestDepth()); } if (_root.dead == false) { if (_root.pauseGame == false) { if (energy < 100) { energy += _root.regen; } onMouseDown = function () { shoot = true; _root.globalAim = true; }; onMouseUp = function () { shoot = false; _root.globalAim = false; }; if (energy > 90 && shoot == true) { if (_root.big == true) { _root.offset1 = Math.random() * 60; _root.offset2 = Math.random() * 60; } else { _root.offset1 = Math.random() * _root.regen / 3; _root.offset2 = Math.random() * _root.regen / 3; } _root.accuracy = Math.round((_root.hit / _root.fired) * 100, 2) + '%'; _root.acc = Math.round((_root.hit / _root.fired) * 100, 2); bulletVal = 'bullet' + _root.bullets; _root[bulletVal].removeMovieClip(); duplicateMovieClip(_root.laser, bulletVal, _root.getNextHighestDepth()); if (_root.big == false) { energy = 0; } ++_root.bullets; ++_root.fired; trace('Fired ' + bulletVal); if (_root.bullets == 25) { _root.bullets = 0; } } if (_root.invincible == false && _alpha > 90 && _root.spawnGrace <= 0) { i = 0; while (i < 20) { nameVal = 'ebullet' + i; if (_root[nameVal].hitTest(_root.circle.hit)) { trace('Player hit by ' + nameVal + 'Player damaged by ' + _root[nameVal].damage + ' points.'); _root.health -= Math.round(_root.enemyDamage - _root.shield); _root.hpBar._xscale = _root.health; _root.hpBar.gotoAndStop(Math.round(_root.health)); _root.backBar.gotoAndStop(Math.round(_root.health)); _root.healthPercentage = Math.round(_root.health) + '%'; ++_root.duds; exNvar3 = 'dud' + _root.duds; duplicateMovieClip(_root.barSlice1, exNvar3, _root.getNextHighestDepth()); _root[exNvar3].gotoAndStop(Math.round(_root.health)); _root[exNvar3]._visible = true; _root[exNvar3]._xscale = Math.round(_root.enemyDamage - _root.shield); explos = 'smallShock' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explos, _root.getNextHighestDepth()); _root[explos].gotoAndStop(_root.colour); _root[explos]._alpha = 100; _root[explos]._x = _root[nameVal]._x + random(5) - random(5); _root[explos]._y = _root[nameVal]._y + random(5) - random(5); zoe = 30; _root[explos]._xscale = zoe; _root[explos]._yscale = zoe; _root[nameVal].removeMovieClip(); } ++i; } } if (duds > 30) { duds = 0; } if (Key.isDown(87) && _y > 70 || Key.isDown(38) && _y > 70) { _y = _y - speed; if (_root.bulletTime == true) { i = random(10); if (i == 1) { ++_root.duds; exNvar2 = 'dud' + _root.duds; duplicateMovieClip(_root.dud, exNvar2, _root.getNextHighestDepth()); _root[exNvar2]._x = this._x; _root[exNvar2]._y = this._y; } } } if (Key.isDown(83) && _y < 1024 || Key.isDown(40) && _y < 1024) { _y = _y + speed; if (_root.bulletTime == true) { i = random(10); if (i == 1) { ++_root.duds; exNvar2 = 'dud' + _root.duds; duplicateMovieClip(_root.dud, exNvar2, _root.getNextHighestDepth()); _root[exNvar2]._x = this._x; _root[exNvar2]._y = this._y; } } } if (Key.isDown(68) && _x < 1280 || Key.isDown(39) && _x < 1280) { _x = _x + speed; if (_root.bulletTime == true) { i = random(10); if (i == 1) { ++_root.duds; exNvar2 = 'dud' + _root.duds; duplicateMovieClip(_root.dud, exNvar2, _root.getNextHighestDepth()); _root[exNvar2]._x = this._x; _root[exNvar2]._y = this._y; } } } if (Key.isDown(65) && _x > 0 || Key.isDown(37) && _x > 0) { _x = _x - speed; if (_root.bulletTime == true) { i = random(10); if (i == 1) { ++_root.duds; exNvar2 = 'dud' + _root.duds; duplicateMovieClip(_root.dud, exNvar2, _root.getNextHighestDepth()); _root[exNvar2]._x = this._x; _root[exNvar2]._y = this._y; } } } percent = (_root.powTimer / _root.powerupTime) * 100; _root.powBar._xscale = percent; if (_root.powTimer <= 0) { _root.powBar._visible = false; } else { _root.powBar._visible = true; } if (this._x > 1280) { _x = 1280; } if (this._x < 0) { _x = 0; } if (this._y > 1024) { _y = 1024; } if (this._y < 70) { _y = 70; } if (_root.big == true) { _root.shield = _root.enemyDamage / 1.05; growPowerUp(); _root.powTimer -= 1; trace(_root.powTimer); } if (_root.powTimer <= 0) { _root.big = false; _root.shield = 0; if (_xscale > 100) { _yscale = _yscale - 5; _xscale = _xscale - 5; } } if (_root.invincible == true) { _root.powTimer -= 1; this.bubble._visible = true; _yscale = 100; _xscale = 100; } if (_root.powTimer <= 0) { _root.invincible = false; this.bubble._visible = false; } if (_root.bulletTime == true) { _root.powTimer -= 1; _yscale = 100; _xscale = 100; speed = _root.playerSpeed; } if (_root.powTimer <= 0) { _root.bulletTime = false; speed = _root.playerSpeed; } trace('There are ' + _root.enemiesOnStage + ' enemies on stage'); if (_root.health < 0) { kirupaSound66 = new Sound(this); kirupaSound66.attachSound('pDead'); kirupaSound66.start(0, 1); _root.bScreen.gotoAndPlay(1); _root.dead = true; _root.prog = _root.checkPoint; _root.bScreen._visible = true; i = 0; while (i < 100) { ++_root.explosions; exNvar = 'explosion' + _root.explosions; duplicateMovieClip(_root.brokenCubep, exNvar, _root.getNextHighestDepth()); _root[exNvar]._x = this._x; _root[exNvar]._y = this._y; _root.health = 0; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('lazerP2'); kirupaSound66.start(0, 1); ++i; } } } } } } instance engine of movieClip 285 { onClipEvent (load) { function birthRed() { _root.letsGo = true; ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.red, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.enemyVal = redVal; _root.drop = 7; _root.enSize = 100; _root.enHealth = 1; _root.enemyDamage = 1; _root.enSpeed = 4; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'red'; _root.bubble = 0; } function birthCircle() { ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.ecircle, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.enemyVal = redVal; _root.drop = 7; _root.enSize = 100; _root.enHealth = 1; _root.enemyDamage = 1; _root.enSpeed = 4; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'red'; _root.bubble = 0; } function birthOrange() { _root.enemyVal = orangeVal; ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.red, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.drop = 7; _root.enSize = 100; _root.enHealth = 10; _root.enemyDamage = 2; _root.enSpeed = 4; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'orange'; _root.bubble = 0; trace(bubble); } function birthCyan() { _root.enemyVal = yellowVal; ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.red, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.drop = 7; _root.enSize = 100; _root.enHealth = 15; _root.enemyDamage = 3; _root.enSpeed = 5; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'yellow'; _root.bubble = 0; } function birthGreen() { _root.enemyVal = greenVal; ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.red, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.drop = 7; _root.enSize = 100; _root.enHealth = 30; _root.enemyDamage = 4; _root.enSpeed = 6; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'green'; _root.bubble = 0; } function birthBlue() { _root.enemyVal = blueVal; ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.red, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.drop = 7; _root.enSize = 100; _root.enHealth = 45; _root.enemyDamage = 5; _root.enSpeed = 7; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'blue'; _root.bubble = 0; } function birthPurple() { _root.enemyVal = purpleVal; ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.red, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.drop = 7; _root.enSize = 100; _root.enHealth = 70; _root.enemyDamage = 6; _root.enSpeed = 9; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'violet'; _root.bubble = 0; } function birthSpin() { _root.spawnRND = true; ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.espinner, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.enemyVal = redVal; _root.drop = 7; _root.enSize = 100; _root.advanced = 0; _root.colour = 'red'; _root.bubble = 0; } function birthBoss() { ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.theBoss, enemyName, _root.enemies++); trace('God has given birth to ' + enemyName); _root.enemyVal = redVal; _root.drop = 7; _root.enSize = 100; _root.enHealth = 1; _root.enemyDamage = 1; _root.enSpeed = 4; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'red'; _root.bubble = 0; } function spawnHealth() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.healthPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); powXPos = random(1210) + 20; powYPos = random(944) + 70; _root[powerUp]._x = powXPos; _root[powerUp]._y = powYPos; } function spawnSpeed() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.speedPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); powXPos = random(1210) + 20; powYPos = random(944) + 70; _root[powerUp]._x = powXPos; _root[powerUp]._y = powYPos; } function spawnPower() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.firePow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); powXPos = random(1210) + 20; powYPos = random(944) + 70; _root[powerUp]._x = powXPos; _root[powerUp]._y = powYPos; } function spawnShields() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.shieldsPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); powXPos = random(1210) + 20; powYPos = random(944) + 70; _root[powerUp]._x = powXPos; _root[powerUp]._y = powYPos; } function spawnTitan() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.titPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); powXPos = random(1210) + 20; powYPos = random(944) + 70; _root[powerUp]._x = powXPos; _root[powerUp]._y = powYPos; } function spawnInvincible() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.invPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); powXPos = random(1210) + 20; powYPos = random(944) + 70; _root[powerUp]._x = powXPos; _root[powerUp]._y = powYPos; } function spawnTime() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.timePow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); powXPos = random(1210) + 20; powYPos = random(944) + 70; _root[powerUp]._x = powXPos; _root[powerUp]._y = powYPos; } _root.rBossCreated = false; _root.oBossCreated = false; _root.yBossCreated = false; _root.gBossCreated = false; _root.bBossCreated = false; _root.vBossCreated = false; redVal = 5; orangeVal = 10; yellowVal = 15; greenVal = 20; blueVal = 25; purpleVal = 30; _root.laser._visible = false; _root.invPow._visible = false; _root.titPow._visible = false; _root.lasterright._visible = false; _root.laserleft._visible = false; _root.laserup._visible = false; _root.laserdown._visible = false; i = 0; _root.brokenCube._visible = false; _root.brokenCubeo._visible = false; _root.brokenCubey._visible = false; _root.brokenCubeg._visible = false; _root.brokenCubeb._visible = false; _root.brokenCubev._visible = false; _root.brokenCubep._visible = false; _root.microBC._visible = false; _root.enSpeed = 0; wave = 1; bossCreated = false; w1 = 0; w2 = 100; w3 = 200; w4 = 500; w5 = 700; w6 = 1300; w7 = 1600; w8 = 1900; w9 = 2100; w10 = 2300; w11 = 2600; w12 = 2900; w13 = 3200; w14 = 3600; w15 = 4000; w16 = 4400; w17 = 4800; w18 = 5200; w19 = 5600; w20 = 6000; w21 = 6400; w22 = 6800; w23 = 7200; w24 = 7600; w25 = 8100; w26 = 8600; w27 = 9100; w28 = 9600; w29 = 10100; w30 = 10600; w31 = 11600; duplicateMovieClip(_root.waveOnScreen, 'textWave1', _root.getNextHighestDepth()); _root.textWave1; _root.prog; wave = 1; _root.waveOS = 'Wave 1'; maxEnemies = 7; } onClipEvent (enterFrame) { trace(_root.difficulty); trace(_root.healthVal); if (_root.pauseGame == false && !Key.isDown(32) && _root.enemiesOnStage < maxEnemies && _root.dead == false) { _root.waveOS = 'Wave ' + wave; if (_root.prog > w1 && _root.prog < w2) { if (wave != 1) { wave = 1; _root.waveOS = 'Wave 1'; _root.displayMe._alpha = 100; _root.checkPoint = w1 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('1'); kirupaSound66.start(0, 1); } } if (_root.prog > w2 && _root.prog < w3) { if (wave != 2) { wave = 2; _root.waveOS = 'Wave 2'; _root.displayMe._alpha = 100; _root.checkPoint = w1 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('2'); kirupaSound66.start(0, 1); } } if (_root.prog > w3 && _root.prog < w4) { if (wave != 3) { wave = 3; _root.waveOS = 'Wave 3'; _root.displayMe._alpha = 100; _root.checkPoint = w1 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('3'); kirupaSound66.start(0, 1); } } if (_root.prog > w4 && _root.prog < w5) { if (wave != 4) { wave = 4; _root.waveOS = 'Wave 4'; _root.displayMe._alpha = 100; _root.checkPoint = w1 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('4'); kirupaSound66.start(0, 1); } } if (_root.prog > w5 && _root.prog < w6) { if (wave != 5) { wave = 5; _root.waveOS = 'Wave 5'; _root.displayMe._alpha = 100; _root.checkPoint = w1 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('5'); kirupaSound66.start(0, 1); } } if (_root.prog > w6 && _root.prog < w7) { if (wave != 6) { wave = 6; _root.waveOS = 'Wave 6'; _root.displayMe._alpha = 100; _root.checkPoint = w6 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('6'); kirupaSound66.start(0, 1); } } if (_root.prog > w7 && _root.prog < w8) { if (wave != 7) { wave = 7; _root.waveOS = 'Wave 7'; _root.displayMe._alpha = 100; _root.checkPoint = w6 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('7'); kirupaSound66.start(0, 1); } } if (_root.prog > w8 && _root.prog < w9) { if (wave != 8) { wave = 8; _root.waveOS = 'Wave 8'; _root.displayMe._alpha = 100; _root.checkPoint = w6 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('8'); kirupaSound66.start(0, 1); } } if (_root.prog > w9 && _root.prog < w10) { if (wave != 9) { wave = 9; _root.waveOS = 'Wave 9'; _root.displayMe._alpha = 100; _root.checkPoint = w6 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('9'); kirupaSound66.start(0, 1); } } if (_root.prog > w10 && _root.prog < w11) { if (wave != 10) { wave = 10; _root.waveOS = 'Wave 10'; _root.displayMe._alpha = 100; _root.checkPoint = w6 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('10'); kirupaSound66.start(0, 1); } } if (_root.prog > w11 && _root.prog < w12) { if (wave != 11) { wave = 11; _root.waveOS = 'Wave 11'; _root.displayMe._alpha = 100; _root.checkPoint = w11 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('11'); kirupaSound66.start(0, 1); } } if (_root.prog > w12 && _root.prog < w13) { if (wave != 12) { wave = 12; _root.waveOS = 'Wave 12'; _root.displayMe._alpha = 100; _root.checkPoint = w11 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('12'); kirupaSound66.start(0, 1); } } if (_root.prog > w13 && _root.prog < w14) { if (wave != 13) { wave = 13; _root.waveOS = 'Wave 13'; _root.displayMe._alpha = 100; _root.checkPoint = w11 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('13'); kirupaSound66.start(0, 1); } } if (_root.prog > w14 && _root.prog < w15) { if (wave != 14) { wave = 14; _root.waveOS = 'Wave 14'; _root.displayMe._alpha = 100; _root.checkPoint = w11 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('14'); kirupaSound66.start(0, 1); } } if (_root.prog > w15 && _root.prog < w16) { if (wave != 15) { wave = 15; _root.waveOS = 'Wave 15'; _root.displayMe._alpha = 100; _root.checkPoint = w11 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('15'); kirupaSound66.start(0, 1); } } if (_root.prog > w16 && _root.prog < w17) { if (wave != 16) { wave = 16; _root.waveOS = 'Wave 16'; _root.displayMe._alpha = 100; _root.checkPoint = w16 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('16'); kirupaSound66.start(0, 1); } } if (_root.prog > w17 && _root.prog < w18) { if (wave != 17) { wave = 17; _root.waveOS = 'Wave 17'; _root.displayMe._alpha = 100; _root.checkPoint = w16 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('17'); kirupaSound66.start(0, 1); } } if (_root.prog > w18 && _root.prog < w19) { if (wave != 18) { wave = 18; _root.waveOS = 'Wave 18'; _root.displayMe._alpha = 100; _root.checkPoint = w16 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('18'); kirupaSound66.start(0, 1); } } if (_root.prog > w19 && _root.prog < w20) { if (wave != 19) { wave = 19; _root.waveOS = 'Wave 19'; _root.displayMe._alpha = 100; _root.checkPoint = w16 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('19'); kirupaSound66.start(0, 1); } } if (_root.prog > w20 && _root.prog < w21) { if (wave != 20) { wave = 20; _root.waveOS = 'Wave 20'; _root.displayMe._alpha = 100; _root.checkPoint = w16 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('20'); kirupaSound66.start(0, 1); } } if (_root.prog > w21 && _root.prog < w22) { if (wave != 21) { wave = 21; _root.waveOS = 'Wave 21'; _root.displayMe._alpha = 100; _root.checkPoint = w21 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('21'); kirupaSound66.start(0, 1); } } if (_root.prog > w22 && _root.prog < w23) { if (wave != 22) { wave = 22; _root.waveOS = 'Wave 22'; _root.displayMe._alpha = 100; _root.checkPoint = w21 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('22'); kirupaSound66.start(0, 1); } } if (_root.prog > w23 && _root.prog < w24) { if (wave != 23) { wave = 23; _root.waveOS = 'Wave 23'; _root.displayMe._alpha = 100; _root.checkPoint = w21 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('23'); kirupaSound66.start(0, 1); } } if (_root.prog > w24 && _root.prog < w25) { if (wave != 24) { wave = 24; _root.waveOS = 'Wave 24'; _root.displayMe._alpha = 100; _root.checkPoint = w21 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('24'); kirupaSound66.start(0, 1); } } if (_root.prog > w25 && _root.prog < w26) { if (wave != 25) { wave = 25; _root.waveOS = 'Wave 25'; _root.displayMe._alpha = 100; _root.checkPoint = w21 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('25'); kirupaSound66.start(0, 1); } } if (_root.prog > w26 && _root.prog < w27) { if (wave != 26) { wave = 26; _root.waveOS = 'Wave 26'; _root.displayMe._alpha = 100; _root.checkPoint = w26 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('26'); kirupaSound66.start(0, 1); } } if (_root.prog > w27 && _root.prog < w28) { if (wave != 27) { wave = 27; _root.waveOS = 'Wave 27'; _root.displayMe._alpha = 100; _root.checkPoint = w26 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('27'); kirupaSound66.start(0, 1); } } if (_root.prog > w28 && _root.prog < w29) { if (wave != 28) { wave = 28; _root.waveOS = 'Wave 28'; _root.displayMe._alpha = 100; _root.checkPoint = w26 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('28'); kirupaSound66.start(0, 1); } } if (_root.prog > w29 && _root.prog < w30) { if (wave != 29) { wave = 29; _root.waveOS = 'Wave 29'; _root.displayMe._alpha = 100; _root.checkPoint = w26 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('29'); kirupaSound66.start(0, 1); } } if (_root.prog > w30 && _root.prog < w31) { if (wave != 30) { wave = 30; _root.waveOS = 'Wave 30'; _root.displayMe._alpha = 100; _root.checkPoint = w26 + 1; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('30'); kirupaSound66.start(0, 1); } } if (_root.prog > w31) { wave = 31; } h = random(3000); if (h == 0) { spawnHealth(); } if (h == 1) { spawnSpeed(); } if (h == 2) { spawnShields(); } if (h == 3) { spawnPower(); } special = random(7000); if (special == 1) { spawnInvincible(); } if (special == 2) { spawnTitan(); } if (special == 3) { spawnTime(); } if (_root.health > 100) { _root.health = 100; _root.hpBar._xscale = 100; } if (wave == 1) { spawn = random(45 - _root.difficultyOffset); if (spawn == 0) { shooter = random(10); birthRed(); _root.enFireSpeed = 250; _root.enemyDamage = 2; _root.enSpeed = 4; _root.enSize = 100; _root.enHealth = 5 + random(5); _root.enemyVal = 5; _root.advanced = 1; _root.bubble = 0; } } if (wave == 2) { spawn = random(50 - _root.difficultyOffset); if (spawn == 0) { shooter = random(10); birthRed(); _root.enFireSpeed = 250; _root.enemyDamage = 2; _root.enSpeed = 4; _root.enSize = 100; _root.enHealth = 2 + random(5); _root.enemyVal = 5; _root.advanced = 1; _root.bubble = 0; } spawnSpin = random(100 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enSpeed = 4 + random(3); _root.enSize = 100; _root.enHealth = 2 + random(3); _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'red'; _root.enemyDamage = 2; } } if (wave == 3 || wave == 4) { spawn = random(40 - _root.difficultyOffset); if (spawn == 0) { birthRed(); _root.enFireSpeed = 90; _root.enemyDamage = 2; _root.enSpeed = 4 + random(3); _root.enSize = 100; _root.enHealth = 5 + random(8); _root.advanced = 1; _root.enemyVal = 5; } spawnSpin = random(90 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enSpeed = 4 + random(3); _root.enSize = 100; _root.enHealth = 7.5 + random(3); _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'red'; _root.enemyDamage = 2; } } if (wave == 5 && _root.rBossCreated == false && _root.enemiesOnStage < 1) { birthBoss(); _root.colour = 'red'; spawnHealth(); spawnHealth(); spawnHealth(); spawnShields(); _root.enemyDamage = 2; _root.enSpeed = 2; _root.enSize = 500; _root.enHealth = 1500; _root.enFireSpeed = 10; _root.drop = 200; _root.enemyVal = w6 - w5; _root.advanced = 1; _root.attackPattern = 1; _root.rBossCreated = true; _root.bubble = 0; } if (wave == 6 || wave == 7) { spawn = random(70 - _root.difficultyOffset); if (spawn == 0) { birthOrange(); _root.enFireSpeed = random(50) + 50; _root.enemyDamage = 2; _root.enSpeed = 3; _root.enSize = 100; _root.enHealth = 15 + random(5); _root.advanced = 1; _root.drop = 10; } spawnSpin = random(50 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enSpeed = 6 + random(5); _root.enSize = 100; _root.enHealth = 7.5 + random(3); _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'orange'; _root.enemyDamage = 2; } } if (wave == 8 || wave == 9) { spawnCircle = random(200 - _root.difficultyOffset); if (spawnCircle == 0) { birthCircle(); _root.enFireSpeed = 15 + random(30); _root.enemyDamage = 3; _root.enSpeed = 3 + random(3); _root.enSize = 100; _root.enHealth = 30; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'orange'; } spawn = random(80 - _root.difficultyOffset); if (spawn == 0) { birthOrange(); _root.enFireSpeed = random(40) + 60; _root.enemyDamage = 4; _root.enSpeed = 4 + random(3); _root.enSize = 100; _root.enHealth = 15 + random(7); _root.advanced = 1; _root.drop = 10; } spawnSpin = random(40 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 2; _root.enSpeed = 6 + random(5); _root.enSize = 100; _root.enHealth = 7.5 + random(5); _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'orange'; } } if (wave == 10 && _root.oBossCreated == false && _root.enemiesOnStage < 1) { birthBoss(); _root.colour = 'orange'; spawnHealth(); spawnHealth(); spawnShields(); _root.enemyDamage = 4; _root.enSpeed = 3; _root.enSize = 500; _root.enHealth = 4000; _root.enFireSpeed = 15; _root.drop = 200; _root.enemyVal = w11 - w10; _root.advanced = 1; _root.attackPattern = 2; _root.oBossCreated = true; _root.bubble = 0; } if (wave == 11 || wave == 12) { spawnCircle = random(250 - _root.difficultyOffset); if (spawnSpin == 0) { birthCircle(); _root.enFireSpeed = 15 + random(30); _root.enemyDamage = 3; _root.enSpeed = 3 + random(3); _root.enSize = 100; _root.enHealth = 30; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'yellow'; } spawnSpin = random(40 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 2; _root.enSpeed = 8 + random(6); _root.enSize = 100; _root.enHealth = 7.5; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'yellow'; _root.bubble = 0; } } if (wave == 13 || wave == 14) { spawnCircle = random(70 - _root.difficultyOffset); if (spawnSpin == 0) { birthCircle(); _root.enFireSpeed = 20 + random(30); _root.enemyDamage = 3; _root.enSpeed = 3 + random(3); _root.enSize = 100; _root.enHealth = 30; _root.advanced = 1; _root.enemyVal = 20; _root.colour = 'yellow'; } spawnSpin = random(40 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 2; _root.enSpeed = 9 + random(7); _root.enSize = 100; _root.enHealth = 10; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'yellow'; } } if (wave == 15 && _root.yBossCreated == false && _root.enemiesOnStage < 1) { birthBoss(); _root.colour = 'yellow'; spawnHealth(); spawnHealth(); spawnHealth(); spawnShields(); _root.enemyDamage = 5; _root.enSpeed = 3; _root.enSize = 500; _root.enHealth = 11000; _root.enFireSpeed = 10; _root.drop = 200; _root.enemyVal = w16 - w15; _root.advanced = 1; _root.attackPattern = 3; _root.yBossCreated = true; _root.bubble = 0; } if (wave == 16 || wave == 17) { spawn = random(400 - _root.difficultyOffset); if (spawn == 0) { birthGreen(); _root.enFireSpeed = random(50) + 40; _root.enemyDamage = 2; _root.enSpeed = 5; _root.enSize = 100; _root.enHealth = 20; _root.drop = 10; _root.advanced = 1; _root.bubble = 1; } spawnCircle = random(500 - _root.difficultyOffset); if (spawnSpin == 0) { birthCircle(); _root.enFireSpeed = 40 + random(40); _root.enemyDamage = 2; _root.enSpeed = 3 + random(3); _root.enSize = 100; _root.enHealth = 80; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'green'; } spawnSpin = random(30 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 1; _root.enSpeed = 10 + random(6); _root.enSize = 100; _root.enHealth = 10; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'green'; } } if (wave == 18 || wave == 19) { spawn = random(100 - _root.difficultyOffset); if (spawn == 0) { birthGreen(); _root.enFireSpeed = random(50) + 40; _root.enemyDamage = 3; _root.enSpeed = 5; _root.enSize = 100; _root.enHealth = 20; _root.drop = 10; _root.advanced = 1; _root.bubble = 1; } spawnCircle = random(300 - _root.difficultyOffset); if (spawnSpin == 0) { birthCircle(); _root.enFireSpeed = 40 + random(50); _root.enemyDamage = 3; _root.enSpeed = 3 + random(3); _root.enSize = 100; _root.enHealth = 80; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'green'; } spawnSpin = random(50 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 2; _root.enSpeed = 11 + random(6); _root.enSize = 100; _root.enHealth = 10; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'green'; } } if (wave == 20 && _root.gBossCreated == false && _root.enemiesOnStage < 1) { birthBoss(); _root.colour = 'green'; spawnHealth(); spawnHealth(); spawnHealth(); spawnHealth(); spawnHealth(); spawnHealth(); spawnShields(); _root.enemyDamage = 6; _root.enSpeed = 3; _root.enSize = 500; _root.enHealth = 20000; _root.enFireSpeed = 8; _root.drop = 200; _root.enemyVal = w21 - w20; _root.advanced = 1; _root.attackPattern = 4; _root.bubble = 1; _root.gBossCreated = true; } if (wave == 21 || wave == 22) { spawn = random(100 - _root.difficultyOffset); if (spawn == 0) { birthBlue(); _root.enFireSpeed = random(50) + 50; _root.enemyDamage = 3; _root.enSpeed = 5; _root.enSize = 100; _root.enHealth = 20; _root.drop = 10; _root.advanced = 1; _root.bubble = 1; } spawnCircle = random(300 - _root.difficultyOffset); if (spawnSpin == 0) { birthCircle(); _root.enFireSpeed = 50 + random(50); _root.enemyDamage = 3; _root.enSpeed = 3 + random(3); _root.enSize = 100; _root.enHealth = 80; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'blue'; } spawnSpin = random(50 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 2; _root.enSpeed = 5 + random(10); _root.enSize = 100; _root.enHealth = 10; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'blue'; } } if (wave == 23 || wave == 24) { spawn = random(400 - _root.difficultyOffset); if (spawn == 0) { birthGreen(); _root.enFireSpeed = random(20) + 30; _root.enemyDamage = 2; _root.enSpeed = 5; _root.enSize = 100; _root.enHealth = 200; _root.drop = 10; _root.advanced = 1; _root.bubble = 1; _root.colour = 'blue'; } spawnCircle = random(450 - _root.difficultyOffset); if (spawnSpin == 0) { birthCircle(); _root.enFireSpeed = 20 + random(20); _root.enemyDamage = 2; _root.enSpeed = 4 + random(5); _root.enSize = 100; _root.enHealth = 100; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'blue'; } spawnSpin = random(40 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 2; _root.enSpeed = 10 + random(5); _root.enSize = 100; _root.enHealth = 90; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'blue'; } } if (wave == 25 && _root.bBossCreated == false && _root.enemiesOnStage < 1) { birthBoss(); _root.colour = 'blue'; spawnHealth(); spawnHealth(); spawnShields(); _root.enemyDamage = 6; _root.enSpeed = 4; _root.enSize = 500; _root.enHealth = 30000; _root.enFireSpeed = 7; _root.drop = 200; _root.enemyVal = w26 - w25; _root.advanced = 1; _root.bubble = 1; _root.attackPattern = 5; _root.bBossCreated = true; } if (wave == 26) { spawnSpin = random(10); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 3; _root.enSpeed = 15 + random(5); _root.enSize = 100; _root.enHealth = 15; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'violet'; } } if (wave == 27) { spawnCircle = random(40 - _root.difficultyOffset); if (spawnCircle == 0) { birthCircle(); _root.enFireSpeed = 20 + random(25); _root.enemyDamage = 3; _root.enSpeed = 5 + random(6); _root.enSize = 100; _root.enHealth = 220; _root.advanced = 1; _root.enemyVal = 20; _root.colour = 'violet'; } } if (wave == 28 || wave == 29) { spawn = random(190 - _root.difficultyOffset); if (spawn == 0) { birthPurple(); _root.enFireSpeed = random(40) + 20; _root.enemyDamage = 3; _root.enSpeed = 10 + random(5); _root.enSize = 100; _root.enHealth = 200; _root.drop = 10; _root.advanced = 1; _root.bubble = 1; _root.colour = 'violet'; } spawnCircle = random(300 - _root.difficultyOffset); if (spawnSpin == 0) { birthCircle(); _root.enFireSpeed = 30 + random(15); _root.enemyDamage = 3; _root.enSpeed = 1 + random(5); _root.enSize = 100; _root.enHealth = 250; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'violet'; } spawnSpin = random(100 - _root.difficultyOffset); if (spawnSpin == 0) { birthSpin(); _root.enemyDamage = 2; _root.enSpeed = 10 + random(10); _root.enSize = 100; _root.enHealth = 15; _root.advanced = 1; _root.enemyVal = 5; _root.colour = 'violet'; } } if (wave == 30 && _root.vBossCreated == false && _root.enemiesOnStage < 1) { birthBoss(); spawnHealth(); spawnHealth(); spawnHealth(); spawnHealth(); spawnHealth(); spawnHealth(); spawnShields(); _root.enemyDamage = 7; _root.enSpeed = 5; _root.enSize = 500; _root.enHealth = 70000; _root.enFireSpeed = 6; _root.drop = 300; _root.enemyVal = w31 - w30; _root.advanced = 1; _root.attackPattern = 6; _root.vBossCreated = true; _root.colour = 'violet'; _root.bubble = 1; } if (wave == 31) { _root.waveOS = 'Wave 30'; _root.gotoAndStop('scores'); } } } } movieClip 464 { } movieClip 465 { } instance brokenCube of movieClip 465 { onClipEvent (load) { if (_visible == true) { _alpha = 100; s = random(60) + _root.brokenSize; dir = random(12); if (_root.bulletTime == false) { speed = random(30) + _root.exSpeed; } else { speed = _root.exSpeed / 3 + random(30); } r = random(30); stageTime = 1000 + random(1000); } } onClipEvent (enterFrame) { if (_visible == true) { if (speed > 0) { speed -= 0.5; } _alpha = _alpha - 5; if (_alpha < 0) { this.removeMovieClip(); } _xscale = s; _yscale = s; _rotation = _rotation + r; if (dir == 0) { _x = _x + (random(3) + speed); _y = _y + (random(3) + speed); } if (dir == 1) { _x = _x + (random(3) - speed); _y = _y - (random(3) - speed); } if (dir == 2) { _x = _x - (random(3) + speed); _y = _y + (random(3) + speed); } if (dir == 3) { _x = _x - (random(3) - speed); _y = _y - (random(3) - speed); } if (dir == 4) { _x = _x - (random(4) + speed); _y = _y - random(3); } if (dir == 5) { _x = _x - (random(4) + speed); _y = _y + random(3); } if (dir == 6) { _x = _x + (random(4) + speed); _y = _y - random(3); } if (dir == 7) { _x = _x + (random(4) + speed); _y = _y + random(3); } if (dir == 8) { _x = _x + random(3); _y = _y - (random(4) + speed); } if (dir == 9) { _x = _x - random(3); _y = _y - (random(4) + speed); } if (dir == 10) { _x = _x - random(3); _y = _y + (random(4) + speed); } if (dir == 11) { _x = _x + random(3); _y = _y + (random(4) + speed); } } } } movieClip 466 { frame 10 { stop(); } frame 21 { stop(); } frame 32 { stop(); } frame 45 { stop(); } } instance soundEngine of movieClip 466 { onClipEvent (load) { _root.healthPow._x = 999999; _root.speedPow._x = 999999; _root.firePow._x = 999999; _root.shieldsPow._x = 999999; _root.timePow._x = 99988; _root.dud._visible = false; _root.barSlice1._visible = false; _root.laserright._visible = false; _root.rightDown._visible = false; _root.powStat1.enabled = false; _root.barSlice1._visible = false; _root.powStat1._visible = false; _root.plusOne._visible = false; _root.laser.enabled = false; _root.elaser._visible = false; _root.alaser._visible = false; _root.barSlice1._visible = false; _root.enBar._visible = false; _root.powBar._visible = false; _root.red.enabled = false; _root.red._visible = false; _root.redExplosion._visible = false; _root.ecircle.enabled = false; _root.ecircle._visible = false; _root.espinner.enabled = false; _root.espinner._visible = false; _root.theBoss.enabled = false; _root.theBoss._visible = false; _root.aidAI._visible = false; _root.aidAI.enabled = false; _root.orange.enabled = false; _root.yellow.enabled = false; _root.green.enabled = false; _root.blue.enabled = false; _root.purple.enabled = false; _root.healthPow.enabled = false; _root.red._x = 999999; _root.orange._x = 999999; _root.yellow._x = 999999; _root.green._x = 999999; _root.blue._x = 999999; _root.purple._x = 999999; _root.rightUp._visible = false; _root.rightDown._visible = false; _root.powStat.enabled = false; _root.leftUp._visible = false; _root.leftDown._visible = false; } } instance red of movieClip 285 { onClipEvent (load) { function right() { if (_root.bulletTime == false) { _x = _x + fixedSpeed; } else { _x = _x + slowSpeed; } } function left() { if (_root.bulletTime == false) { _x = _x - fixedSpeed; } else { _x = _x - slowSpeed; } } function up() { if (_root.bulletTime == false) { _y = _y - fixedSpeed; } else { _y = _y - slowSpeed; } } function down() { if (_root.bulletTime == false) { _y = _y + fixedSpeed; } else { _y = _y + slowSpeed; } } function shootDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserdown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace(this + ' Fired ' + bulletVal); } function shootUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserup, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace(this + ' Fired ' + bulletVal); } function shootRight() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserright, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace(this + ' Fired ' + bulletVal); } function shootLeft() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserleft, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace(this + ' Fired ' + bulletVal); } function shootLDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.leftDown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace(this + ' Fired ' + bulletVal); } function shootLUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.leftUp, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace(this + ' Fired ' + bulletVal); } function shootRUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.rightUp, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace(this + ' Fired ' + bulletVal); } function shootRDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.rightDown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace(this + ' Fired ' + bulletVal); } function spawnHealth() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.healthPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnSpeed() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.speedPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnPower() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.firePow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnShields() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.shieldsPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } this.bubble._visible = false; if (_root.bubble == 1) { shieldsOn = true; } else { shieldsOn = false; } protection = false; bubbleTimer = 200; barName2 = 'bossBar2' + _root.hpBars++; duplicateMovieClip(_root.enBar, barName2, _root.getNextHighestDepth()); _root[barName2]._x = _x - 28.125; _root[barName2]._y = _y - 40; _root[barName2]._alpha = 50; _root[barName2]._xscale = 6.25; _root[barName2]._yscale = 50; barName = 'bossBar' + _root.hpBars++; duplicateMovieClip(_root.enBar, barName, _root.getNextHighestDepth()); _root[barName]._x = _x - 28.125; _root[barName]._y = _y - 40; _root[barName]._xscale = 6.25; _root[barName]._yscale = 50; _root[barName]._visible = false; _root[barName2]._visible = false; ++_root.enemiesOnStage; if (this.enabled == true) { _visible = true; } advanced = _root.advanced; var dead = false; speed = _root.enSpeed; fixedSpeed = speed; slowSpeed = speed / 2; rebound = 6; i = 0; health = _root.enHealth; staticHealth = health; moveS = random(5); size = _root.enSize; pow = random(75); val = _root.enemyVal; maxDrop = _root.drop; regen = _root.enFireSpeed; slowRegen = regen * 2; colour = _root.colour; e = 0; j = 0; this.gotoAndStop(colour); loc = random(2) + 1; if (loc == 1) { _x = random(1340); _y = 1044; } if (loc == 2) { _x = 1320; _y = random(1000) + 90; } if (loc == 3) { _x = -40; _y = random(1000) + 90; } } onClipEvent (enterFrame) { if (this.enabled == true && _visible == true) { if (_root.pauseGame == false) { if (shieldsOn == true) { --bubbleTimer; if (bubbleTimer > 0) { this.bubble._visible = true; protection = true; } else { this.bubble._visible = false; protection = false; } if (bubbleTimer < 100) { this.bubble._alpha = bubbleTimer; } if (bubbleTimer < -100) { bubbleTimer = 200; this.bubble._alpha = 100; } } if (_root.targeter.hit.hitTest(this)) { _root.lockedM = true; _root.targeter._x = _x; _root.targeter._y = _y; } _xscale = size; _yscale = size; if (_x > 20 && _x < 1260 && _y > 20 && _y < 1004) { if (_root.bulletTime == false) { att = random(regen); } else { att = random(slowRegen); } } if (_xscale > 100) { laserOffSetP = Math.abs(Math.random() * 60); laserOffSetM = Math.abs(Math.random() * 60); } else { laserOffSetP = 0; laserOffSetM = 0; } if (_root.bullets2 > 20) { _root.bullets2 = 0; } if (_root.circle._x > this._x && att == 0) { shootRight(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (_root.circle._x < this._x && att == 1) { shootLeft(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (_root.circle._y < this._y && att == 2) { shootUp(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (_root.circle._y > this._y && att == 3) { shootDown(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (advanced == 1) { if (_root.circle._y < this._y && _root.circle._x < this._x && att == 4) { shootLUp(); } if (_root.circle._y < this._y && _root.circle._x > this._x && att == 5) { shootRUp(); } if (_root.circle._y > this._y && _root.circle._x < this._x && att == 6) { shootLDown(); } if (_root.circle._y > this._y && _root.circle._x > this._x && att == 7) { shootRDown(); } } if (moveS == 0) { if (this._y > _root.circle._y && dead == false) { up(); if (this._x > _root.circle._x) { left(); } } if (this._y < _root.circle._y && dead == false) { down(); if (this._x < _root.circle._x) { right(); } } } if (moveS == 1) { if (this._y > _root.circle._y && dead == false) { up(); } if (this._x > _root.circle._x) { left(); } if (this._y < _root.circle._y && dead == false) { down(); } if (this._x < _root.circle._x) { right(); } } if (moveS == 2) { if (this._y > _root.circle._y && dead == false) { up(); if (this._x < _root.circle._x) { right(); } } if (this._y < _root.circle._y && dead == false) { down(); if (this._x > _root.circle._x) { left(); } } } if (moveS == 3) { if (this._x > _root.circle._x) { left(); if (this._y > _root.circle._y && dead == false) { up(); } } if (this._x < _root.circle._x) { right(); if (this._y < _root.circle._y && dead == false) { down(); } } } if (moveS == 4) { if (this._x > _root.circle._x) { left(); if (this._y < _root.circle._y && dead == false) { down(); } } if (this._x < _root.circle._x) { right(); if (this._y > _root.circle._y && dead == false) { up(); } } } _root[barName2]._x = _x - 28.125; _root[barName2]._y = _y - 40; _root[barName]._x = _x - 28.125; _root[barName]._y = _y - 40; _root[barName]._xscale = (health / staticHealth) * 100 / 16; _root[barName].gotoAndStop(Math.round((health / staticHealth) * 100)); _root[barName2].gotoAndStop(Math.round((health / staticHealth) * 100)); _root[barName2]._yscale = 50; _root[barName]._yscale = 50; if (_parent.circle.hitTest((getBounds(_parent)).xMax, _y, true) && dead == false) { this._x -= speed + rebound; _root.circle._x += speed + rebound; } if (_parent.circle.hitTest((getBounds(_parent)).xMin, _y, true) && dead == false) { this._x += speed + rebound; _root.circle._x -= speed + rebound; } if (_parent.circle.hitTest(_x, (getBounds(_parent)).yMax, true) && dead == false) { this._y -= speed + rebound; _root.circle._y += speed + rebound; } if (_parent.circle.hitTest(_x, (getBounds(_parent)).yMin, true) && dead == false) { this._y += speed + rebound; _root.circle._y -= speed + rebound; } i = 0; while (i < 25) { nameVal = 'bullet' + i; if (_root[nameVal].hitTest(this)) { if (protection == false) { _root.exSpeed = 5; _root.brokenSize = 10; trace('Target hit by ' + nameVal); health -= _root.playerDamage; ++_root.hit; trace(protection); explos = 'smallShock' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explos, _root.getNextHighestDepth()); _root[explos]._alpha = 100; _root[explos]._x = _root[nameVal]._x + random(5) - random(5); _root[explos]._y = _root[nameVal]._y + random(5) - random(5); zoe = 30; _root[explos]._xscale = zoe; _root[explos]._yscale = zoe; _root[nameVal].removeMovieClip(); _root[barName]._visible = true; _root[barName2]._visible = true; } if (protection == true) { trace(protection); bubbleTimer -= _root.playerDamage / 3; explos = 'smallShock' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explos, _root.getNextHighestDepth()); _root[explos]._alpha = 100; _root[explos].gotoAndStop('player'); _root[explos]._x = _root[nameVal]._x + random(5) - random(5); _root[explos]._y = _root[nameVal]._y + random(5) - random(5); zoe = 30; _root[explos]._xscale = zoe; _root[explos]._yscale = zoe; _root[nameVal].removeMovieClip(); } } ++i; } if (health <= 0) { dead = true; _root.lockedM = false; this._visible = false; _root.scoreNum.gotoAndPlay(1); kirupaSound = new Sound(this); kirupaSound.attachSound('dead'); kirupaSound.setVolume = 20; kirupaSound.start(0, 1); if (pow == 0) { spawnPower(); } if (pow == 1) { spawnSpeed(); } if (pow == 2) { spawnHealth(); } if (pow == 3) { spawnShields(); } _alpha = 0; _root.stringTimer = 30; if (_root.stringTimer > 0) { ++_root.string; _root.strings._visible = true; _root.strings.gotoAndPlay(1); _root.stringTemp = val; _root.killString = 'x' + _root.string; } _root.scoreStage = '+' + val; ++_root.scoreOnStage; _root.theScore += val; _root.prog += val; plusVar = 'plus' + _root.scoreOnStage; duplicateMovieClip(_root.plusOne, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y; _root.scoreTOS = 5; kirupasSound = new Sound(this); kirupasSound.attachSound('lazar2'); kirupasSound.start(0, 1); i = 0; while (i < maxDrop) { _root.brokenSize = 30; _root.exSpeed = 2; ++_root.explosions; exNvar = 'explosion' + _root.explosions; duplicateMovieClip(_root.brokenCube, exNvar, _root.getNextHighestDepth()); _root[exNvar].gotoAndStop(colour); _root[exNvar]._x = this._x; _root[exNvar]._y = this._y; ++i; } ++_root.killed; --_root.enemiesOnStage; _root[barName].removeMovieClip(); _root[barName2].removeMovieClip(); explo = 'apple' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explo, _root.getNextHighestDepth()); _root[explo]._alpha = 100; _root[explo]._x = _x + random(10) - random(10); _root[explo]._y = _y + random(10) - random(10); this.removeMovieClip(); } } } } } instance brokenCubep of movieClip 465 { onClipEvent (load) { if (_visible == true) { _root.soundEngine.gotoAndPlay('brokenBeep'); _alpha = 100; s = random(60) + _root.brokenSize; dir = random(12); speed = random(10) + 2; r = random(30); stageTime = 1000; } } onClipEvent (enterFrame) { if (_visible == true) { _xscale = s; _yscale = s; _rotation = _rotation + r; if (dir == 0) { _x = _x + (random(3) + speed); _y = _y + (random(3) + speed); } if (dir == 1) { _x = _x + (random(3) - speed); _y = _y - (random(3) - speed); } if (dir == 2) { _x = _x - (random(3) + speed); _y = _y + (random(3) + speed); } if (dir == 3) { _x = _x - (random(3) - speed); _y = _y - (random(3) - speed); } if (dir == 4) { _x = _x - (random(4) + speed); _y = _y - random(3); } if (dir == 5) { _x = _x - (random(4) + speed); _y = _y + random(3); } if (dir == 6) { _x = _x + (random(4) + speed); _y = _y - random(3); } if (dir == 7) { _x = _x + (random(4) + speed); _y = _y + random(3); } if (dir == 8) { _x = _x + random(3); _y = _y - (random(4) + speed); } if (dir == 9) { _x = _x - random(3); _y = _y - (random(4) + speed); } if (dir == 10) { _x = _x - random(3); _y = _y + (random(4) + speed); } if (dir == 11) { _x = _x + random(3); _y = _y + (random(4) + speed); } if (this._x > 1280 || this._x < 0 || this._y > 1024 || this._y < 0) { this.removeMovieClip(); } } } } movieClip 467 { } instance dud of movieClip 467 { onClipEvent (load) { _alpha = 70; this.gotoAndStop(_root.playerCol); } onClipEvent (enterFrame) { _alpha = _alpha - 5; if (_alpha < 0) { this.removeMovieClip(); } _xscale = _root.circle._xscale; _yscale = _root.circle._yscale; } } instance aidAI of movieClip 285 { onClipEvent (load) { function right() { if (_root.bulletTime == false) { _x = _x + fixedSpeed; } else { _x = _x + slowSpeed; } } function left() { if (_root.bulletTime == false) { _x = _x - fixedSpeed; } else { _x = _x - slowSpeed; } } function up() { if (_root.bulletTime == false) { _y = _y - fixedSpeed; } else { _y = _y - slowSpeed; } } function down() { if (_root.bulletTime == false) { _y = _y + fixedSpeed; } else { _y = _y + slowSpeed; } } function shoot() { bulletVal = 'bullet' + _root.bullets; duplicateMovieClip(_root.alaser, bulletVal, _root.getNextHighestDepth()); ++_root.bullets; if (_root.bullets == 25) { _root.bullets = 0; } _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function spawnHealth() { ++_root.powerups; powerUp = 'HealthPU' + _root.powerups; duplicateMovieClip(_root.healthPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnSpeed() { ++_root.powerups; powerUp = 'HealthPU' + _root.powerups; duplicateMovieClip(_root.speedPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnPower() { ++_root.powerups; powerUp = 'HealthPU' + _root.powerups; duplicateMovieClip(_root.firePow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnShields() { ++_root.powerups; powerUp = 'HealthPU' + _root.powerups; duplicateMovieClip(_root.shieldsPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } advanced = true; dead = false; rebound = 6; i = 0; health = 1; moveS = random(5); size = 100; pow = random(75); val = _root.enemyVal; maxDrop = _root.drop; colour = 'player'; e = 0; j = 0; this.gotoAndStop(colour); _x = _root.circle._x; _y = _root.circle._y; enemyName = 'enemy' + _root.enemies; f = 30; } onClipEvent (enterFrame) { if (this.enabled == true) { if (_root.pauseGame == false) { speed = _root.playerSpeed * 2; regen = 10 - _root.regen / 10; fixedSpeed = speed; slowSpeed = speed * 2; slowRegen = regen * 2; --f; if (_root[enemyName].dead == true || f < 0) { enemyName = 'enemy' + _root.enemies; f = 30; } _xscale = size; _yscale = size; if (_root.bulletTime == false) { att = random(regen); } else { att = random(slowRegen); } if (_xscale > 100) { laserOffSetP = Math.abs(Math.random() * 40); laserOffSetM = Math.abs(Math.random() * 40); } else { laserOffSetP = 0; laserOffSetM = 0; } if (_root.bullets == 20) { _root.bullets = 0; } if (att == 0) { shoot(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (moveS == 0) { if (this._y > _root[enemyName]._y && dead == false) { up(); if (this._x > _root[enemyName]._x) { left(); } } if (this._y < _root[enemyName]._y && dead == false) { down(); if (this._x < _root[enemyName]._x) { right(); } } } if (moveS == 1) { if (this._y > _root[enemyName]._y && dead == false) { up(); } if (this._x > _root[enemyName]._x) { left(); } if (this._y < _root[enemyName]._y && dead == false) { down(); } if (this._x < _root[enemyName]._x) { right(); } } if (moveS == 2) { if (this._y > _root[enemyName]._y && dead == false) { up(); if (this._x < _root[enemyName]._x) { right(); } } if (this._y < _root[enemyName]._y && dead == false) { down(); if (this._x > _root[enemyName]._x) { left(); } } } if (moveS == 3) { if (this._x > _root[enemyName]._x) { left(); if (this._y > _root[enemyName]._y && dead == false) { up(); } } if (this._x < _root[enemyName]._x) { right(); if (this._y < _root[enemyName]._y && dead == false) { down(); } } } if (moveS == 4) { if (this._x > _root[enemyName]._x) { left(); if (this._y < _root[enemyName]._y && dead == false) { down(); } } if (this._x < _root[enemyName]._x) { right(); if (this._y > _root[enemyName]._y && dead == false) { up(); } } } if (_parent[enemyName].hitTest((getBounds(_parent)).xMax, _y, true) && dead == false) { this._x -= speed + rebound; } if (_parent[enemyName].hitTest((getBounds(_parent)).xMin, _y, true) && dead == false) { this._x += speed + rebound; } if (_parent[enemyName].hitTest(_x, (getBounds(_parent)).yMax, true) && dead == false) { this._y -= speed + rebound; } if (_parent[enemyName].hitTest(_x, (getBounds(_parent)).yMin, true) && dead == false) { this._y += speed + rebound; } i = 0; while (i < 20) { nameVal27 = 'ebullet' + i; if (_root[nameVal27].hitTest(this)) { trace('Target hit by ' + nameVal); _health -= _root.enemyDamage; _root[nameVal27].removeMovieClip(); ++_root.explosions; exNvar = 'explosion' + _root.explosions; duplicateMovieClip(_root.brokenCube, exNvar, _root.getNextHighestDepth()); _root[exNvar].gotoAndStop(colour); _root[exNvar]._x = _root[nameVal]._x; _root[exNvar]._y = _root[nameVal]._y; } ++i; } } if (health <= 0) { _root.scoreNum.gotoAndPlay(1); kirupaSound = new Sound(this); kirupaSound.attachSound('dead'); kirupaSound.setVolume = 20; kirupaSound.start(0, 1); if (pow == 0) { spawnPower(); } if (pow == 1) { spawnSpeed(); } if (pow == 2) { spawnHealth(); } if (pow == 3) { spawnShields(); } dead = true; _root.scoreStage = '+' + val; ++_root.scoreOnStage; _root.theScore += val; plusVar = 'plus' + _root.scoreOnStage; duplicateMovieClip(_root.plusOne, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y; _root.scoreTOS = 5; kirupasSound = new Sound(this); kirupasSound.attachSound('lazar2'); kirupasSound.start(0, 1); i = 0; while (i < maxDrop) { _root.brokenSize = 30; _root.exSpeed = 2; ++_root.explosions; exNvar = 'explosion' + _root.explosions; duplicateMovieClip(_root.brokenCube, exNvar, _root.getNextHighestDepth()); _root[exNvar].gotoAndStop(colour); _root[exNvar]._x = this._x; _root[exNvar]._y = this._y; ++i; } ++_root.killed; this.removeMovieClip(); } } } } instance espinner of movieClip 342 { onClipEvent (load) { function right() { if (_root.bulletTime == false) { _x = _x + fixedSpeed; } else { _x = _x + slowSpeed; } } function left() { if (_root.bulletTime == false) { _x = _x - fixedSpeed; } else { _x = _x - slowSpeed; } } function up() { if (_root.bulletTime == false) { _y = _y - fixedSpeed; } else { _y = _y - slowSpeed; } } function down() { if (_root.bulletTime == false) { _y = _y + fixedSpeed; } else { _y = _y + slowSpeed; } } function spawnHealth() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.healthPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnSpeed() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.speedPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnPower() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.firePow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnShields() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.shieldsPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } power = 1; ++_root.enemiesOnStage; barName2 = 'bossBar2' + _root.hpBars++; duplicateMovieClip(_root.enBar, barName2, _root.getNextHighestDepth()); _root[barName2]._x = _x - 28.125; _root[barName2]._y = _y - 40; _root[barName2]._alpha = 50; _root[barName2]._xscale = 6.25; _root[barName2]._yscale = 50; barName = 'bossBar' + _root.hpBars++; duplicateMovieClip(_root.enBar, barName, _root.getNextHighestDepth()); _root[barName]._x = _x - 28.125; _root[barName]._y = _y - 40; _root[barName]._xscale = 6.25; _root[barName]._yscale = 50; _root[barName]._visible = false; _root[barName2]._visible = false; pain = 5; if (this.enabled == true) { _visible = true; } advanced = _root.advanced; var dead = false; speed = _root.enSpeed; fixedSpeed = speed; slowSpeed = speed / 2; rebound = 20; i = 0; health = _root.enHealth; staticHealth = health; moveS = random(5); size = _root.enSize; pow = random(75); val = _root.enemyVal; maxDrop = _root.drop; regen = _root.enFireSpeed; slowRegen = regen * 2; colour = _root.colour; e = 0; j = 0; this.gotoAndStop(colour); loc = random(2) + 1; if (_root.spawnRND == true) { if (loc == 1) { _x = random(1340); _y = 1044; } if (loc == 2) { _x = 1320; _y = random(1000) + 90; } if (loc == 3) { _x = -40; _y = random(1000) + 90; } } shootDown(); shootUp(); shootRight(); } onClipEvent (enterFrame) { if (_visible == true) { if (_root.pauseGame == false) { _rotation = _rotation + speed * 3; if (_root.targeter.hit.hitTest(this)) { _root.lockedM = true; _root.targeter._x = _x; _root.targeter._y = _y; } --pain; if (this.hitTest(_root.circle) && _root.invincible == false) { _root.health -= _root.enemyDamage / power - _root.shield; ++_root.duds; exNvar3 = 'dud' + _root.duds; duplicateMovieClip(_root.barSlice1, exNvar3, _root.getNextHighestDepth()); _root[exNvar3].gotoAndStop(Math.round(_root.health)); _root[exNvar3]._xscale = Math.round(_root.enemyDamage - _root.shield); _root.hpBar._xscale = _root.health; _root.hpBar.gotoAndStop(Math.round(_root.health)); _root.backBar.gotoAndStop(Math.round(_root.health)); _root.healthPercentage = Math.round(_root.health) + '%'; pain = 2; _root.hpBar._xscale = _root.health; } _xscale = size; _yscale = size; if (_root.bulletTime == false) { att = random(regen); } else { att = random(slowRegen); } if (_root.bullets2 > 20) { _root.bullets2 = 0; } if (moveS == 0) { if (this._y > _root.circle._y && dead == false) { up(); if (this._x > _root.circle._x) { left(); } } if (this._y < _root.circle._y && dead == false) { down(); if (this._x < _root.circle._x) { right(); } } } if (moveS == 1) { if (this._y > _root.circle._y && dead == false) { up(); } if (this._x > _root.circle._x) { left(); } if (this._y < _root.circle._y && dead == false) { down(); } if (this._x < _root.circle._x) { right(); } } if (moveS == 2) { if (this._y > _root.circle._y && dead == false) { up(); if (this._x < _root.circle._x) { right(); } } if (this._y < _root.circle._y && dead == false) { down(); if (this._x > _root.circle._x) { left(); } } } if (moveS == 3) { if (this._x > _root.circle._x) { left(); if (this._y > _root.circle._y && dead == false) { up(); } } if (this._x < _root.circle._x) { right(); if (this._y < _root.circle._y && dead == false) { down(); } } } if (moveS == 4) { if (this._x > _root.circle._x) { left(); if (this._y < _root.circle._y && dead == false) { down(); } } if (this._x < _root.circle._x) { right(); if (this._y > _root.circle._y && dead == false) { up(); } } } _root[barName2]._x = _x - 28.125; _root[barName2]._y = _y - 40; _root[barName]._x = _x - 28.125; _root[barName]._y = _y - 40; _root[barName]._xscale = (health / staticHealth) * 100 / 16; _root[barName].gotoAndStop(Math.round((health / staticHealth) * 100)); _root[barName2].gotoAndStop(Math.round((health / staticHealth) * 100)); _root[barName2]._yscale = 50; _root[barName]._yscale = 50; if (_parent.circle.hitTest((getBounds(_parent)).xMax, _y, true) && dead == false) { this._x -= speed + rebound; _root.circle._x += speed + rebound; } if (_parent.circle.hitTest((getBounds(_parent)).xMin, _y, true) && dead == false) { this._x += speed + rebound; _root.circle._x -= speed + rebound; } if (_parent.circle.hitTest(_x, (getBounds(_parent)).yMax, true) && dead == false) { this._y -= speed + rebound; _root.circle._y += speed + rebound; } if (_parent.circle.hitTest(_x, (getBounds(_parent)).yMin, true) && dead == false) { this._y += speed + rebound; _root.circle._y -= speed + rebound; } i = 0; while (i < 25) { nameVal = 'bullet' + i; if (_root[nameVal].hitTest(this)) { _root.exSpeed = 5; _root.brokenSize = 10; trace('Target hit by ' + nameVal); health -= _root.playerDamage; ++_root.hit; explos = 'smallShock' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explos, _root.getNextHighestDepth()); _root[explos]._alpha = 100; _root[explos]._x = _root[nameVal]._x + random(5) - random(5); _root[explos]._y = _root[nameVal]._y + random(5) - random(5); zoe = 30; _root[explos]._xscale = zoe; _root[explos]._yscale = zoe; _root[barName]._visible = true; _root[barName2]._visible = true; _root[nameVal].removeMovieClip(); } ++i; } if (health <= 0) { --_root.enemiesOnStage; _root[barName].removeMovieClip(); _root[barName2].removeMovieClip(); dead = true; _root.lockedM = false; this._visible = false; _root.scoreNum.gotoAndPlay(1); if (pow == 0) { spawnPower(); } if (pow == 1) { spawnSpeed(); } if (pow == 2) { spawnHealth(); } if (pow == 3) { spawnShields(); } dead = true; _root.scoreStage = '+' + val; ++_root.scoreOnStage; _root.theScore += val; _root.prog += val; plusVar = 'plus' + _root.scoreOnStage; duplicateMovieClip(_root.plusOne, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y; _root.scoreTOS = 5; kirupasSound = new Sound(this); kirupasSound.attachSound('dead'); kirupasSound.start(0, 1); i = 0; while (i < maxDrop) { _root.brokenSize = 30; _root.exSpeed = 2; ++_root.explosions; exNvar = 'explosion' + _root.explosions; duplicateMovieClip(_root.brokenCube, exNvar, _root.getNextHighestDepth()); _root[exNvar].gotoAndStop(colour); _root[exNvar]._x = this._x; _root[exNvar]._y = this._y; ++i; } ++_root.killed; explo = 'apple' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explo, _root.getNextHighestDepth()); _root[explo]._alpha = 100; _root[explo]._x = _x + random(10) - random(10); _root[explo]._y = _y + random(10) - random(10); _root.stringTimer = 30; if (_root.stringTimer > 0) { ++_root.string; _root.strings._visible = true; _root.strings.gotoAndPlay(1); _root.stringTemp = val; _root.killString = 'x' + _root.string; } this.removeMovieClip(); } } } } } instance ecircle of movieClip 351 { onClipEvent (load) { function right() { if (_root.bulletTime == false) { _x = _x + fixedSpeed; } else { _x = _x + slowSpeed; } } function left() { if (_root.bulletTime == false) { _x = _x - fixedSpeed; } else { _x = _x - slowSpeed; } } function up() { if (_root.bulletTime == false) { _y = _y - fixedSpeed; } else { _y = _y - slowSpeed; } } function down() { if (_root.bulletTime == false) { _y = _y + fixedSpeed; } else { _y = _y + slowSpeed; } } function shoot() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.elaser, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function spawnHealth() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.healthPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnSpeed() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.speedPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnPower() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.firePow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnShields() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.shieldsPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } ++_root.enemiesOnStage; this.bubble._visible = false; barName2 = 'bossBar2' + _root.hpBars++; duplicateMovieClip(_root.enBar, barName2, _root.getNextHighestDepth()); _root[barName2]._x = _x - 28.125; _root[barName2]._y = _y - 140; _root[barName2]._alpha = 50; _root[barName2]._xscale = 6.25; _root[barName2]._yscale = 50; barName = 'bossBar' + _root.hpBars++; duplicateMovieClip(_root.enBar, barName, _root.getNextHighestDepth()); _root[barName]._x = _x - 28.125; _root[barName]._y = _y - 140; _root[barName]._xscale = 6.25; _root[barName]._yscale = 50; _root[barName]._visible = false; _root[barName2]._visible = false; if (this.enabled == true) { _visible = true; } advanced = _root.advanced; var dead = false; speed = _root.enSpeed; fixedSpeed = speed; slowSpeed = speed / 2; rebound = 6; i = 0; health = _root.enHealth; staticHealth = health; moveS = random(5); size = _root.enSize; pow = random(75); val = _root.enemyVal; maxDrop = _root.drop; regen = _root.enFireSpeed; slowRegen = regen * 2; colour = _root.colour; e = 0; j = 0; this.gotoAndStop(colour); loc = random(2) + 1; if (loc == 1) { _x = random(1340); _y = 1044; } if (loc == 2) { _x = 1320; _y = random(1000) + 90; } if (loc == 3) { _x = -40; _y = random(1000) + 90; } } onClipEvent (enterFrame) { if (this.enabled == true && _visible == true) { if (_root.pauseGame == false) { if (_root.targeter.hit.hitTest(this)) { _root.lockedM = true; _root.targeter._x = _x; _root.targeter._y = _y; } _xscale = size; _yscale = size; if (_x > 20 && _x < 1260 && _y > 20 && _y < 1004) { if (_root.bulletTime == false) { att = random(regen); } else { att = random(slowRegen); } } if (_xscale > 100) { laserOffSetP = Math.abs(Math.random() * 60); laserOffSetM = Math.abs(Math.random() * 60); } else { laserOffSetP = 0; laserOffSetM = 0; } if (_root.bullets2 > 20) { _root.bullets2 = 0; } if (att == 0) { shoot(); } if (moveS == 0) { if (this._y > _root.circle._y && dead == false) { up(); if (this._x > _root.circle._x) { left(); } } if (this._y < _root.circle._y && dead == false) { down(); if (this._x < _root.circle._x) { right(); } } } if (moveS == 1) { if (this._y > _root.circle._y && dead == false) { up(); } if (this._x > _root.circle._x) { left(); } if (this._y < _root.circle._y && dead == false) { down(); } if (this._x < _root.circle._x) { right(); } } if (moveS == 2) { if (this._y > _root.circle._y && dead == false) { up(); if (this._x < _root.circle._x) { right(); } } if (this._y < _root.circle._y && dead == false) { down(); if (this._x > _root.circle._x) { left(); } } } if (moveS == 3) { if (this._x > _root.circle._x) { left(); if (this._y > _root.circle._y && dead == false) { up(); } } if (this._x < _root.circle._x) { right(); if (this._y < _root.circle._y && dead == false) { down(); } } } if (moveS == 4) { if (this._x > _root.circle._x) { left(); if (this._y < _root.circle._y && dead == false) { down(); } } if (this._x < _root.circle._x) { right(); if (this._y > _root.circle._y && dead == false) { up(); } } } _root[barName2]._x = _x - 28.125; _root[barName2]._y = _y - 40; _root[barName]._x = _x - 28.125; _root[barName]._y = _y - 40; _root[barName]._xscale = (health / staticHealth) * 100 / 16; _root[barName].gotoAndStop(Math.round((health / staticHealth) * 100)); _root[barName2].gotoAndStop(Math.round((health / staticHealth) * 100)); _root[barName2]._yscale = 50; _root[barName]._yscale = 50; if (_parent.circle.hitTest((getBounds(_parent)).xMax, _y, true) && dead == false) { this._x -= speed + rebound; _root.circle._x += speed + rebound; } if (_parent.circle.hitTest((getBounds(_parent)).xMin, _y, true) && dead == false) { this._x += speed + rebound; _root.circle._x -= speed + rebound; } if (_parent.circle.hitTest(_x, (getBounds(_parent)).yMax, true) && dead == false) { this._y -= speed + rebound; _root.circle._y += speed + rebound; } if (_parent.circle.hitTest(_x, (getBounds(_parent)).yMin, true) && dead == false) { this._y += speed + rebound; _root.circle._y -= speed + rebound; } i = 0; while (i < 25) { nameVal = 'bullet' + i; if (_root[nameVal].hitTest(this)) { _root.exSpeed = 5; _root.brokenSize = 10; trace('Target hit by ' + nameVal); health -= _root.playerDamage; ++_root.hit; explos = 'smallShock' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explos, _root.getNextHighestDepth()); _root[explos]._alpha = 100; _root[explos]._x = _root[nameVal]._x + random(5) - random(5); _root[explos]._y = _root[nameVal]._y + random(5) - random(5); zoe = 30; _root[explos]._xscale = zoe; _root[explos]._yscale = zoe; _root[barName]._visible = true; _root[barName2]._visible = true; _root[nameVal].removeMovieClip(); } ++i; } if (health <= 0) { --_root.enemiesOnStage; _root.lockedM = false; this._visible = false; _root.scoreNum.gotoAndPlay(1); kirupaSound = new Sound(this); kirupaSound.attachSound('dead'); kirupaSound.setVolume = 20; kirupaSound.start(0, 1); if (pow == 0) { spawnPower(); } if (pow == 1) { spawnSpeed(); } if (pow == 2) { spawnHealth(); } if (pow == 3) { spawnShields(); } dead = true; _root.stringTimer = 30; if (_root.stringTimer > 0) { ++_root.string; _root.strings._visible = true; _root.strings.gotoAndPlay(1); _root.stringTemp = val; _root.killString = 'x' + _root.string; } _root.scoreStage = '+' + val; _root.prog += val; ++_root.scoreOnStage; _root.theScore += val; plusVar = 'plus' + _root.scoreOnStage; duplicateMovieClip(_root.plusOne, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y; _root.scoreTOS = 5; kirupasSound = new Sound(this); kirupasSound.attachSound('lazar2'); kirupasSound.start(0, 1); i = 0; while (i < maxDrop) { _root.brokenSize = 30; _root.exSpeed = 2; ++_root.explosions; exNvar = 'explosion' + _root.explosions; duplicateMovieClip(_root.brokenCube, exNvar, _root.getNextHighestDepth()); _root[exNvar].gotoAndStop(colour); _root[exNvar]._x = this._x; _root[exNvar]._y = this._y; ++i; } ++_root.killed; _root[barName].removeMovieClip(); _root[barName2].removeMovieClip(); explo = 'apple' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explo, _root.getNextHighestDepth()); _root[explo]._alpha = 100; _root[explo]._x = _x + random(10) - random(10); _root[explo]._y = _y + random(10) - random(10); this.removeMovieClip(); } } } } } instance theBoss of movieClip 334 { onClipEvent (load) { function right() { if (_root.bulletTime == false) { _x = _x + fixedSpeed; } else { _x = _x + slowSpeed; } } function left() { if (_root.bulletTime == false) { _x = _x - fixedSpeed; } else { _x = _x - slowSpeed; } } function up() { if (_root.bulletTime == false) { _y = _y - fixedSpeed; } else { _y = _y - slowSpeed; } } function down() { if (_root.bulletTime == false) { _y = _y + fixedSpeed; } else { _y = _y + slowSpeed; } } function shootDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserdown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function shootUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserup, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function shootRight() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserright, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function shootLeft() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.laserleft, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function shootLDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.leftDown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function shootLUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.leftUp, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function shootRUp() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.rightUp, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function shootRDown() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.rightDown, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x + laserOffSetP - laserOffSetM; _root[bulletVal]._y = this._y + laserOffSetP - laserOffSetM; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function shoot() { bulletVal = 'ebullet' + _root.bullets2; duplicateMovieClip(_root.elaser, bulletVal, _root.getNextHighestDepth()); ++_root.bullets2; _root[bulletVal]._x = this._x; _root[bulletVal]._y = this._y; _root[bulletVal].gotoAndStop(colour); trace('Enemy Fired ' + bulletVal); } function spawnHealth() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.healthPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnSpeed() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.speedPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnPower() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.firePow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function spawnShields() { powerUp = 'HealthPU' + _root.powerups++; duplicateMovieClip(_root.shieldsPow, powerUp, _root.getNextHighestDepth()); trace('God has given birth to ' + powerUp); _root[powerUp]._x = this._x; _root[powerUp]._y = this._y; } function birthSpin() { kirupaSound66 = new Sound(this); kirupaSound66.attachSound('spawnSpin'); kirupaSound66.start(0, 1); ++_root.enemies; enemyName = 'enemy' + _root.enemies; duplicateMovieClip(_root.espinner, enemyName, _root.getNextHighestDepth()); trace('God has given birth to ' + enemyName); _root.drop = 7; _root.enSize = 100; _root.enHealth = 1; _root.enSpeed = 4; _root.enFireSpeed = 100; _root.advanced = 0; _root.colour = 'red'; _root[enemyName]._x = _x; _root[enemyName]._y = _y; } this.bubble._visible = false; protection = false; if (_root.bubble == 1) { shieldsOn = true; } else { shieldsOn = false; } extravaganza = 100; display = 200; dead = false; barName2 = 'bossBar2' + _root.hpBars++; duplicateMovieClip(_root.enBar, barName2, _root.getNextHighestDepth()); _root[barName2]._x = _x - 225; _root[barName2]._y = _y - 140; _root[barName2]._alpha = 50; _root[barName2]._xscale = 50; _root[barName2]._yscale = 50; barName = 'bossBar' + _root.hpBars++; duplicateMovieClip(_root.enBar, barName, _root.getNextHighestDepth()); _root[barName]._x = _x - 225; _root[barName]._y = _y - 140; _root[barName]._xscale = 50; _root[barName]._yscale = 50; if (this.enabled == true) { _visible = true; } advanced = _root.advanced; dead = false; speed = _root.enSpeed; fixedSpeed = speed; slowSpeed = speed / 2; rebound = 10; i = 0; health = _root.enHealth; bubbleTimer = 2000; staticHealth = health; moveS = random(5); size = _root.enSize; pow = random(75); val = _root.enemyVal; maxDrop = _root.drop; regen = _root.enFireSpeed; slowRegen = regen * 2; var dead = false; colour = _root.colour; e = 0; j = 0; this.gotoAndStop(colour); loc = random(2) + 1; if (loc == 1) { _x = random(1340); _y = 1044; } if (loc == 2) { _x = 1320; _y = random(1000) + 90; } if (loc == 3) { _x = -40; _y = random(1000) + 90; } s = 600; c = 600; } onClipEvent (enterFrame) { if (this.enabled == true && _visible == true) { if (_root.pauseGame == false) { this.bubble._alpha = (bubbleTimer / 2000) * 63; if (shieldsOn == true) { if (bubbleTimer > 0) { this.bubble._visible = true; protection = true; } if (bubbleTimer < 0) { protection = false; } } _root[barName2]._x = _x - 225; _root[barName2]._y = _y - 140; _root[barName]._x = _x - 225; _root[barName]._y = _y - 140; _root[barName]._xscale = (health / staticHealth) * 100 / 2; _root[barName].gotoAndStop(Math.round((health / staticHealth) * 100)); _root[barName2].gotoAndStop(Math.round((health / staticHealth) * 100)); _root[barName2]._yscale = 50; _root[barName]._yscale = 50; if (_root[barName]._visible == false) { _root[barName]._visible = true; _root[barName2]._visible = true; } if (dead == false) { if (_root.attackPattern == 1) { eMove = true; shooting = true; } if (_root.attackPattern == 2) { --s; trace(s); if (s > 0) { shooting = true; eMove = true; } else { shooting = false; eMove = false; } if (s > -500 && s < -50) { spawn = random(20); if (spawn == 0) { birthSpin(); _root.enSpeed = 11 + random(5); _root.enSize = 100; _root.enHealth = 7.5; _root.enemyVal = 0; _root.spawnRND = false; _root.colour = 'orange'; _root[enemyName]._x = _x; _root[enemyName]._y = _y; } else { _root.spawnRND = true; } } if (s < -550) { s = 600; } } if (_root.attackPattern == 3) { --c; if (c > 0) { shooting = true; eMove = true; } else { shooting = false; eMove = false; } if (c > -500 && c < -50) { if (bubbleTimer < 2000) { bubbleTimer += 20; } spawn = random(14); if (spawn == 0) { birthSpin(); _root.enSpeed = 15 + random(7); _root.enSize = 100; _root.enHealth = 10.5; _root.enemyVal = 0; _root.spawnRND = false; _root.colour = 'yellow'; _root[enemyName]._x = _x; _root[enemyName]._y = _y; } else { _root.spawnRND = true; } } if (c < -550 && c > -1000) { if (att == 0 || att == 1 || att == 2 || att == 3) { shoot(); } } if (c < -1050) { c = 600; } } if (_root.attackPattern == 4) { --c; if (c > 0) { shooting = true; eMove = true; } else { shooting = false; eMove = false; } if (c > -500 && c < -50) { if (bubbleTimer < 2000) { bubbleTimer += 20; } spawn = random(20); if (spawn == 0) { birthSpin(); _root.enSpeed = 15 + random(7); _root.enSize = 100; _root.enHealth = 7.5; _root.enemyVal = 0; _root.advanced = 1; _root.spawnRND = false; _root.enSpeed = 15 + random(15); _root.enSize = 100; _root.enHealth = 12.5; _root.enemyVal = 0; _root.spawnRND = false; _root.colour = 'green'; _root[enemyName]._x = _x; _root[enemyName]._y = _y; } else { _root.spawnRND = true; } } if (c < -550 && c > -1000) { if (att == 0 || att == 1 || att == 2 || att == 3 || att == 4 || att == 5) { shoot(); eMove = true; } } if (c < -1050) { c = 600; } } if (_root.attackPattern == 5) { --c; if (c > 0) { shooting = true; eMove = true; } else { shooting = false; eMove = false; } if (c > -500 && c < -50) { if (bubbleTimer < 2000) { bubbleTimer += 20; } spawn = random(15); if (att == 0) { shoot(); } if (spawn == 0) { birthSpin(); _root.enSpeed = 15 + random(7); _root.enSize = 100; _root.enHealth = 7.5; _root.enemyVal = 0; _root.advanced = 1; _root.spawnRND = false; _root.enSpeed = 15 + random(15); _root.enSize = 100; _root.enHealth = 12.5; _root.enemyVal = 0; _root.spawnRND = false; _root.colour = 'blue'; _root[enemyName]._x = _x; _root[enemyName]._y = _y; } else { _root.spawnRND = true; } } if (c < -550 && c > -1000) { if (att == 0 || att == 1 || att == 2 || att == 3 || att == 4 || att == 5) { shoot(); eMove = true; } } if (c < -1050) { c = 600; } } if (_root.attackPattern == 6) { --c; if (c > 0) { shooting = true; eMove = true; } else { shooting = false; eMove = false; } if (c > -500 && c < -50) { if (bubbleTimer < 2000) { bubbleTimer += 20; } if (att == 0) { shoot(); } spawn = random(15); if (spawn == 0) { birthSpin(); _root.enSpeed = 10 + random(10); _root.enSize = 100; _root.enHealth = 12.5; _root.enemyVal = 0; _root.spawnRND = false; _root.colour = 'violet'; _root[enemyName]._x = _x; _root[enemyName]._y = _y; } else { _root.spawnRND = true; } } if (c < -550 && c > -1200) { if (att == 0 || att == 1 || att == 2 || att == 3 || att == 4 || att == 5) { shoot(); eMove = true; if (bubbleTimer < 2000) { bubbleTimer += 5; } spawn = random(30); if (spawn == 0) { birthSpin(); _root.enSpeed = 10 + random(10); _root.enSize = 100; _root.enHealth = 20; _root.enemyVal = 0; _root.advanced = 1; _root.spawnRND = false; _root.enSpeed = 15 + random(15); _root.enSize = 100; _root.enHealth = 12.5; _root.enemyVal = 0; _root.spawnRND = false; _root.colour = 'violet'; _root[enemyName]._x = _x; _root[enemyName]._y = _y; } } } if (c < -1250) { c = 600; } } _xscale = size; _yscale = size; if (_root.bulletTime == false) { att = random(regen); } else { att = random(slowRegen); } if (_xscale > 100) { laserOffSetP = Math.abs(Math.random() * 60); laserOffSetM = Math.abs(Math.random() * 60); } else { laserOffSetP = 0; laserOffSetM = 0; } if (_root.bullets2 > 20) { _root.bullets2 = 0; } if (shooting == true) { if (_root.circle._x > this._x && att == 0) { shootRight(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (_root.circle._x < this._x && att == 1) { shootLeft(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (_root.circle._y < this._y && att == 2) { shootUp(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (_root.circle._y > this._y && att == 3) { shootDown(); kirupaSound6 = new Sound(this); kirupaSound6.attachSound('lazar'); kirupaSound6.start(0, 1); } if (advanced == 1) { if (_root.circle._y < this._y && _root.circle._x < this._x && att == 4) { shootLUp(); } if (_root.circle._y < this._y && _root.circle._x > this._x && att == 5) { shootRUp(); } if (_root.circle._y > this._y && _root.circle._x < this._x && att == 6) { shootLDown(); } if (_root.circle._y > this._y && _root.circle._x > this._x && att == 7) { shootRDown(); } } } if (eMove == true) { if (moveS == 0) { if (this._y > _root.circle._y && dead == false) { up(); if (this._x > _root.circle._x) { left(); } } if (this._y < _root.circle._y && dead == false) { down(); if (this._x < _root.circle._x) { right(); } } } if (moveS == 1) { if (this._y > _root.circle._y && dead == false) { up(); } if (this._x > _root.circle._x) { left(); } if (this._y < _root.circle._y && dead == false) { down(); } if (this._x < _root.circle._x) { right(); } } if (moveS == 2) { if (this._y > _root.circle._y && dead == false) { up(); if (this._x < _root.circle._x) { right(); } } if (this._y < _root.circle._y && dead == false) { down(); if (this._x > _root.circle._x) { left(); } } } if (moveS == 3) { if (this._x > _root.circle._x) { left(); if (this._y > _root.circle._y && dead == false) { up(); } } if (this._x < _root.circle._x) { right(); if (this._y < _root.circle._y && dead == false) { down(); } } } if (moveS == 4) { if (this._x > _root.circle._x) { left(); if (this._y < _root.circle._y && dead == false) { down(); } } if (this._x < _root.circle._x) { right(); if (this._y > _root.circle._y && dead == false) { up(); } } } } } if (_parent.circle.hitTest((getBounds(_parent)).xMax, _y, true) && dead == false) { _root.circle._x += speed + rebound; } if (_parent.circle.hitTest((getBounds(_parent)).xMin, _y, true) && dead == false) { _root.circle._x -= speed + rebound; } if (_parent.circle.hitTest(_x, (getBounds(_parent)).yMax, true) && dead == false) { _root.circle._y += speed + rebound; } if (_parent.circle.hitTest(_x, (getBounds(_parent)).yMin, true) && dead == false) { _root.circle._y -= speed + rebound; } i = 0; while (i < 25) { nameVal = 'bullet' + i; if (_root[nameVal].hitTest(this)) { if (protection == false) { _root.exSpeed = 5; _root.brokenSize = 10; trace('Target hit by ' + nameVal); health -= _root.playerDamage; ++_root.hit; explos = 'smallShock' + _root.getNextHighestDepth(); _root[explos].gotoAndStop('player'); duplicateMovieClip(_root.redExplosion, explos, _root.getNextHighestDepth()); _root[explos]._alpha = 100; _root[explos]._x = _root[nameVal]._x + random(20) - random(20); _root[explos]._y = _root[nameVal]._y + random(20) - random(20); zoe = 30; _root[explos]._xscale = zoe; _root[explos]._yscale = zoe; _root[nameVal].removeMovieClip(); } if (protection == true) { bubbleTimer -= _root.playerDamage / 2; trace(bubbleTimer); explos = 'smallShock' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explos, _root.getNextHighestDepth()); _root[explos]._alpha = 100; _root[explos]._x = _root[nameVal]._x + random(5) - random(5); _root[explos]._y = _root[nameVal]._y + random(5) - random(5); zoe = 30; _root[explos]._xscale = zoe; _root[explos]._yscale = zoe; _root[nameVal].removeMovieClip(); } } ++i; } if (health <= 0) { _root.lockedM = false; dead = true; _root[barName].removeMovieClip(); _root[barName2].removeMovieClip(); extravaganza = random(4); if (extravaganza == 0) { explo = 'apple' + _root.getNextHighestDepth(); duplicateMovieClip(_root.redExplosion, explo, _root.getNextHighestDepth()); _root[explo]._alpha = 100; _root[explo]._x = _x + random(200) - random(200); _root[explo]._y = _y + random(200) - random(200); zoe = random(100) + 100; _root[explo]._xscale = zoe; _root[explo]._yscale = zoe; kirupaSound = new Sound(this); kirupaSound.attachSound('dead'); kirupaSound.setVolume = 20; kirupaSound.start(0, 1); i = 0; while (i < 10) { _root.brokenSize = 30; _root.exSpeed = 2; ++_root.explosions; exNvar = 'explosion' + _root.explosions; duplicateMovieClip(_root.brokenCube, exNvar, _root.getNextHighestDepth()); _root[exNvar].gotoAndStop(colour); _root[exNvar]._x = _x + random(200) - random(200); _root[exNvar]._y = _y + random(200) - random(200); ++i; } } --display; if (display < 100) { _alpha = _alpha - 1; } trace(display); if (display < 0) { _root.scoreStage = '+' + val; ++_root.scoreOnStage; _root.theScore += val; _root.prog += val; plusVar = 'plus' + _root.scoreOnStage; duplicateMovieClip(_root.plusOne, plusVar, _root.getNextHighestDepth()); _root[plusVar]._x = this._x; _root[plusVar]._y = this._y; _root.scoreTOS = 5; if (pow == 0) { spawnPower(); } if (pow == 1) { spawnSpeed(); } if (pow == 2) { spawnHealth(); } if (pow == 3) { spawnShields(); } ++_root.killed; _root.scoreNum.gotoAndPlay(1); this.removeMovieClip(); } } } } } } movieClip 470 { frame 10 { stop(); } } instance redExplosion of movieClip 470 { onClipEvent (load) { b = 10; } onClipEvent (enterFrame) { --b; if (_visible == true) { if (b < 0) { this.removeMovieClip(); } } } } instance hpBar of movieClip 462 { onClipEvent (enterFrame) { } } movieClip 476 { } movieClip 478 { } instance displayMe of movieClip 478 { onClipEvent (enterFrame) { if (_alpha > 0) { _root.interval = true; _alpha = _alpha - 1; if (_alpha < 0) { _root.interval = false; percent = (_root.prog / 10600) * 100; _root.progBar._xscale = percent * 2; } } } } movieClip 482 { } movieClip 483 { } instance barSlice1 of movieClip 483 { onClipEvent (load) { _alpha = 100; _y = 11.35; pos = 9.0915 * _root.health + 15; _x = pos; } onClipEvent (enterFrame) { if (_visible == true) { _y = _y - 2; _alpha = _alpha - 2; if (_alpha < 0) { this.removeMovieClip(); } } } } movieClip 484 { } instance fspeedBar of movieClip 484 { onClipEvent (load) { this.gotoAndStop(35); percent = (_root.regen / 100) * 100; _root.fspeedBar._xscale = percent; } } instance speedBar of movieClip 484 { onClipEvent (load) { this.gotoAndStop(75); percent = (_root.playerSpeed / 20) * 100; _root.speedBar._xscale = percent; } } instance powerBar of movieClip 484 { onClipEvent (load) { this.gotoAndStop(1); percent = (_root.playerDamage / 20) * 100; _root.powerBar._xscale = percent; } } instance enBar of movieClip 462 { onClipEvent (load) { _visible = false; } } instance progBar of movieClip 484 { onClipEvent (load) { this.gotoAndStop(88); } } button 491 { on (release) { _x = -1000; _root.pauseGame = false; } } button 493 { on (press) { _root.pauseGame = false; _root.gotoAndStop('main'); stopAllSounds(); i = 0; while (i < 30) { bullName = 'bullet' + i; removeMovieClip(_root[bullName]); ++i; } i = 0; while (i < 30) { bullName2 = 'ebullet' + i; removeMovieClip(_root[bullName2]); ++i; } _x = -1000; stopAllSounds(); } } movieClip 494 { frame 1 { stop(); } frame 33 { stop(); } } movieClip 497 { frame 1 { play(); } frame 2 { play(); } frame 3 { play(); } frame 4 { play(); } frame 5 { play(); } frame 6 { play(); } frame 7 { play(); } frame 8 { play(); } frame 9 { play(); } frame 10 { play(); } frame 11 { play(); } frame 12 { play(); } frame 13 { play(); } frame 14 { play(); } frame 15 { play(); } frame 16 { play(); } frame 17 { play(); } frame 18 { play(); } frame 19 { play(); } frame 20 { stop(); } } instance targeter of movieClip 302 { onClipEvent (enterFrame) { if (_root.lockedM == false) { s = 1; if (_root.autoAim == false) { j = 10; } else { j = 25; } this._x = _root._xmouse; this._y = _root._ymouse; this.swapDepths(_root.getNextHighestDepth()); } else { --j; if (s == 1) { kirupaSound66 = new Sound(this); kirupaSound66.attachSound('pointUp'); kirupaSound66.start(0, 1); } s = 0; if (j < 0) { _root.lockedM = false; this._x = _root._xmouse; this._y = _root._ymouse; } } } } movieClip 498 { } button 499 { on (press) { getURL('http://www.armorgames.com', _blank); } } button 505 { on (release) { _root.bScreen.gotoAndPlay('resume'); gotoAndPlay(61); } } button 508 { on (release) { _root.bScreen.gotoAndPlay('resume'); } } button 510 { on (release) { _root.rBossCreated = false; _root.oBossCreated = false; _root.yBossCreated = false; _root.gBossCreated = false; _root.bBossCreated = false; _root.vBossCreated = false; _root.hpBar._xscale = _root.health; _root.hpBar.gotoAndStop(Math.round(_root.health)); _root.healthPercentage = Math.round(_root.health) + '%'; _root.enemiesOnStage = 0; _root.dead = false; _root.gotoAndStop('main'); _root.bScreen.gotoAndStop(1); } } movieClip 511 { frame 60 { stop(); } frame 80 { stop(); } } movieClip 512 { frame 1 { stop(); _root.interval = true; } frame 10 { _root.bScreen.swapDepths(_root.getNextHighestDepth()); g = 0; while (g < _root.enemies) { eName = 'enemy' + g; _root[eName].removeMovieClip(); ++g; } g = 0; while (g < _root.powerups) { powerUp = 'HealthPU' + g; _root[powerUp].removeMovieClip(); ++g; } a = 0; while (a < _root.hpBars) { barName = 'bossBar2' + a; barName2 = 'bossBar' + a; _root[barName].removeMovieClip(); _root[barName2].removeMovieClip(); ++a; } ++_root.diedNum; _root.health = 100; _root.hpBar._xscale = _root.health; _root.hpBar.gotoAndStop(Math.round(_root.health)); _root.healthPercentage = Math.round(_root.health) + '%'; _root.powTimer = 0; } frame 15 { stop(); } frame 50 { _root.rBossCreated = false; _root.oBossCreated = false; _root.yBossCreated = false; _root.gBossCreated = false; _root.bBossCreated = false; _root.vBossCreated = false; _root.spawnRND = true; _root.prog = _root.checkPoint; _root.hpBar._xscale = _root.health; _root.hpBar.gotoAndStop(Math.round(_root.health)); _root.healthPercentage = Math.round(_root.health) + '%'; _root.enemiesOnStage = 0; _root.dead = false; gotoAndStop(1); } } frame 9 { } frame 9 { stopAllSounds(); Mouse.show(); kirupaSound66 = new Sound(this); kirupaSound66.attachSound('scoreBGM'); kirupaSound66.start(0, 99); i = 0; while (i < 30) { bullName = 'bullet' + i; removeMovieClip(_root[bullName]); ++i; } i = 0; while (i < 30) { bullName2 = 'ebullet' + i; removeMovieClip(_root[bullName2]); ++i; } g = 0; while (g < _root.enemies) { eName = 'enemy' + g; _root[eName].removeMovieClip(); ++g; } g = 0; while (g < _root.powerups) { powerUp = 'HealthPU' + g; _root[powerUp].removeMovieClip(); ++g; } a = 0; while (a < _root.hpBars) { barName = 'bossBar2' + a; barName2 = 'bossBar' + a; _root[barName].removeMovieClip(); _root[barName2].removeMovieClip(); ++a; } _root.targeter.removeMovieClip(); _root.pauseMenu.removeMovieClip(); _root.bScreen.removeMovieClip(); _root.bScreen.gotoAndStop(1); } button 536 { on (press) { _root.pauseGame = false; _root.gotoAndStop('main'); } } movieClip 537 { instance of movieClip 322 { onClipEvent (load) { if (_root.waveOS == 'Wave 30') { _root.congrats = 'congratulations! you\'ve completed the game'; } if (_root.difficulty == 1) { _root.diffStat = 'Easy'; _root.diffBon = 100; } if (_root.difficulty == 2) { _root.diffStat = 'Medium'; _root.diffBon = 5000; } if (_root.difficulty == 3) { _root.diffStat = 'Hard'; _root.diffBon = 10000; } _root.accuracy = _root.acc + '%'; _root.deathsStat = _root.diedNum; _root.killedStat = _root.killed * 10; trace(_root.killed * 100); _root.accBon = _root.acc * 100; _root.deathsBon = _root.diedNum * 1000; _root.scoreTot = _root.theScore; i = 100; } onClipEvent (enterFrame) { --i; if (_root.killedStat < 0) { _root.killedStat = 0; } if (_root.deathsBon < 0) { _root.deathsBon = 0; } if (_root.accBon < 0) { _root.accBon = 0; } if (_root.diffBon < 0) { _root.diffBon = 0; } if (i < 0) { if (_root.diffBon > 0) { _root.diffBon -= 100; _root.scoreTot += 100; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('pointUp'); kirupaSound66.start(0, 1); } if (_root.killedStat > 0) { _root.killedStat -= 100; _root.scoreTot += 100; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('pointUp'); kirupaSound66.start(0, 1); } if (_root.accBon > 0) { _root.accBon -= 100; _root.scoreTot += 100; kirupaSound66 = new Sound(this); kirupaSound66.attachSound('pointUp'); kirupaSound66.start(0, 1); } if (_root.deathsBon > 0) { _root.deathsBon -= 100; _root.scoreTot -= 100; } } } } frame 75 { stop(); } } frame 10 { stop(); }




http://swfchan.com/28/135082/info.shtml
Created: 9/2 -2019 16:36:09 Last modified: 9/2 -2019 16:36:09 Server time: 05/05 -2024 17:50:16