home *** CD-ROM | disk | FTP | other *** search
- xspeed *= friction;
- yspeed += grav;
- yspeed *= friction;
- _X = _X + xspeed;
- _Y = _Y + yspeed;
- if(_Y > bottom)
- {
- _Y = bottom;
- yspeed = (- yspeed) * bounce;
- rock_sym.gotoAndPlay(2);
- }
- if(_X > right && !_root.man.dead)
- {
- gotoAndPlay(1);
- _root.score = _root.score + 1;
- }
- else if(_X > right)
- {
- removeMovieClip(this);
- }
- if(hitTest(_root.man) && getTimer() - _root.hitstart > 1000)
- {
- _root.hitstart = getTimer();
- if(!_root.man.dead)
- {
- _root.lives--;
- _root.man.gotoAndPlay("dead");
- }
- }
-