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

  1. ro = 10;
  2. ska = 110;
  3. dispass = -2;
  4. d = 10;
  5. onenterframe = function()
  6. {
  7.    d--;
  8.    if(d > 0)
  9.    {
  10.       _X = c._x + (_X - c._x) / 1.06;
  11.    }
  12.    _Y = _Y + ys;
  13.    ys += 0.5;
  14.    s._rotation += ro;
  15.    if(ro < 30)
  16.    {
  17.       ro += 5;
  18.    }
  19.    dis += dispass;
  20.    _xscale = _xscale * 1.04;
  21.    _yscale = _yscale * 1.04;
  22.    if(dis < 0)
  23.    {
  24.       if(_Y > 300)
  25.       {
  26.          if(math.abs(r.cbx - _X) < r.bombrange)
  27.          {
  28.             r.hit = 1;
  29.             r.zhit.start();
  30.             r.enemies.removevalue(_name);
  31.          }
  32.          this.removeMovieClip();
  33.       }
  34.    }
  35.    cekhit2();
  36.    if(hit)
  37.    {
  38.       r.score += r.point;
  39.       r.zboom.start();
  40.       this.gotoAndPlay("exp");
  41.    }
  42. };
  43. stop();
  44.