home *** CD-ROM | disk | FTP | other *** search
- stop();
- g = 0.5;
- v = -15;
- x1 = -10;
- y1 = 10;
- time = 0;
- x = Math.round(Math.random() * (y1 - x1)) + x1;
- this.onEnterFrame = function()
- {
- if(_root.paused)
- {
- return undefined;
- }
- v -= g;
- if(!_root.bg.hitTest(_X,_Y,true))
- {
- if(time <= 2)
- {
- _Y = _Y - v;
- }
- }
- _X = _X + x;
- x *= 0.99;
- _rotation = _rotation + x * 2;
- if(_root.bg.hitTest(_X,_Y + 10,true))
- {
- v = - v * 0.7;
- time++;
- }
- if(_root.bg.hitTest(_X - _width / 2,_Y,true))
- {
- _X++;
- x = - x;
- }
- if(_root.bg.hitTest(_X + _width / 2,_Y,true))
- {
- _X--;
- x = - x;
- }
- if(this.hitTest(_root.car))
- {
- _root.kill();
- }
- if(time > 2)
- {
- _rotation = 0;
- gotoAndStop(2);
- }
- if(_root.level !== 11)
- {
- this.removeMovieClip();
- }
- if(_root.car.dead)
- {
- this.removeMovieClip();
- }
- };
-