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