home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / Titans / cyborg.swf / scripts / DefineSprite_134_atlas / frame_22 / DoAction.as
Encoding:
Text File  |  2006-01-05  |  432 b   |  26 lines

  1. a.gotoAndStop("stand");
  2. d = attacdelay;
  3. onenterframe = function()
  4. {
  5.    _X = x + math.sin(b1++ * 0.08) * 120;
  6.    _Y = y + math.sin(b2++ * 0.3) * 10;
  7.    d--;
  8.    if(!d)
  9.    {
  10.       gotoAndPlay(31);
  11.    }
  12.    cekhita();
  13.    if(hit)
  14.    {
  15.       hit = 0;
  16.       r.score += r.point;
  17.       energy--;
  18.       attachmovie("blink2","blink2",100);
  19.       if(energy < 0)
  20.       {
  21.          gotoAndPlay(39);
  22.       }
  23.    }
  24. };
  25. stop();
  26.