home *** CD-ROM | disk | FTP | other *** search
- _X = 150 + random(300);
- _Y = 150 + random(100);
- _xscale = 15;
- _yscale = 15;
- ys = -5;
- dis = r.distance;
- dispass = -2;
- ro = 5;
- onenterframe = function()
- {
- _rotation = _rotation + ro;
- _Y = _Y + ys;
- ys += 0.2;
- dis += dispass;
- _xscale = _xscale * 1.03;
- _yscale = _yscale * 1.03;
- if(dis < 0)
- {
- dis = 0;
- if(_Y > 300)
- {
- r.zboom3.start();
- if(math.abs(r.cbx - _X) < r.bombrange)
- {
- r.hit = 1;
- r.enemies.removevalue(_name);
- }
- _xscale = _xscale * 2;
- _yscale = _yscale * 2;
- gotoAndPlay(2);
- }
- }
- cekhit();
- if(hit)
- {
- r.score += r.point;
- r.zboom.start();
- this.gotoAndPlay("exp");
- }
- };
- stop();
-