STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 228071 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2560 · P5120 |
This is the info page for Flash #251915 |
COMING SOON |
ARROWS-MOVE A - SHOOT S - (WHILE SHOOT) CHANGE DIRECTION |
ActionScript [AS1/AS2]
Frame 1function enemyHtd(mob, ammu) { if (ammu.hb.hitTest(mob)) { if (expl_num >= 8) { expl_num = 1; } else { expl_num++; } if (mob.sidex == null) { removeMovieClip(ammu); duplicateMovieClip ("explo", "mob_ex" + expl_num, layer5 + expl_num); _root["mob_ex" + expl_num]._x = mob._x; _root["mob_ex" + expl_num]._y = mob._y; _root["mob_ex" + expl_num].gotoAndStop(2); mob.sidex = Math.ceil(Math.random() * 100); mob.sidey = Math.ceil(Math.random() * 100); if (mob.sidey >= 50) { mob._y = espawn_y + (140 + (sidey * 4)); } else { mob._y = espawn_y - (140 + (sidey * 4)); } if (mob.sidex >= 50) { mob._x = espawn_x + 264; delete mob.sidex; } else { mob._x = espawn_x - 264; delete mob.sidex; } } } } layer5 = 500; function enemySpawn(mob_mc, player) { enemyCount = 8; var enemyDraw = 1; while (enemyDraw < (enemyCount + 1)) { if (_root["mob" + enemyDraw]._x == null) { duplicateMovieClip (mob_mc, "mob" + enemyDraw, layer3 + enemyDraw); } enemyDraw++; } espawn_x = 240; espawn_y = 240; } layer3 = 400; function enemyCode(obj, player, m_spd) { if (obj._x > player._x) { obj._x = obj._x - m_spd; } if (obj._x < player._x) { obj._x = obj._x + m_spd; } if (obj._y > player._y) { obj._y = obj._y - m_spd; } if (obj._y < player._y) { obj._y = obj._y + m_spd; } } function belchShake(obj) { shake++; sizeofSake = 10; if (shake == 1) { obj._x = obj._x - sizeofSake; shake = 2; } if (shake == 2) { obj._x = obj._x + sizeofSake; shake = 3; } } function grad_ship() { if (Key.isDown(83)) { ship_spd = 5; } else { ship_spd = 10; } if (_root["p1_ship" + ship_num]._x == null) { ship_num = 1; _root.ship.duplicateMovieClip("p1_ship" + ship_num, layer2 + ship_num); _root["p1_ship" + ship_num]._x = 275; _root["p1_ship" + ship_num]._y = 200; } if (Key.isDown(38)) { _root["p1_ship" + ship_num]._y = _root["p1_ship" + ship_num]._y - ship_spd; } if (Key.isDown(40)) { _root["p1_ship" + ship_num]._y = _root["p1_ship" + ship_num]._y + ship_spd; } if (Key.isDown(37)) { _root["p1_ship" + ship_num]._x = _root["p1_ship" + ship_num]._x - ship_spd; } if (Key.isDown(39)) { _root["p1_ship" + ship_num]._x = _root["p1_ship" + ship_num]._x + ship_spd; } } layer2 = 200; function rotationMem(vrb) { if (b_rot == 1) { crossDirR[vrb] = 90; } if (b_rot == 2) { crossDirR[vrb] = -90; } if (b_rot == 3) { crossDirR[vrb] = 180; } if (b_rot == 4) { crossDirR[vrb] = 0; } if (b_rot == 5) { crossDirR[vrb] = 45; } if (b_rot == 6) { crossDirR[vrb] = 135; } if (b_rot == 7) { crossDirR[vrb] = -45; } if (b_rot == 8) { crossDirR[vrb] = -135; } } function directional_s() { if (dirStrt == null) { b_rot = 3; s_spd1 = 35; s_spd2 = 0; dirStrt = 1; } if (Key.isDown(83)) { if (Key.isDown(38) && (Key.isDown(39))) { b_rot = 5; s_spd1 = -35; s_spd2 = 35; } else if (Key.isDown(38) && (Key.isDown(37))) { b_rot = 7; s_spd1 = -35; s_spd2 = -35; } else if (Key.isDown(40) && (Key.isDown(39))) { b_rot = 6; s_spd2 = 35; s_spd1 = 35; } else if (Key.isDown(40) && (Key.isDown(37))) { b_rot = 8; s_spd1 = 35; s_spd2 = -35; } else if (Key.isDown(38)) { b_rot = 4; s_spd1 = -35; s_spd2 = 0; } else if (Key.isDown(40)) { b_rot = 3; s_spd1 = 35; s_spd2 = 0; } else if (Key.isDown(37)) { b_rot = 2; s_spd2 = -35; s_spd1 = 0; } else if (Key.isDown(39)) { b_rot = 1; s_spd2 = 35; s_spd1 = 0; } } } function fireAmmu() { if (b_num >= 8) { if ((b_rot == 6) || (b_rot == 8)) { if (balnum == 3) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y + rateShift; } if (balnum == 2) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y - rateShift; } if (balnum == 1) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y; } } if ((b_rot == 5) || (b_rot == 7)) { if (balnum == 3) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y + rateShift; } if (balnum == 2) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y - rateShift; } if (balnum == 1) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y; } } if ((b_rot == 1) || (b_rot == 2)) { if (balnum == 3) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y + rateShift; } if (balnum == 2) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y - rateShift; } if (balnum == 1) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y; } } if ((b_rot == 3) || (b_rot == 4)) { if (balnum == 3) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x + rateShift; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y; } if (balnum == 2) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x - rateShift; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y; } if (balnum == 1) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y; } } } else { if ((b_rot == 6) || (b_rot == 8)) { if (balnum == 3) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y + rateShift; } if (balnum == 2) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y - rateShift; } if (balnum == 1) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y; } } if ((b_rot == 5) || (b_rot == 7)) { if (balnum == 3) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y + rateShift; } if (balnum == 2) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y - rateShift; } if (balnum == 1) { _root["bala" + r_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + r_num]._y = _root["p1_ship" + ship_num]._y; } } if ((b_rot == 1) || (b_rot == 2)) { if (balnum == 3) { _root["bala" + b_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + b_num]._y = _root["p1_ship" + ship_num]._y + rateshift; } if (balnum == 2) { _root["bala" + b_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + b_num]._y = _root["p1_ship" + ship_num]._y - rateshift; } if (balnum == 1) { _root["bala" + b_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + b_num]._y = _root["p1_ship" + ship_num]._y; } } if ((b_rot == 3) || (b_rot == 4)) { if (balnum == 3) { _root["bala" + b_num]._x = _root["p1_ship" + ship_num]._x + rateshift; _root["bala" + b_num]._y = _root["p1_ship" + ship_num]._y; } if (balnum == 2) { _root["bala" + b_num]._x = _root["p1_ship" + ship_num]._x - rateshift; _root["bala" + b_num]._y = _root["p1_ship" + ship_num]._y; } if (balnum == 1) { _root["bala" + b_num]._x = _root["p1_ship" + ship_num]._x; _root["bala" + b_num]._y = _root["p1_ship" + ship_num]._y; } } } if (balnum >= 4) { balnum = 1; } crossDirx[r_num] = s_spd2; crossDiry[r_num] = s_spd1; rotationMem(r_num); crossDirx[b_num] = s_spd2; crossDiry[b_num] = s_spd1; rotationMem(b_num); a_move = 1; while (a_move < 9) { _root["bala" + a_move]._y = _root["bala" + a_move]._y + crossDiry[a_move]; _root["bala" + a_move]._x = _root["bala" + a_move]._x + crossDirx[a_move]; _root["bala" + a_move]._rotation = crossDirR[a_move]; a_move++; } if (crossDirx == null) { crossDiry = new Array(); crossDirx = new Array(); crossDirR = new Array(); } if (Key.isDown(65)) { a_timer++; if (a_timer >= 3) { delete akyx; delete a_timer; } if (akyx == null) { balnum++; if (r_num == 8) { crossDirx[r_num] = s_spd2; crossDiry[r_num] = s_spd1; rotationMem(r_num); r_num = 1; } if (b_num == 8) { crossDirx[b_num] = s_spd2; crossDiry[b_num] = s_spd1; rotationMem(b_num); r_num = 1; } if (b_num > 8) { if (r_num >= 8) { r_num = 1; } else { crossDirx[r_num] = s_spd2; crossDiry[r_num] = s_spd1; rotationMem(r_num); r_num++; } } else { crossDirx[b_num] = s_spd2; crossDiry[b_num] = s_spd1; rotationMem(b_num); b_num++; } var c_num = 1; while (c_num < (b_num + 1)) { if (_root["bala" + c_num]._x == null) { duplicateMovieClip (_root.ammu, "bala" + c_num, layer1 + c_num); trace("hw"); } c_num++; } akyx = 1; } } else { delete balnum; delete akyx; } } rateShift = 4; balnum = 0; layer1 = 300; r_num = 0; b_num = 0; spd = 35; _root.onEnterFrame = function () { belchShake(_root["p1_ship" + ship_num]); fireAmmu(); grad_ship(); directional_s(); var enemyRt = 1; while (enemyRt < 9) { var balaRt = 1; while (balaRt < 9) { enemyHtd(_root["mob" + enemyRt], _root["bala" + balaRt]); balaRt++; } enemyCode(_root["mob" + enemyRt], _root["p1_ship" + ship_num], 3); enemyRt++; } enemySpawn(_root.enemy, _root["p1_ship" + ship_num]); };Instance of Symbol 41 MovieClip in Frame 1onClipEvent (load) { this.swapDepths(900); }Symbol 37 MovieClip Frame 1stop();Symbol 37 MovieClip Frame 2play(); _root.shake++;Symbol 37 MovieClip Frame 3play(); _root.shake++;Symbol 37 MovieClip Frame 4play(); _root.shake++;Symbol 37 MovieClip Frame 5play(); _root.shake++;Symbol 37 MovieClip Frame 9removeMovieClip(this);
Library Items
Symbol 1 Font | Used by:2 3 4 | ||
Symbol 2 EditableText | Uses:1 | Used by:Timeline | |
Symbol 3 EditableText | Uses:1 | Used by:Timeline | |
Symbol 4 EditableText | Uses:1 | Used by:Timeline | |
Symbol 5 Graphic | Used by:Timeline | ||
Symbol 6 Bitmap | Used by:7 | ||
Symbol 7 Graphic | Uses:6 | Used by:8 | |
Symbol 8 MovieClip | Uses:7 | Used by:Timeline | |
Symbol 9 Bitmap | Used by:10 | ||
Symbol 10 Graphic | Uses:9 | Used by:31 | |
Symbol 11 Bitmap | Used by:12 | ||
Symbol 12 Graphic | Uses:11 | Used by:31 | |
Symbol 13 Bitmap | Used by:14 | ||
Symbol 14 Graphic | Uses:13 | Used by:31 | |
Symbol 15 Bitmap | Used by:16 | ||
Symbol 16 Graphic | Uses:15 | Used by:31 | |
Symbol 17 Bitmap | Used by:18 | ||
Symbol 18 Graphic | Uses:17 | Used by:31 | |
Symbol 19 Bitmap | Used by:20 | ||
Symbol 20 Graphic | Uses:19 | Used by:31 | |
Symbol 21 Bitmap | Used by:22 | ||
Symbol 22 Graphic | Uses:21 | Used by:31 | |
Symbol 23 Bitmap | Used by:24 | ||
Symbol 24 Graphic | Uses:23 | Used by:31 | |
Symbol 25 Bitmap | Used by:26 | ||
Symbol 26 Graphic | Uses:25 | Used by:31 | |
Symbol 27 Bitmap | Used by:28 | ||
Symbol 28 Graphic | Uses:27 | Used by:31 | |
Symbol 29 Bitmap | Used by:30 | ||
Symbol 30 Graphic | Uses:29 | Used by:31 | |
Symbol 31 MovieClip | Uses:10 12 14 16 18 20 22 24 26 28 30 | Used by:Timeline | |
Symbol 32 Graphic | Used by:33 | ||
Symbol 33 MovieClip | Uses:32 | Used by:34 | |
Symbol 34 MovieClip | Uses:33 | Used by:Timeline | |
Symbol 35 Graphic | Used by:37 | ||
Symbol 36 Sound | Used by:37 | ||
Symbol 37 MovieClip | Uses:35 36 | Used by:Timeline | |
Symbol 38 Font | Used by:39 40 | ||
Symbol 39 EditableText | Uses:38 | Used by:41 | |
Symbol 40 EditableText | Uses:38 | Used by:41 | |
Symbol 41 MovieClip | Uses:39 40 | Used by:Timeline |
Instance Names
"ship" | Frame 1 | Symbol 8 MovieClip |
"enemy" | Frame 1 | Symbol 31 MovieClip |
"ammu" | Frame 1 | Symbol 34 MovieClip |
"explo" | Frame 1 | Symbol 37 MovieClip |
"hb" | Symbol 34 MovieClip Frame 1 | Symbol 33 MovieClip |
"hb" | Symbol 34 MovieClip Frame 1 | Symbol 33 MovieClip |
Dynamic Text Variables
r_num | Symbol 2 EditableText | "" |
b_num | Symbol 3 EditableText | "" |
rem_bala | Symbol 4 EditableText | "" |
|