home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / DefineSprite_74_ball / frame_2 / DoAction.as
Encoding:
Text File  |  2008-09-24  |  296 b   |  20 lines

  1. if(_root.car.xSpeed > 0)
  2. {
  3.    _X = _X - random(10);
  4. }
  5. if(_root.car.xSpeed < 0)
  6. {
  7.    _X = _X + random(10);
  8. }
  9. _Y = _Y - random(10);
  10. _rotation = _rotation + rot;
  11. _alpha = _alpha - 10;
  12. if(_alpha < 0)
  13. {
  14.    this.removeMovieClip();
  15. }
  16. if(_root.car.dead)
  17. {
  18.    this.removeMovieClip();
  19. }
  20.