home *** CD-ROM | disk | FTP | other *** search
- _X = 150 + random(300);
- _Y = 200;
- _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) < 2 * r.bombrange)
- {
- r.hit = 1;
- r.enemies.removevalue(_name);
- }
- _rotation = 0;
- _xscale = _xscale * 3;
- _yscale = _yscale * 2.5;
- gotoAndPlay(2);
- }
- }
- cekhit();
- if(hit)
- {
- px = [_X - 10,_X + 10];
- pxs = [-4,4];
- var i = 0;
- while(i < 2)
- {
- r.attachmovie("bomb4b","e" + r.ed,r.ed);
- r["e" + r.ed].ys = ys;
- r["e" + r.ed].xs = pxs[i];
- r["e" + r.ed]._xscale = 0.5 * _xscale;
- r["e" + r.ed]._yscale = 0.5 * _yscale;
- r["e" + r.ed]._x = px[i];
- r["e" + r.ed]._y = _Y;
- r["e" + r.ed].dis = 0.5 * dis;
- r.enemies.push("e" + r.ed);
- r.ed--;
- i++;
- }
- r.zboom.start();
- r.score += r.point;
- this.gotoAndPlay("exp");
- }
- };
- stop();
-