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

  1. ys = - random(10);
  2. xs = random(5);
  3. ro = 4 + random(10);
  4. if(random(100) > 50)
  5. {
  6.    ro = - ro;
  7.    xs = - xs;
  8. }
  9. onenterframe = function()
  10. {
  11.    _rotation = _rotation + ro;
  12.    _Y = _Y + (ys + vy);
  13.    _X = _X + (xs + vx);
  14.    ys += r.grav2;
  15.    if(_Y > 450 or _X < -40 or _X > 640)
  16.    {
  17.       this.removeMovieClip();
  18.    }
  19. };
  20. gotoAndStop(tipe);
  21.