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

  1. function move()
  2. {
  3.    _X = _X + ix;
  4.    _Y = _Y + iy;
  5.    if(_X < 0 or 550 < _X or _Y < 0 or 400 < _Y)
  6.    {
  7.       nextFrame();
  8.    }
  9.    else
  10.    {
  11.       cont = 0;
  12.       while(cont < _root.id_piedras.length)
  13.       {
  14.          if(this.hitTest("_root." + _root.id_piedras[cont]))
  15.          {
  16.             colision = 1;
  17.             break;
  18.          }
  19.          cont++;
  20.       }
  21.       if(colision == 1)
  22.       {
  23.          with(_root.sonido1)
  24.          {
  25.             gotoAndPlay(2);
  26.          }
  27.          nextFrame();
  28.       }
  29.    }
  30. }
  31. stop();
  32.