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

  1. _X = 275;
  2. _Y = 200;
  3. tiempo_muerte = getTimer();
  4. choca = 0;
  5. if(_root.config2 == 2)
  6. {
  7.    choca = 0;
  8.    _X = 275;
  9.    _Y = 200;
  10.    if(this.hitTest(_root.piedra))
  11.    {
  12.       choca = 1;
  13.    }
  14.    if(this.hitTest(_root.piedra2))
  15.    {
  16.       choca = 1;
  17.    }
  18. }
  19. if(_root.config2 == 1)
  20. {
  21.    if(fin_juego == 1)
  22.    {
  23.       _root.f_puntos = _root.interfaz.puntos;
  24.       _root.f_level = _root.interfaz.level;
  25.       _root.end_game(7);
  26.    }
  27.    cont3 = 0;
  28.    while(cont3 < _root.id_piedras.length)
  29.    {
  30.       if(this.hitTest("_root." + eval("_root:id_piedras")[cont3]))
  31.       {
  32.          choca = 1;
  33.       }
  34.       cont3++;
  35.    }
  36. }
  37. if(choca == 0 and tiempo_muerte2 < tiempo_muerte)
  38. {
  39.    gotoAndStop(1);
  40. }
  41. else
  42. {
  43.    gotoAndPlay(3);
  44. }
  45.