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

  1. dis += 40;
  2. dispass = -2;
  3. ro = 5;
  4. ys -= 2;
  5. onenterframe = function()
  6. {
  7.    _rotation = _rotation + ro;
  8.    _Y = _Y + ys;
  9.    _X = _X + xs;
  10.    ys += 0.2;
  11.    dis += dispass;
  12.    _xscale = _xscale * 1.03;
  13.    _yscale = _yscale * 1.03;
  14.    if(dis < 0)
  15.    {
  16.       dis = 0;
  17.       if(_Y > 300)
  18.       {
  19.          r.zboom3.start();
  20.          if(math.abs(r.cbx - _X) < r.bombrange)
  21.          {
  22.             r.hit = 1;
  23.             r.enemies.removevalue(_name);
  24.          }
  25.          _xscale = _xscale * 2;
  26.          _yscale = _yscale * 2;
  27.          gotoAndPlay(2);
  28.       }
  29.    }
  30.    cekhit();
  31.    if(hit)
  32.    {
  33.       r.zboom.start();
  34.       r.score += r.point;
  35.       this.gotoAndPlay("exp");
  36.    }
  37. };
  38. stop();
  39.