home *** CD-ROM | disk | FTP | other *** search
- if(tipe > 10)
- {
- ys = 0.6 * r.rubspeed;
- }
- else
- {
- ys = r.rubspeed + random(4);
- }
- ro = 2 + random(10);
- if(random(100) > 50)
- {
- ro = - ro;
- }
- onenterframe = function()
- {
- _rotation = _rotation + ro;
- _Y = _Y + ys;
- ys += r.grav;
- if(r.esp)
- {
- if(!r.got)
- {
- if(tipe <= 10)
- {
- if(a.hittest(r.cursor))
- {
- r.got = tipe;
- r.attachmovie("rub2","rub2",r.rd);
- r.rub2._rotation = _rotation;
- r.rub2.tipe = tipe;
- r.rub2._x = _X;
- r.rub2._y = _Y;
- r.rd = r.rd + 1;
- r.rubs.removevalue(_name);
- this.removeMovieClip();
- }
- }
- }
- else if(z.hittest(r.rub2.z))
- {
- r.crash = 1;
- tipe2 = r.rub2.tipe;
- r.rubs.removevalue(_name);
- vx = r.vx;
- vy = r.vy;
- gotoAndPlay(5);
- }
- }
- if(!r.inv)
- {
- if(z.hittest(n.z))
- {
- r.hit = 1;
- }
- }
- if(_Y > 480)
- {
- if(!r.cheat1)
- {
- r.energy -= r.energymiss;
- r.bar.barfr.play();
- }
- r.rubs.removevalue(_name);
- this.removeMovieClip();
- }
- };
- stop();
-