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

  1. xs = r.espeed;
  2. name = "bomb";
  3. if(_parent._name == "enemymap")
  4. {
  5.    initme();
  6. }
  7. else
  8. {
  9.    onenterframe = function()
  10.    {
  11.       _X = _X + xs;
  12.       cekhit();
  13.       if(hit)
  14.       {
  15.          gotoAndPlay(5);
  16.       }
  17.       if(!r.inv)
  18.       {
  19.          if(hittest(s.z))
  20.          {
  21.             r.hit = 1;
  22.             gotoAndPlay(5);
  23.          }
  24.       }
  25.       if(_X < -30)
  26.       {
  27.          this.removeMovieClip();
  28.       }
  29.    };
  30. }
  31. stop();
  32.