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

  1. xs = 0.2 * r.espeed;
  2. y = _Y;
  3. name = "flower3";
  4. if(_parent._name == "enemymap")
  5. {
  6.    initme();
  7. }
  8. else
  9. {
  10.    onenterframe = function()
  11.    {
  12.       if(random(100) > 50)
  13.       {
  14.          _X = _X + xs;
  15.       }
  16.       _Y = y + math.sin(a++ * 0.4) * 20;
  17.       f._rotation += 50;
  18.       cekhit();
  19.       if(hit)
  20.       {
  21.          gotoAndPlay(5);
  22.       }
  23.       if(!r.inv)
  24.       {
  25.          if(hittest(s.z))
  26.          {
  27.             r.hit = 1;
  28.             gotoAndPlay(5);
  29.          }
  30.       }
  31.       if(_X < -30)
  32.       {
  33.          this.removeMovieClip();
  34.       }
  35.    };
  36. }
  37. stop();
  38.