home *** CD-ROM | disk | FTP | other *** search
- x = _X;
- y = _Y;
- ro = 60;
- dispass = -2;
- d = 15;
- ys = 2;
- if(random(100) > 50)
- {
- dir = -1;
- }
- onenterframe = function()
- {
- if(dir < 0)
- {
- _X = x + math.sin(a++ * 0.1) * 100;
- }
- else
- {
- _X = x - math.sin(a++ * 0.1) * 100;
- }
- s._rotation += ro;
- d--;
- if(d < 0)
- {
- _Y = _Y + ys;
- ys += 3;
- dis += dispass;
- _xscale = _xscale * 1.12;
- _yscale = _yscale * 1.12;
- if(_Y > 320)
- {
- if(math.abs(r.cbx - _X) < r.bombrange)
- {
- r.hit = 1;
- r.zhit.start();
- r.enemies.removevalue(_name);
- }
- this.removeMovieClip();
- }
- }
- cekhit2();
- if(hit)
- {
- r.score += r.point;
- r.zboom.start();
- this.gotoAndPlay("exp");
- }
- };
- stop();
-