Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //"Horror!" button
- on(release){
- poz = 10;
- }
- //"In the Dark (up)" button
- on(release){
- che.gotoAndStop(2);
- }
- //"Change" button
- /*
- Couldn't you just do this?
- on(release){guh=(guh%5)+1;douxie.gotoAndStop(guh);}
- */
- on(release){
- if(guh == 5) {
- duoxie.gotoAndStop(1);
- guh = 1;
- } else if(guh == 1) {
- duoxie.gotoAndStop(2);
- guh = 2;
- } else if(guh == 2) {
- duoxie.gotoAndStop(3);
- guh = 3;
- } else if(guh == 3) {
- duoxie.gotoAndStop(4);
- guh = 4;
- } else if(guh == 4) {
- duoxie.gotoAndStop(5);
- guh = 5;
- }
- }
- //frame 1
- getUrl("FSCommand:showmenu", "false");
- getUrl("FSCommand:trapallkeys", "true");
- //frame 2
- if(getBytesLoaded() < getBytesTotal()) {
- gotoAndPlay(1);
- }
- //frame 3
- /*
- These abbreviations confuse me.
- */
- var huh = 1;
- var tuh = 1;
- var guh = 1;
- gotoAndStop(10);
- //frame 4
- var pan = 1;
- var timery = 0;
- var veloy = 0;
- var onob = 0;
- var namo = 0;
- var velox = 0;
- var timer = 0;
- var poz = 0;
- var score = 0;
- var b1 = 1;
- var b2 = 0;
- var fur = 0;
- var sooth = -17;
- var escore;
- var good = 0;
- var go = 0;
- var tootoo = 0;
- var platon = 0;
- var jh = 0;
- var jt = 0;
- if(huh == 1) {
- mhm.gotoAndStop(1);
- } else if(huh == 2) {
- mhm.gotoAndStop(9);
- } else if(huh == 3) {
- mhm.gotoAndStop(10);
- } else if(huh == 4) {
- mhm.gotoAndStop(11);
- } else if(huh == 5) {
- mhm.gotoAndStop(12);
- }
- if(tuh == 1) {
- pla1.gotoAndStop(1);
- pla2.gotoAndStop(1);
- pla3.gotoAndStop(1);
- pla4.gotoAndStop(1);
- } else if(tuh == 2) {
- pla1.gotoAndStop(2);
- pla2.gotoAndStop(2);
- pla3.gotoAndStop(2);
- pla4.gotoAndStop(2);
- } else if(tuh == 3) {
- pla1.gotoAndStop(3);
- pla2.gotoAndStop(3);
- pla3.gotoAndStop(3);
- pla4.gotoAndStop(3);
- } else if(tuh == 4) {
- pla1.gotoAndStop(4);
- pla2.gotoAndStop(4);
- pla3.gotoAndStop(4);
- pla4.gotoAndStop(4);
- } else if(tuh == 5) {
- pla1.gotoAndStop(5);
- pla2.gotoAndStop(5);
- pla3.gotoAndStop(5);
- pla4.gotoAndStop(5);
- }
- //frame 5
- fo._x = mhm._x;
- if(mhm._y < -30) {
- fo.gotoAndStop(2);
- fo._height = - mhm._y;
- fo._width = (- mhm._y) / 2 + 130;
- } else if(mhm._y >= -30) {
- fo.gotoAndStop(1);
- }
- if(Key.isDown(17)) {
- che.gotoAndStop(3);
- _quality = "LOW";
- }
- if(Key.isDown(34)) {
- good = 1;
- }
- che._x = mhm._x;
- che._y = mhm._y;
- if(Key.isDown(38) && fur == 0) {
- if(che._currentframe == 2) {
- che.gotoAndStop(1);
- _quality = "HIGH";
- } else if(Key.isDown(38)) {
- che.gotoAndStop(2);
- _quality = "MEDIUM";
- }
- fur = 8;
- }
- if(fur > 0) {
- fur--;
- }
- escore = score;
- if(Key.isDown(36) && poz < 0) {
- poz = 1;
- doy.gotoAndStop(1);
- } else if(Key.isDown(45)) {
- poz = -5;
- doy.gotoAndStop(2);
- }
- if(poz == 0) {
- doy.gotoAndStop(1);
- }
- if(Key.isDown(33)) {
- sooth = -150;
- }
- if(mhm._currentframe == 9 || mhm._currentframe == 10 || mhm._currentframe == 11 || mhm._currentframe == 12) {
- mhm.gotoAndStop(mhm._currentframe);
- } else if(velox < 0.5 && velox > -0.5) {
- velox = 0;
- } else if(veloy != 0 && velox == 0) {
- mhm.gotoAndStop(8);
- } else if(veloy != 0 && velox < 0) {
- mhm.gotoAndStop(7);
- } else if(veloy != 0 && velox > 0) {
- mhm.gotoAndStop(6);
- } else if(velox > 5) {
- mhm.gotoAndStop(2);
- } else if(velox < -5) {
- mhm.gotoAndStop(3);
- } else if(velox > 1) {
- mhm.gotoAndStop(4);
- } else if(velox < -1) {
- mhm.gotoAndStop(5);
- } else {
- mhm.gotoAndStop(1);
- }
- if(onob == 1) {
- if(mhm._y <= pla1._y + 30) {
- platon = plon - 1 + tootoo;
- } else {
- platon = plon - 9 + tootoo;
- }
- }
- pla1.num = tootoo;
- var i = 1;
- while(i <= 8) {
- if(mhm._y > _root["pla" + i]._y - 10 && mhm._y < _root["pla" + i]._y + 10 && veloy > 0 && mhm._x > _root["pla" + i]._x - 85 && mhm._x < _root["pla" + i]._x + 85) {
- mhm._y = _root["pla" + i]._y;
- onob = 1;
- veloy = 0;
- plon = i;
- } else if((mhm._x < _root["pla" + i]._x - 85 || mhm._x > _root["pla" + i]._x + 85) && mhm._y > _root["pla" + i]._y - 10 && mhm._y < _root["pla" + i]._y + 10) {
- onob = 0;
- }
- i++;
- }
- if(bul1._x > 560 && b1 == 1 || bul1._x < -10 && b1 == 0) {
- if(Math.random() > 0.5) {
- bul1._x = Math.random() * 200 + 570;
- bul1._y = Math.random() * 80;
- b1 = 0;
- } else {
- bul1._x = Math.random() * 200 - 220;
- bul1._y = Math.random() * 80;
- b1 = 1;
- }
- }
- if(onob == 1) {
- velox = velox * 0.83;
- } else {
- velox = velox * 0.9;
- }
- if(bul2._x > 560 && b2 == 1 || bul2._x < -10 && b2 == 0) {
- if(Math.random() > 0.5) {
- bul2._x = Math.random() * 200 + 570;
- bul2._y = Math.random() * 80;
- b2 = 0;
- } else {
- bul2._x = Math.random() * 200 - 200;
- bul2._y = Math.random() * 80;
- b2 = 1;
- }
- }
- if(b1 == 1 && guh > 1) {
- bul1._x = bul1._x + 10;
- bul1.gotoAndStop(guh);
- bul1._y = bul1._y + pan;
- }
- if(b1 == 0 && guh > 1) {
- bul1._x = bul1._x - 10;
- bul1.gotoAndStop(guh);
- bul1._y = bul1._y + pan;
- }
- if(b2 == 1 && guh > 1) {
- bul2._x = bul2._x + 10;
- bul2.gotoAndStop(guh);
- bul2._y = bul2._y + pan;
- }
- if(b2 == 0 && guh > 1) {
- bul2._x = bul2._x - 10;
- bul2.gotoAndStop(guh);
- bul2._y = bul2._y + pan;
- }
- if(mhm._currentframe < 9) {
- if(mhm._x > bul1._x - 40 && mhm._x < bul1._x + 40) {
- if(mhm._y > bul1._y && mhm._y < bul1._y + 120) {
- if(b1 == 1) {
- bul1._x = 560;
- velox = velox + 10;
- } else if(b1 == 0) {
- bul1._x = -10;
- velox = velox + -10;
- }
- }
- } else if(mhm._x > bul2._x - 40 && mhm._x < bul2._x + 40) {
- if(mhm._y > bul2._y && mhm._y < bul2._y + 120) {
- if(b2 == 1) {
- bul2._x = 560;
- velox = velox + 10;
- } else if(b2 == 0) {
- bul2._x = -10;
- velox = velox + -10;
- }
- }
- }
- } else if(mhm._currentframe == 9) {
- if(mhm._x > bul1._x - 40 && mhm._x < bul1._x + 40) {
- if(mhm._y > bul1._y && mhm._y < bul1._y + 50) {
- if(b1 == 1) {
- bul1._x = 560;
- velox = velox + 10;
- } else if(b1 == 0) {
- bul1._x = -10;
- velox = velox + -10;
- }
- }
- } else if(mhm._x > bul2._x - 40 && mhm._x < bul2._x + 40) {
- if(mhm._y > bul2._y && mhm._y < bul2._y + 50) {
- if(b2 == 1) {
- bul2._x = 560;
- velox = velox + 10;
- } else if(b2 == 0) {
- bul2._x = -10;
- velox = velox + -10;
- }
- }
- }
- } else if(mhm._currentframe == 11) {
- if(mhm._x > bul1._x - 40 && mhm._x < bul1._x + 40) {
- if(mhm._y > bul1._y - 40 && mhm._y < bul1._y + 40) {
- if(b1 == 1) {
- bul1._x = 560;
- velox = velox + 10;
- } else if(b1 == 0) {
- bul1._x = -10;
- velox = velox + -10;
- }
- }
- } else if(mhm._x > bul2._x - 40 && mhm._x < bul2._x + 40) {
- if(mhm._y > bul2._y - 40 && mhm._y < bul2._y + 40) {
- if(b2 == 1) {
- bul2._x = 560;
- velox = velox + 10;
- } else if(b2 == 0) {
- bul2._x = -10;
- velox = velox + -10;
- }
- }
- }
- }
- if(mhm._y <= 200) {
- pan = poz + (200 - mhm._y) / 10;
- }
- mhm._y = mhm._y + (veloy + pan);
- mhm._x = mhm._x + velox;
- if(onob == 1) {
- veloy = 0;
- }
- pla1._y = pla1._y + pan;
- pla2._y = pla2._y + pan;
- pla3._y = pla3._y + pan;
- pla4._y = pla4._y + pan;
- pla6._y = pla6._y + pan;
- pla7._y = pla7._y + pan;
- pla8._y = pla8._y + pan;
- pla5._y = pla5._y + pan;
- if(sky.covero._y <= 1000) {
- sky.covero._y = sky.covero._y + pan / 2.05;
- }
- if(mhm._x > 500) {
- velox = - Math.abs(velox);
- mhm._x = 495;
- } else if(mhm._x < 50) {
- velox = Math.abs(velox);
- mhm._x = 55;
- } else if(onob == 0 && veloy < 16) {
- veloy = veloy + 3;
- }
- if(onob == 1 && mhm._x - _root["pla" + plon]._x + velox * 50 <= 0 || onob == 0 && mhm._x - _root["pla" + jt]._x >= 0 && (- velox) * 2 < mhm._x - _root["pla" + jt]._x) {
- velox = velox - 3;
- a2.gotoAndPlay(2);
- } else if(onob == 1 && mhm._x - _root["pla" + plon]._x + velox * 50 >= 0 || onob == 0 && mhm._x - _root["pla" + jt]._x <= 0 && velox * 2 < _root["pla" + jt]._x - mhm._x) {
- velox = velox + 3;
- a3.gotoAndPlay(2);
- }
- if(veloy >= 0 && mhm._y > _root["pla" + jt]._y && onob == 0) {
- jt--;
- }
- if(jt == 0) {
- jt = 8;
- }
- if((Math.abs(mhm._x - _root["pla" + plon]._x) > 73 - Math.abs(velox) || Math.abs(velox) >= 18 || Math.abs(velox) >= 10 && mhm._y >= 450) && (onob == 1 || good == 1)) {
- if(sooth == -150) {
- veloy = sooth;
- } else {
- veloy = -26 - Math.abs(velox);
- score = score + Math.round((- veloy) / 3);
- }
- a1.gotoAndPlay(2);
- jh = Math.abs(veloy * veloy / 6 + veloy / 2 + 8);
- jt = plon + Math.floor(jh / 75);
- if(jt >= 9) {
- jt = jt - 8;
- }
- onob = 0;
- }
- disscore = score;
- if(Math.floor(tootoo / 40) + 1 <= 10) {
- var i = 0;
- while(i <= 8) {
- if(_root["pla" + i]._y > 550) {
- _root["pla" + i]._y = _root["pla" + i]._y - 600;
- _root["pla" + i]._x = Math.random() * 350 + 100;
- score = score + poz;
- if(i == 1) {
- tootoo = tootoo + 8;
- }
- _root["pla" + i].goof.gotoAndStop(Math.floor(tootoo / 40) + 1);
- }
- i++;
- }
- }
- gotoAndPlay(5);
- if(mhm._y > 600) {
- gotoAndStop("die");
- play();
- }
- if(sky._currentframe != Math.floor(tootoo / 40) + 1) {
- sky.gotoAndStop(Math.floor(tootoo / 40) + 1);
- sky.covero._y = -300;
- }
- //frame 6
- gotoAndPlay(5);
- if(tootoo == 400) {
- jt = 1;
- poz = 0.5;
- pan = 0.5;
- } else {
- timer++;
- if(poz == 10) {
- poz = 10;
- }
- if(timer > 90 && poz < 10) {
- timer = 0;
- if(poz != 10) {
- poz = poz + 0.5;
- }
- }
- }
- if(veloy == 0 && (mhm._currentframe == 6 || mhm._currentframe == 7)) {
- mhm.gotoAndStop(1);
- }
- //frame 8
- if(timery < 40) {
- timery++;
- gotoAndStop("die");
- play();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement