home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Beteroid.swf / scripts / DefineSprite_88 / frame_4 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.2 KB  |  44 lines

  1. if(colision == 1)
  2. {
  3.    _root.f_aciertos = _root.f_aciertos + 1;
  4.    box_nombre = _root.id_piedras[cont];
  5.    box_ang = eval("_root." + box_nombre + ".angulo");
  6.    box_tipo = eval("_root." + box_nombre + ".tipo");
  7.    duplica = 1 + box_tipo;
  8.    box_x = eval("_root." + box_nombre)._x;
  9.    box_y = eval("_root." + box_nombre)._y;
  10.    _root.piedra(0,box_nombre,0,0,0,0);
  11.    _root.interfaz.puntos += 8 * box_tipo;
  12.    _root.puntuacion += 8 * box_tipo;
  13.    if(0 < box_tipo and box_tipo < 4)
  14.    {
  15.       _root.piedra(2,0,duplica,box_ang - 25,box_x,box_y);
  16.       _root.piedra(2,0,duplica,box_ang + 25,box_x,box_y);
  17.    }
  18.    if(box_tipo == 4)
  19.    {
  20.       _root.piedra(2,0,duplica,box_ang - 25,box_x,box_y);
  21.       _root.piedra(2,0,duplica,box_ang,box_x,box_y);
  22.       _root.piedra(2,0,duplica,box_ang + 25,box_x,box_y);
  23.    }
  24.    if(box_tipo == 5 and _root.id_piedras.length == 0)
  25.    {
  26.       _root.piedra(1,0,1,0,0,0);
  27.    }
  28.    if(3000 < _root.puntuacion)
  29.    {
  30.       with(_root.sonido2)
  31.       {
  32.          gotoAndPlay(2);
  33.       }
  34.       _root.puntuacion = 0;
  35.       _root.interfaz.level = _root.interfaz.level + 1;
  36.    }
  37. }
  38. else
  39. {
  40.    _root.f_fallos = _root.f_fallos + 1;
  41. }
  42. _root.disparo(0,_name);
  43. removeMovieClip("");
  44.