home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / Titans / robin.swf / scripts / frame_9 / DoAction.as
Encoding:
Text File  |  2006-01-05  |  3.1 KB  |  115 lines

  1. call("pro");
  2. fadescreen();
  3. stopAllSounds();
  4. _global.r = this;
  5. r.attachmovie("robin","robin",99);
  6. r.attachmovie("shootbar","shootbar",80008);
  7. r.shootbar._x = 142;
  8. r.shootbar._y = 377;
  9. r.shootbar._xscale = 133;
  10. r.shootbar._yscale = 80;
  11. _global.s = this.robin;
  12. s._x = 50;
  13. s._y = 300;
  14. s.dep = 99;
  15. call("pro");
  16. autofire = 0;
  17. score = 0;
  18. point = 10;
  19. energymax = 100;
  20. energy = energymax;
  21. r.finish = 0;
  22. r.cheat1 = 0;
  23. hit = 0;
  24. inv = 0;
  25. jump = 0;
  26. xmin = 50;
  27. xmax = 250;
  28. ymin = 280;
  29. ymax = 380;
  30. invhitdelay = 30;
  31. energyless = 20;
  32. screenwid = 600;
  33. posnow = screenwid;
  34. espeed = -20;
  35. bgspeed = -42;
  36. shotdelay = 5;
  37. noshot = 0;
  38. carspeed = -18;
  39. itemdelay = 20;
  40. shakebike = 0;
  41. noshot = 1;
  42. gunh = 100;
  43. gunless = 8;
  44. gunrecover1 = 0.4;
  45. gunrecover2 = 1;
  46. d = itemdelay;
  47. carwid = [0,150,150,146,150,150,140,150];
  48. r.b = 1000;
  49. bul = [];
  50. ebul = [];
  51. enemy = [];
  52. cars = [];
  53. lanepos = [295,340,380];
  54. r.ed = 100;
  55. enemyarray = [];
  56. enemyarray.push(18,18,2,18,2,18,18,18,2,2,18,2,18,18,2,18,2,2,2,18,18,2,2,18,18,2,2,2,2);
  57. enemyarray.push(18,5,1,0,18,0,1,0,1,0,18,0);
  58. enemyarray.push(0,3,0,0,18,18,3,3,3,0,0,18,3,0,0,18,18,3,3,3,0,0);
  59. enemyarray.push(18,5,1,0,18,0,1,0,1,0,18,0,0);
  60. enemyarray.push(8);
  61. enemyarray.push(18,5,1,0,18,0,1,0,1,0,18,0,0);
  62. enemyarray.push(4,0,0,18,18,4,4,0,0,4,0,0,18,4,4,0,0,18);
  63. enemyarray.push(18,6,1,0,18,0,1,0,1,0,18,0,0);
  64. enemyarray.push(18,6,1,0,18,0,1,0,1,0,18,0,0);
  65. enemyarray.push(0,3,0,0,18,18,3,3,3,0,0,18,3,3,3,0,0);
  66. enemyarray.push(8);
  67. enemyarray.push(18,6,1,0,18,0,1,0,1,0,18,0,0);
  68. enemyarray.push(18,6,1,0,18,0,1,0,1,0,18,0,0);
  69. enemyarray.push(18,6,1,0,18,0,1,0,1,0,18,0,0);
  70. enemyarray.push(4,0,0,18,18,4,4,0,0,4,0,0,18);
  71. enemyarray.push(0,3,0,0,18,18,3,3,3,0,0,18,18,3,3,3,0,0);
  72. enemyarray.push(18,5,1,0,18,0,1,0,1,0,18,0,0,0);
  73. enemyarray.push(18,5,1,0,18,0,1,0,1,0,18,0,0);
  74. enemyarray.push(8);
  75. enemyarray.push(0,0,7);
  76. enemyarray.reverse();
  77. enemytotal = r.enemyarray.length;
  78. r.createEmptyMovieClip("sfx",60001);
  79. allsfx = ["zwin","zlose","zbothit","zcarbump","zshoot","zbikeslow","zblast3","zufo","zmissile","zbigexplosion","zboost","zbonus","zboom2","zboom2","zbonus","zbump","zhit","zrico1","zrico2","zrico3","zrico4"];
  80. var i = 0;
  81. while(i < allsfx.length)
  82. {
  83.    r[allsfx[i]] = new sound(sfx);
  84.    r[allsfx[i]].attachsound(allsfx[i]);
  85.    i++;
  86. }
  87. r.createEmptyMovieClip("sfx2",60002);
  88. r.zloop = new sound(sfx2);
  89. r.zloop.attachsound("zloop");
  90. r.createEmptyMovieClip("sfx3",60003);
  91. r.zmotor = new sound(sfx3);
  92. r.zmotor.attachsound("zmotor");
  93. r.createEmptyMovieClip("sfx4",60004);
  94. r.zmotorjump = new sound(sfx4);
  95. r.zmotorjump.attachsound("zmotorjump");
  96. r.createEmptyMovieClip("sfx5",60005);
  97. r.zhc = new sound(sfx5);
  98. r.zhc.attachsound("zhc");
  99. r.createEmptyMovieClip("sfx6",60006);
  100. r.zhcgun = new sound(sfx6);
  101. r.zhcgun.attachsound("zhcgun");
  102. r.createEmptyMovieClip("sfx7",60007);
  103. r.zbikestop = new sound(sfx7);
  104. r.zbikestop.attachsound("zbikestop");
  105. r.createEmptyMovieClip("sfx8",60008);
  106. r.zboss = new sound(sfx8);
  107. r.zboss.attachsound("zboss");
  108. r.zbikeslow.onSoundComplete = function()
  109. {
  110.    r.zbikestop.start(0,9999);
  111. };
  112. r.zmotor.start(0,99999);
  113. r.zloop.start(0,99999);
  114. r.motorsound = 1;
  115.