home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / DefineSprite_62_fuel / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-24  |  488 b   |  30 lines

  1. stop();
  2. g = 0.5;
  3. v = 0;
  4. this.onEnterFrame = function()
  5. {
  6.    if(_root.paused)
  7.    {
  8.       return undefined;
  9.    }
  10.    v -= g;
  11.    _Y = _Y - v;
  12.    if(_root.bg.hitTest(_X,_Y + 10,true))
  13.    {
  14.       g = undefined;
  15.    }
  16.    if(_root.car.hitTest(_X,_Y,true))
  17.    {
  18.       delete onEnterFrame;
  19.       gotoAndStop(2);
  20.    }
  21.    if(_root.level !== 5 and _root.level !== 11)
  22.    {
  23.       this.removeMovieClip();
  24.    }
  25.    if(_root.car.dead)
  26.    {
  27.       this.removeMovieClip();
  28.    }
  29. };
  30.