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

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM69812451-14DC&rnd=69812451" width="1" height="1"></div>

starshipsevenali1.swf

This is the info page for
Flash #262302

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { ready = true; } frame 2 { cst = new Object(); cst.gravity = 0.1; cst.slowdown = 0.995; cst.maxObjects = 20; cst.maxMonster = 10; temp = new Object(); code = new Array(); code[1] = 'beginner'; code[4] = 'easy'; code[6] = 'sputnik'; code[9] = 'spacehog'; code[11] = 'spikecity'; code[14] = 'www.neokolor.com'; code[16] = 'suicide'; code[19] = 'alice'; code[21] = 'theboss'; code[22] = 'iceworld'; code[25] = 'penguin'; code[27] = 'experts'; code[30] = 'nervous'; code[32] = 'tension'; code[34] = 'ireland'; code[35] = 'wisdom'; code[36] = 'elvis42'; code[37] = 'secret'; code[38] = 'teatime'; code[39] = 'hardone'; code[40] = 'twoleft'; code[41] = 'semifinal'; code[42] = 'bigboss'; code[43] = 'congratulations'; } movieClip 9 { frame 1 { stop(); } } movieClip 10 { frame 2 { this.display.gotoAndStop(int((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 40 + 1)); if (_level0.getBytesLoaded() == _level0.getBytesTotal()) { _root.play(); } } } movieClip 12 { } movieClip 13 { } movieClip 15 { } movieClip 17 { frame 1 { stop(); } } movieClip 20 { } movieClip 21 { frame 1 { if (_parent.vx < 0) { shot.gotoAndStop(2); } stop(); } frame 14 { _parent.ready = 'gone'; stop(); } } movieClip 22 { frame 1 { stop(); vy = 0; vx = 0; ready = true; } frame 2 { if (0 < vx) { vx += 0.4; } else { vx -= 0.4; } vx *= 0.97; _y = _y + vy; _x = _x + vx; if (_parent.matter.hitTest(_x, _y, true)) { if (_parent.matter.active.hitTest(_x, _y, true)) { } else { if (_parent.matter.danger.monster_1.hitTest(_x, _y, true)) { _parent.matter.danger.monster_1.hit(); } if (_parent.matter.danger.monster_2.hitTest(_x, _y, true)) { _parent.matter.danger.monster_2.hit(); } if (_parent.matter.danger.monster_3.hitTest(_x, _y, true)) { _parent.matter.danger.monster_3.hit(); } if (_parent.matter.danger.monster_4.hitTest(_x, _y, true)) { _parent.matter.danger.monster_4.hit(); } if (_parent.matter.danger.monster_5.hitTest(_x, _y, true)) { _parent.matter.danger.monster_5.hit(); } if (_parent.matter.danger.monster_6.hitTest(_x, _y, true)) { _parent.matter.danger.monster_6.hit(); } if (_parent.matter.danger.monster_7.hitTest(_x, _y, true)) { _parent.matter.danger.monster_7.hit(); } if (_parent.matter.danger.monster_8.hitTest(_x, _y, true)) { _parent.matter.danger.monster_8.hit(); } if (_parent.matter.danger.monster_9.hitTest(_x, _y, true)) { _parent.matter.danger.monster_9.hit(); } if (_parent.matter.danger.monster_10.hitTest(_x, _y, true)) { _parent.matter.danger.monster_10.hit(); } if (ready != 'explode') { ready = 'explode'; shot.play(); } vx *= 0.9; } } if (_x < 0) { gotoAndStop(1); } if (550 < _x) { gotoAndStop(1); } if (_y < 0) { gotoAndStop(1); } if (400 < _y) { gotoAndStop(1); } } frame 3 { if (ready == 'gone') { gotoAndStop(1); } else { gotoAndPlay(2); } } } movieClip 24 { } movieClip 25 { frame 1 { stop(); } } movieClip 26 { frame 1 { stop(); } } movieClip 28 { frame 1 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 2 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 3 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 4 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 5 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 6 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 7 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 8 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 9 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 10 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 11 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 12 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 13 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 14 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 15 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 16 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 17 { _parent._x += _parent.vx; _parent._y += _parent.vy; } frame 18 { stop(); --_parent.actLives; if (_parent.actLives == 0) { _parent._parent.ready = false; _root.master.gotoAndPlay('gameOver'); } else { _parent.gotoAndPlay('start'); } } } movieClip 29 { frame 1 { function bump() { if (sensorHBump[i] == 'left') { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (0 < vx) { vx *= bumpAmount; } _x = _x - 1; } } else { if (sensorHBump[i] == 'right') { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (vx < 0) { vx *= bumpAmount; } _x = _x + 1; } } } if (sensorVBump[i] == 'up') { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (0 < vy) { vy *= bumpAmount; } _y = _y - 1; } } else { if (sensorVBump[i] == 'down') { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (vy < 0) { vy *= bumpAmount; } if (i == 9) { _y = _y + 1; } } } } } function fillUp() { actEnergy = maxEnergy; actShots = maxShots; } function completeCollisionCheck() { collision = false; if (_parent.matter.hitTest(_x + sensorX[5], _y + sensorY[5], true)) { collision = true; } if (_parent.matter.hitTest(_x + sensorX[6], _y + sensorY[6], true)) { collision = true; } if (_parent.matter.hitTest(_x + sensorX[7], _y + sensorY[7], true)) { collision = true; } if (_parent.matter.hitTest(_x + sensorX[8], _y + sensorY[8], true)) { collision = true; } if (_parent.matter.hitTest(_x + sensorX[9], _y + sensorY[9], true)) { collision = true; } } function checkBorderCollision() { if (_x + sensorX[5] < 0) { vx = Math.abs(vx * bumpAmount); _x = -sensorX[5]; } if (550 < _x + sensorX[6]) { vx = Math.abs(vx) * bumpAmount; _x = 550 - sensorX[6]; } if (_y + sensorY[9] < 0) { vy = Math.abs(vy * bumpAmount); _y = -sensorY[9]; } if (339 < _y) { vy = Math.abs(vy) * bumpAmount; _y = 339; } } ay = -0.5; ax = 0.5; ground = true; sensorX = new Array(); sensorY = new Array(); sensorHBump = new Array(); sensorVBump = new Array(); sensorX[0] = -11; sensorY[0] = 0; sensorHBump[0] = 'right'; sensorVBump[0] = 'up'; sensorX[1] = 11; sensorY[1] = 0; sensorHBump[1] = 'left'; sensorVBump[1] = 'up'; sensorX[2] = 0; sensorY[2] = 2; sensorHBump[2] = ''; sensorVBump[2] = 'up'; sensorX[3] = -8; sensorY[3] = -4; sensorHBump[3] = 'right'; sensorVBump[3] = 'up'; sensorX[4] = 8; sensorY[4] = -4; sensorHBump[4] = 'left'; sensorVBump[4] = 'up'; sensorX[5] = -13; sensorY[5] = -11; sensorHBump[5] = 'right'; sensorVBump[5] = ''; sensorX[6] = 13; sensorY[6] = -11; sensorHBump[6] = 'left'; sensorVBump[6] = ''; sensorX[7] = -7; sensorY[7] = -4; sensorHBump[7] = 'right'; sensorVBump[7] = 'down'; sensorX[8] = 7; sensorY[8] = -4; sensorHBump[8] = 'left'; sensorVBump[8] = 'down'; sensorX[9] = 0; sensorY[9] = -21; sensorHBump[9] = ''; sensorVBump[9] = 'down'; sensorX[10] = 0; sensorY[10] = -7; bumpAmount = -0.2; } frame 2 { fillUp(); vx = 0; vy = 0; _x = 250; _y = 200; } frame 3 { actSpeed = 0; vx *= _root.cst.slowdown; collision = 0; legL = false; legR = false; legC = false; if (_parent.matter.platform.hitTest(_x + sensorX[0], _y + sensorY[0], true)) { ++collision; legL = true; } if (_parent.matter.platform.hitTest(_x + sensorX[1], _y + sensorY[1], true)) { ++collision; legR = true; } if (_parent.matter.platform.hitTest(_x + sensorX[2], _y + sensorY[2], true)) { ++collision; legC = true; } if (legL == true && legR != true) { if (_parent.matter.platform.hitTest(_x + sensorX[1], _y + sensorY[1] + 3.5, true)) { rotate = 2; maxrotate = 5; } else { rotate = 3; maxrotate = 10; } } if (legR == true && legL != true) { if (_parent.matter.platform.hitTest(_x + sensorX[0], _y + sensorY[0] + 3.5, true)) { rotate = -2; maxrotate = 5; } else { rotate = -3; maxrotate = 10; } } if (legL != true && legR != true) { rotate = 0; } if (1 < collision) { ground = true; fireLeft.gotoAndStop('inactive'); fireRight.gotoAndStop('inactive'); vy = 0; vx = 0; if (Math.abs(_rotation) < maxrotate && rotate != 0) { _rotation = _rotation + rotate; _y = _y + 0.2; } i = 5; while (6 >= i) { bump(); ++i; } } else { ground = false; _rotation = _rotation * 0.9; vy += _root.cst.gravity; } completeCollisionCheck(); if (collision == true) { collision = false; i = 5; while (9 >= i) { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { bump(); } ++i; } } checkBorderCollision(); if (Key.isDown(Key.UP)) { vy += ay; fireDown.gotoAndStop('fire'); } else { fireDown.gotoAndStop('inactive'); } if (Key.isDown(Key.LEFT)) { if (ground == true) { vy += ay; } vx -= ax; fireRight.gotoAndStop('fire'); _rotation = _rotation * 0.98 + 1; shootLeft = true; } else { fireRight.gotoAndStop('inactive'); } if (Key.isDown(Key.RIGHT)) { if (ground == true) { vy += ay; } vx += ax; fireLeft.gotoAndStop('fire'); _rotation = _rotation * 0.98 - 1; shootLeft = false; } else { fireLeft.gotoAndStop('inactive'); } _x = _x + vx; _y = _y + vy; if (Key.isDown(Key.SPACE)) { if (_parent.shot.ready == true) { if (shootLeft != true) { _parent.shot._x = _x + 15; _parent.shot._y = _y - 8; _parent.shot.vx = 3; } else { _parent.shot._x = _x - 15; _parent.shot._y = _y - 8; _parent.shot.vx = -3; } _parent.shot.ready = false; _parent.shot.gotoAndPlay('shoot'); } } } frame 4 { gotoAndPlay(3); } frame 5 { play(); } frame 9 { ++actLevel; _parent.shot.gotoAndStop(1); _parent.matter.active.nextFrame(); _parent.matter.platform.nextFrame(); _parent.matter.danger.nextFrame(); } frame 10 { initObjects(); if (!(_root.code[actLevel] eq '')) { _root.savepoint = 'savepoint'; } else { _root.savepoint = ''; } vx = 0; vy = 0; _x = 250; _y = 200; _parent.shot.gotoAndStop(1); gotoAndPlay(3); } frame 11 { stop(); } } movieClip 30 { frame 1 { go = true; ready = true; } } frame 14 { stop(); } button 36 { on (release) { getURL('http://www.neodelight.com', '_blank'); } } movieClip 37 { } movieClip 38 { } button 42 { on (release) { gotoAndPlay(81); } } button 43 { on (release) { gotoAndStop(80); } } button 44 { on (release) { gotoAndStop(79); } } button 60 { on (release) { getURL('http://www.neodelight.com/', '_blank'); } } movieClip 61 { frame 86 { stop(); } } frame 73 { } frame 78 { startlevel = 1; stop(); } button 62 { on (release) { gotoAndStop(78); } } movieClip 66 { } frame 80 { Selection.setFocus('input'); } button 75 { on (release, keyPress '<Enter>') { if (!(input eq '')) { result = ''; i = 0; while (code.length >= i) { if (code[i] eq input) { startlevel = i; result = 'password for level ' + i; gotoAndPlay(81); break; } ++i; } if (result == '') { result = 'bad password'; input = ''; } } } } frame 84 { stop(); } movieClip 79 { } movieClip 80 { frame 1 { this._name = 'shipPosition'; } instance blueprint of movieClip 79 { onClipEvent (load) { _visible = false; } } } movieClip 82 { frame 1 { function hit() {} } } movieClip 84 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _parent._parent._parent.ship.actEnergy += 70; if (_parent._parent._parent.ship.maxEnergy < _parent._parent._parent.ship.actEnergy) { _parent._parent._parent.ship.actEnergy = _parent._parent._parent.ship.maxEnergy; } _parent._parent._parent.ship.refreshEnergy(); active = false; play(); } } active = true; stop(); init(); } frame 6 { stop(); } } movieClip 86 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _parent._parent._parent.ship.actFuel += 150; if (_parent._parent._parent.ship.maxFuel < _parent._parent._parent.ship.actFuel) { _parent._parent._parent.ship.actFuel = _parent._parent._parent.ship.maxFuel; } _parent._parent._parent.ship.burnFuel(); active = false; play(); } } active = true; stop(); init(); } frame 6 { stop(); } } movieClip 87 { frame 1 { function hit() {} } } movieClip 89 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _parent._parent._parent.ship.actShots += 3; _parent._parent._parent.ship.refreshShots(); active = false; play(); } } active = true; stop(); init(); } frame 6 { stop(); } } movieClip 91 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _parent._parent._parent.ship.actShots += 5; _parent._parent._parent.ship.refreshShots(); active = false; play(); } } active = true; stop(); init(); } frame 6 { stop(); } } movieClip 94 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _root.temp.monsterId = monster; i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../../danger/monster_' + i') { if (id eq _root.temp.monsterId) { nextFrame(); } } active = false; nextFrame(); ++i; } } } active = true; stop(); init(); } } movieClip 95 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _root.temp.monsterId = monster; i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../../danger/monster_' + i') { if (id eq _root.temp.monsterId) { nextFrame(); } } active = false; nextFrame(); ++i; } } } active = true; stop(); init(); } } movieClip 96 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _root.temp.monsterId = monster; i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../../danger/monster_' + i') { if (id eq _root.temp.monsterId) { nextFrame(); } } active = false; nextFrame(); ++i; } } } active = true; stop(); init(); } } movieClip 98 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _parent._parent._parent.ship.actEnergy += 70; if (_parent._parent._parent.ship.maxEnergy < _parent._parent._parent.ship.actEnergy) { _parent._parent._parent.ship.actEnergy = _parent._parent._parent.ship.maxEnergy; } _parent._parent._parent.ship.refreshEnergy(); } } active = true; stop(); init(); } } movieClip 102 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { _parent._parent._parent.ship.actFuel += 150; if (_parent._parent._parent.ship.maxFuel < _parent._parent._parent.ship.actFuel) { _parent._parent._parent.ship.actFuel = _parent._parent._parent.ship.maxFuel; } _parent._parent._parent.ship.burnFuel(); } } active = true; stop(); init(); } frame 6 { stop(); } } movieClip 104 { frame 1 { function init() { var i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../object_' + i') { _root.temp.objectFrames = _totalframes; } if (Number(_root.temp.objectFrames) == 0) { _name = 'object_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (active == true) { ++_parent._parent._parent.ship.actLives; _parent._parent._parent.ship.refreshLives(); active = false; play(); } } active = true; stop(); init(); } frame 6 { stop(); } } movieClip 105 { frame 1 { this._name = 'shipPosition'; } instance blueprint of movieClip 79 { onClipEvent (load) { _visible = false; } } } movieClip 106 { frame 1 { stop(); } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 95 { onClipEvent (load) { monster = 3; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 96 { onClipEvent (load) { monster = 2; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 96 { onClipEvent (load) { monster = 2; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 96 { onClipEvent (load) { monster = 2; } } instance of movieClip 95 { onClipEvent (load) { monster = 3; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 96 { onClipEvent (load) { monster = 2; } } instance of movieClip 96 { onClipEvent (load) { monster = 2; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 96 { onClipEvent (load) { monster = 2; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 96 { onClipEvent (load) { monster = 2; } } instance of movieClip 95 { onClipEvent (load) { monster = 3; } } instance of movieClip 96 { onClipEvent (load) { monster = 2; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } instance of movieClip 94 { onClipEvent (load) { monster = 1; } } } movieClip 109 { } movieClip 110 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } gotoAndStop(1); } function hit() { if (ready == true) { nextFrame(); } } ready = true; stop(); init(); } frame 4 { ready = false; play(); } frame 21 { stop(); } } movieClip 114 { } movieClip 115 { } movieClip 116 { } movieClip 117 { frame 1 { stop(); } frame 7 { _parent.ready = false; play(); } frame 24 { stop(); } } movieClip 118 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 119 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 120 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 122 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } gotoAndStop(1); } function hit() {} ready = true; stop(); init(); } frame 2 { ready = false; play(); } frame 19 { stop(); } } movieClip 123 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 124 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 126 { } movieClip 127 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } gotoAndStop(1); } function hit() {} ready = true; stop(); init(); } frame 2 { ready = false; play(); } frame 19 { stop(); } } movieClip 128 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } gotoAndStop(1); } function hit() {} ready = true; stop(); init(); } frame 2 { ready = false; play(); } frame 19 { stop(); } } movieClip 129 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } gotoAndStop(1); } function hit() {} ready = true; stop(); init(); } frame 2 { ready = false; play(); } frame 19 { stop(); } } movieClip 130 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } gotoAndStop(1); } function hit() {} ready = true; stop(); init(); } frame 2 { ready = false; play(); } frame 19 { stop(); } } movieClip 132 { } movieClip 133 { frame 1 { stop(); } frame 25 { _parent.ready = false; play(); } frame 53 { _parent._parent.body.play(); } frame 70 { stop(); } } movieClip 134 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); _parent.body.gotoAndStop(1); play(); } frame 2 { stop(); } frame 3 { stop(); } frame 101 { gotoAndPlay(2); } } movieClip 136 { } movieClip 137 { frame 21 { stop(); } } movieClip 139 { } movieClip 140 { frame 1 { stop(); } frame 10 { _parent.ready = false; play(); } frame 27 { stop(); } } movieClip 141 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 61 { gotoAndPlay(2); } } movieClip 142 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 61 { gotoAndPlay(2); } } movieClip 144 { } movieClip 145 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 146 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 147 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 150 { } movieClip 151 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 225 { gotoAndPlay(2); } } movieClip 152 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 225 { gotoAndPlay(2); } } movieClip 153 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 225 { gotoAndPlay(2); } } movieClip 154 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 225 { gotoAndPlay(2); } } movieClip 155 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 156 { } movieClip 157 { } movieClip 158 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } init(); play(); } } movieClip 159 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 160 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); play(); } frame 101 { gotoAndPlay(2); } } movieClip 161 { } movieClip 162 { frame 1 { stop(); } frame 45 { _parent.ready = false; play(); } frame 95 { _root.temp.monsterId = 1; i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../../monster_' + i') { if (id eq _root.temp.monsterId) { nextFrame(); } } active = false; nextFrame(); ++i; } stop(); } } movieClip 163 { frame 1 { function init() { var i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../monster_' + i') { _root.temp.monsterFrames = _totalframes; } if (Number(_root.temp.monsterFrames) == 0) { _name = 'monster_' + i; break; } ++i; } monster.gotoAndStop(1); if (!(start eq '')) { gotoAndPlay(start + 1); } else { gotoAndPlay(2); } } function hit() { if (ready == true) { monster.nextFrame(); } } init(); _parent.body.gotoAndStop(1); play(); } frame 200 { gotoAndPlay(2); } } movieClip 164 { frame 1 { stop(); } instance of movieClip 118 { onClipEvent (load) { start = 1; } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 120 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(60); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 122 { onClipEvent (load) { id = 'wall_1'; } } instance of movieClip 123 { onClipEvent (load) { start = 50; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 124 { onClipEvent (load) { start = 60; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 123 { onClipEvent (load) { start = 50; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance monster_1 of movieClip 127 { onClipEvent (load) { id = 1; } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance monster_2 of movieClip 128 { onClipEvent (load) { id = 2; } } instance monster_1 of movieClip 129 { onClipEvent (load) { id = 1; } } instance monster_2 of movieClip 130 { onClipEvent (load) { id = 3; } } instance of movieClip 118 { onClipEvent (load) { start = 1; } } instance of movieClip 118 { onClipEvent (load) { start = 1; } } instance monster_2 of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 122 { onClipEvent (load) { id = 'wall_1'; } } instance monster_1 of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 123 { onClipEvent (load) { start = 50; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 134 { onClipEvent (load) { start = 1; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 146 { onClipEvent (load) { start = 30; } } instance of movieClip 130 { onClipEvent (load) { id = 3; } } instance of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 146 { onClipEvent (load) { start = 30; } } instance of movieClip 147 { onClipEvent (load) { start = 50; } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 122 { onClipEvent (load) { id = 'wall_1'; } } instance of movieClip 122 { onClipEvent (load) { id = 'wall_1'; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 151 { onClipEvent (load) { start = 1; } } instance of movieClip 152 { onClipEvent (load) { start = 60; } } instance of movieClip 153 { onClipEvent (load) { start = 120; } } instance of movieClip 154 { onClipEvent (load) { start = 180; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 122 { onClipEvent (load) { id = 'wall_1'; } } instance of movieClip 118 { onClipEvent (load) { start = 1; } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 155 { onClipEvent (load) { start = 30; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 146 { onClipEvent (load) { start = 30; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 130 { onClipEvent (load) { id = 3; } } instance of movieClip 118 { onClipEvent (load) { start = 1; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 146 { onClipEvent (load) { start = 30; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 147 { onClipEvent (load) { start = 50; } } instance of movieClip 159 { onClipEvent (load) { start = 20; } } instance of movieClip 160 { onClipEvent (load) { start = 40; } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 146 { onClipEvent (load) { start = 30; } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 119 { onClipEvent (load) { start = 1; } onClipEvent (load) { monster.gotoAndPlay(30); } } instance of movieClip 145 { onClipEvent (load) { start = 1; } } instance of movieClip 146 { onClipEvent (load) { start = 30; } } instance of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 118 { onClipEvent (load) { start = 1; } } instance of movieClip 128 { onClipEvent (load) { id = 2; } } instance of movieClip 129 { onClipEvent (load) { id = 1; } } instance of movieClip 141 { onClipEvent (load) { start = 1; } } instance of movieClip 142 { onClipEvent (load) { start = 30; } } instance of movieClip 163 { onClipEvent (load) { start = 1; } } } movieClip 210 { } movieClip 212 { frame 1 { stop(); } } movieClip 213 { } movieClip 214 { frame 1 { function bump() { if (sensorHBump[i] == 'left') { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (0 < vx) { vx *= bumpAmount; } _x = _x - 1; } } else { if (sensorHBump[i] == 'right') { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (vx < 0) { vx *= bumpAmount; } _x = _x + 1; } } } if (sensorVBump[i] == 'up') { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (0 < vy) { vy *= bumpAmount; } _y = _y - 1; } } else { if (sensorVBump[i] == 'down') { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (vy < 0) { vy *= bumpAmount; } if (i == 9) { _y = _y + 1; } } } } bumpDamage(); } function bumpDamage() { if (harmfulSpeed < actSpeed) { actEnergy -= actSpeed - harmfulSpeed; if (actEnergy < 0) { actEnergy = 0; refreshEnergy(); gotoAndPlay(18); } else { refreshEnergy(); } } } function burnFuel() { _root.fuel.gotoAndStop(int((actFuel / maxFuel) * 199) + 1); } function refreshLives() { if (lives < 4) { _root.lives.gotoAndStop(actLives + 1); } else { _root.lives.gotoAndStop(5); } } function refreshShots() { if (shots < 9) { _root.shots.gotoAndStop(actShots + 1); } else { _root.shots.gotoAndStop(10); } } function refreshEnergy() { _root.energy.gotoAndStop(int((actEnergy / maxEnergy) * 199) + 1); } function initObjects() { i = 1; while (_root.cst.maxObjects >= i) { tellTarget (''../matter/active/object_' + i') { init(); } ++i; } i = 1; while (_root.cst.maxMonster >= i) { tellTarget (''../matter/danger/monster_' + i') { init(); ready = true; } ++i; } } function fillUp() { actFuel = maxFuel; actEnergy = maxEnergy; actShots = maxShots; refreshLives(); refreshShots(); refreshEnergy(); burnFuel(); } function completeCollisionCheck() { collision = false; if (_parent.matter.danger.hitTest(_x + sensorX[0], _y + sensorY[0] - 2, true)) { gotoAndPlay(18); } if (_parent.matter.danger.hitTest(_x + sensorX[1], _y + sensorY[1] - 2, true)) { gotoAndPlay(18); } if (_parent.matter.danger.hitTest(_x + sensorX[2], _y + sensorY[2] - 4, true)) { gotoAndPlay(18); } if (_parent.matter.hitTest(_x + sensorX[5], _y + sensorY[5], true)) { collision = true; } if (_parent.matter.hitTest(_x + sensorX[6], _y + sensorY[6], true)) { collision = true; } if (_parent.matter.hitTest(_x + sensorX[7], _y + sensorY[7], true)) { collision = true; } if (_parent.matter.hitTest(_x + sensorX[8], _y + sensorY[8], true)) { collision = true; } if (_parent.matter.hitTest(_x + sensorX[9], _y + sensorY[9], true)) { collision = true; } } function checkBorderCollision() { if (_x + sensorX[5] < 0) { vx = Math.abs(vx * bumpAmount); _x = -sensorX[5]; } if (550 < _x + sensorX[6]) { vx = Math.abs(vx) * bumpAmount; _x = 550 - sensorX[6]; } if (_y + sensorY[9] < 0) { vy = Math.abs(vy * bumpAmount); _y = -sensorY[9]; } if (339 < _y) { vy = Math.abs(vy) * bumpAmount; _y = 339; } } actLevel = _root.startlevel; _parent.matter.active.gotoAndStop(actLevel); _parent.matter.platform.gotoAndStop(actLevel); _parent.matter.danger.gotoAndStop(actLevel); maxFuel = 1000; burnFuelUp = 2; burnFuelSide = 1; maxEnergy = 200; maxShots = 5; actLives = 3; harmfulSpeed = 1; ay = -0.5; ax = 0.5; ground = true; sensorX = new Array(); sensorY = new Array(); sensorHBump = new Array(); sensorVBump = new Array(); sensorX[0] = -11; sensorY[0] = 0; sensorHBump[0] = 'right'; sensorVBump[0] = 'up'; sensorX[1] = 11; sensorY[1] = 0; sensorHBump[1] = 'left'; sensorVBump[1] = 'up'; sensorX[2] = 0; sensorY[2] = 2; sensorHBump[2] = ''; sensorVBump[2] = 'up'; sensorX[3] = -8; sensorY[3] = -4; sensorHBump[3] = 'right'; sensorVBump[3] = 'up'; sensorX[4] = 8; sensorY[4] = -4; sensorHBump[4] = 'left'; sensorVBump[4] = 'up'; sensorX[5] = -13; sensorY[5] = -11; sensorHBump[5] = 'right'; sensorVBump[5] = ''; sensorX[6] = 13; sensorY[6] = -11; sensorHBump[6] = 'left'; sensorVBump[6] = ''; sensorX[7] = -7; sensorY[7] = -4; sensorHBump[7] = 'right'; sensorVBump[7] = 'down'; sensorX[8] = 7; sensorY[8] = -4; sensorHBump[8] = 'left'; sensorVBump[8] = 'down'; sensorX[9] = 0; sensorY[9] = -21; sensorHBump[9] = ''; sensorVBump[9] = 'down'; sensorX[10] = 0; sensorY[10] = -7; bumpAmount = -0.2; } frame 2 { fillUp(); initObjects(); _x = _parent.matter.active.shipPosition._x; _y = _parent.matter.active.shipPosition._y; } frame 4 { if (_parent.ready != true) { gotoAndPlay(3); } } frame 5 { fillUp(); if (!(_root.code[actLevel] eq '')) { if (actLives < 3) { actLives = 3; } refreshLives(); fillUp(); } initObjects(); vx = 0; vy = 0; _x = _parent.matter.active.shipPosition._x; _y = _parent.matter.active.shipPosition._y; } frame 6 { actSpeed = Math.pow(Math.abs(vy) + Math.abs(vx * 0.7), 2); vx *= _root.cst.slowdown; collision = 0; legL = false; legR = false; legC = false; if (_parent.matter.platform.hitTest(_x + sensorX[0], _y + sensorY[0], true)) { ++collision; legL = true; } if (_parent.matter.platform.hitTest(_x + sensorX[1], _y + sensorY[1], true)) { ++collision; legR = true; } if (_parent.matter.platform.hitTest(_x + sensorX[2], _y + sensorY[2], true)) { ++collision; legC = true; } if (legL == true && legR != true) { if (_parent.matter.platform.hitTest(_x + sensorX[1], _y + sensorY[1] + 3.5, true)) { rotate = 2; maxrotate = 5; } else { rotate = 3; maxrotate = 10; } } if (legR == true && legL != true) { if (_parent.matter.platform.hitTest(_x + sensorX[0], _y + sensorY[0] + 3.5, true)) { rotate = -2; maxrotate = 5; } else { rotate = -3; maxrotate = 10; } } if (legL != true && legR != true) { rotate = 0; } if (1 < collision) { ground = true; fireLeft.gotoAndStop('inactive'); fireRight.gotoAndStop('inactive'); bumpDamage(); vy = 0; vx = 0; if (0 >= actFuel) { gotoAndPlay(18); } if (Math.abs(_rotation) < maxrotate && rotate != 0) { _rotation = _rotation + rotate; _y = _y + 0.2; } i = 5; while (6 >= i) { bump(); ++i; } } else { ground = false; _rotation = _rotation * 0.9; vy += _root.cst.gravity; } completeCollisionCheck(); if (collision == true) { if (_parent.matter.active.goal.hitTest(_x + sensorX[10], _y + sensorY[10], true)) { gotoAndStop(8); } collision = false; i = 5; while (9 >= i) { if (_parent.matter.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (_parent.matter.danger.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { gotoAndPlay(18); } if (_parent.matter.active.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { if (_parent.matter.active.object_1.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_1.hit(); } if (_parent.matter.active.object_2.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_2.hit(); } if (_parent.matter.active.object_3.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_3.hit(); } if (_parent.matter.active.object_4.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_4.hit(); } if (_parent.matter.active.object_5.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_5.hit(); } if (_parent.matter.active.object_6.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_6.hit(); } if (_parent.matter.active.object_7.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_7.hit(); } if (_parent.matter.active.object_8.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_8.hit(); } if (_parent.matter.active.object_9.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_9.hit(); } if (_parent.matter.active.object_10.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_10.hit(); } if (_parent.matter.active.object_11.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_11.hit(); } if (_parent.matter.active.object_12.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_12.hit(); } if (_parent.matter.active.object_13.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_13.hit(); } if (_parent.matter.active.object_14.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_14.hit(); } if (_parent.matter.active.object_15.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_15.hit(); } if (_parent.matter.active.object_16.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_16.hit(); } if (_parent.matter.active.object_17.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_17.hit(); } if (_parent.matter.active.object_18.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_18.hit(); } if (_parent.matter.active.object_19.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_19.hit(); } if (_parent.matter.active.object_20.hitTest(_x + sensorX[i], _y + sensorY[i], true)) { _parent.matter.active.object_20.hit(); } } else { bump(); } } ++i; } } checkBorderCollision(); if (0 < actFuel) { if (Key.isDown(Key.UP)) { vy += ay; actFuel -= burnFuelUp; burnFuel(); fireDown.gotoAndStop('fire'); } else { fireDown.gotoAndStop('inactive'); } if (Key.isDown(Key.LEFT)) { if (ground == true) { vy += ay; } vx -= ax; actFuel -= burnFuelSide; burnFuel(); fireRight.gotoAndStop('fire'); _rotation = _rotation * 0.98 + 1; shootLeft = true; } else { fireRight.gotoAndStop('inactive'); } if (Key.isDown(Key.RIGHT)) { if (ground == true) { vy += ay; } vx += ax; actFuel -= burnFuelSide; burnFuel(); fireLeft.gotoAndStop('fire'); _rotation = _rotation * 0.98 - 1; shootLeft = false; } else { fireLeft.gotoAndStop('inactive'); } } else { fireLeft.gotoAndStop('inactive'); fireRight.gotoAndStop('inactive'); fireDown.gotoAndStop('inactive'); } _x = _x + vx; _y = _y + vy; if (Key.isDown(Key.SPACE)) { if (0 < actShots) { if (_parent.shot.ready == true) { if (shootLeft != true) { _parent.shot._x = _x + 15; _parent.shot._y = _y - 8; _parent.shot.vx = 3; } else { _parent.shot._x = _x - 15; _parent.shot._y = _y - 8; _parent.shot.vx = -3; } _parent.shot.ready = false; --actShots; refreshShots(); _parent.shot.gotoAndPlay('shoot'); } } } } frame 7 { gotoAndPlay(6); } frame 8 { play(); } frame 16 { ++actLevel; _parent.shot.gotoAndStop(1); _parent.matter.active.nextFrame(); _parent.matter.platform.nextFrame(); _parent.matter.danger.nextFrame(); } frame 17 { initObjects(); if (!(_root.code[actLevel] eq '')) { _root.savepoint = 'savepoint'; } else { _root.savepoint = ''; } vx = 0; vy = 0; _x = _parent.matter.active.shipPosition._x; _y = _parent.matter.active.shipPosition._y; _parent.shot.gotoAndStop(1); gotoAndPlay(6); } frame 18 { stop(); } } movieClip 215 { instance ship of movieClip 214 { onClipEvent (load) { vx = 0; vy = 0; } } } movieClip 221 { } movieClip 223 { } movieClip 224 { frame 200 { stop(); } } instance energy of movieClip 224 { onClipEvent (load) { gotoAndStop(50); } } instance fuel of movieClip 224 { onClipEvent (load) { gotoAndStop(50); } } movieClip 227 { frame 1 { stop(); } } movieClip 231 { frame 1 { stop(); } } button 235 { on (release) { _root.world.ready = true; gotoAndStop(4); } } button 241 { on (release, keyPress 'r') { _root.world.ship.gotoAndPlay(1); gotoAndPlay(1); } on (keyPress 'R') { _root.world.ship.gotoAndPlay(1); gotoAndPlay(1); } } button 243 { on (release, keyPress 'g') { _parent.gotoAndStop('menu'); } on (keyPress 'G') { _parent.gotoAndStop('menu'); } } movieClip 245 { frame 1 { _root.world.ready = false; if (!(_root.code[_root.world.ship.actLevel] eq '')) { _root.savepoint = 'savepoint'; } else { _root.savepoint = ''; } } frame 2 { if (Key.isDown(Key.ENTER) || Key.isDown(Key.SPACE) || Key.isDown(Key.UP) || Key.isDown(Key.DOWN) || Key.isDown(Key.LEFT) || Key.isDown(Key.RIGHT)) { _root.world.ready = true; gotoAndStop(4); } } frame 3 { gotoAndPlay(2); } frame 4 { stop(); } frame 5 { password = ''; i = 1; while (_root.world.ship.actLevel >= i) { if (!(_root.code[i] eq '')) { password = _root.code[i]; _root.startlevel = i; } ++i; } stop(); } } button 253 { on (release) { getURL('http://www.neodelight.com/menuonly.html', '_self'); } }




https://swfchan.com/53/262302/info.shtml
Created: 14/12 -2025 16:10:57 Last modified: 14/12 -2025 16:10:57 Server time: 14/12 -2025 23:25:30