home *** CD-ROM | disk | FTP | other *** search
- _X = 170 + random(280);
- _Y = 200;
- x = _X;
- _xscale = 10;
- _yscale = 10;
- ys = -5;
- dis = r.distance;
- onenterframe = function()
- {
- _Y = _Y + ys;
- _X = x + math.sin(a++ * 0.1) * 100;
- b._rotation += 7;
- ys += 0.1;
- _xscale = _xscale * 1.02;
- _yscale = _yscale * 1.02;
- dis--;
- if(dis < 0)
- {
- dis = 0;
- if(_Y > 280)
- {
- 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.zboom.start();
- r.score += r.point;
- this.gotoAndPlay("exp");
- }
- };
- stop();
-