home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Beteroid.swf / scripts / frame_6 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  796 b   |  41 lines

  1. function incremento_x(ang2, velocidad2)
  2. {
  3.    radian2 = 0.0175 * ang2;
  4.    inc_x = Math.cos(radian2);
  5.    return inc_x * velocidad2;
  6. }
  7. function incremento_y(ang3, velocidad3)
  8. {
  9.    radian3 = 0.0175 * ang3;
  10.    inc_y = Math.sin(radian3);
  11.    return inc_y * velocidad3;
  12. }
  13. function disparo()
  14. {
  15.    CONT++;
  16.    nombre_disparo = "disparo" + getTimer();
  17.    duplicateMovieClip(_root.disparo_p,nombre_disparo,16384 + eval("_root:CONT"));
  18.    with(eval(nombre_disparo))
  19.    {
  20.       gotoAndPlay(2);
  21.    }
  22. }
  23. _quality = "HIGH";
  24. player.muerte = 0;
  25. player.impulso = 0;
  26. player.impulso2 = 0;
  27. player.angulo = 0;
  28. player.angulo_a = 0;
  29. player.angulo_i = 0;
  30. player.tiempo2 = 0;
  31. CONT = 0;
  32. with(piedra_practice1)
  33. {
  34.    gotoAndPlay(2);
  35. }
  36. with(piedra_practice2)
  37. {
  38.    gotoAndPlay(2);
  39. }
  40. stop();
  41.