home *** CD-ROM | disk | FTP | other *** search
- this.dis = 390;
- stop();
- _root.ww = _root.metal_ww;
- this._x = random(380) + 120;
- pang_start = true;
- speedX = _root.big_Att + zzz_num;
- this.onEnterFrame = function()
- {
- if(_parent.move_play == false)
- {
- this.obj.stop();
- }
- if(_root.all_obj_remove)
- {
- this.removeMovieClip(this);
- }
- if(_root.cnt >= 16)
- {
- this.play();
- }
- if(_parent.move_play)
- {
- this.obj.play();
- g += _parent.GGG;
- this._x += speedX;
- sn = Math.abs(Math.cos(3.141592653589793 * g / 180));
- this._y = _parent.Hit._y + 25 - sn * dis;
- if(this.hit.hitTest(_parent.hero.Hit))
- {
- _parent.canPlay = false;
- _parent.player_move = false;
- _parent.hero.gotoAndStop("die");
- }
- if(g % 360 == 90 || g % 360 == 270)
- {
- dis = 180;
- }
- if(this.hitTest(_parent.hit_L))
- {
- speedX = _root.big3 + zzz_num;
- }
- if(this.hitTest(_parent.hit_R))
- {
- speedX = - _root.big3 + (- zzz_num);
- }
- }
- if(this.hitTest(_parent.arrow_1.hit))
- {
- _parent.arrow_1.gotoAndStop(1);
- }
- if(this.hitTest(_parent.arrow_2.hit))
- {
- _parent.arrow_2.gotoAndStop(1);
- }
- if(this.hitTest(_parent.arrow_3.hit))
- {
- _parent.arrow_3.gotoAndStop(1);
- }
- if(this.hitTest(_parent.arrow_4.hit))
- {
- _parent.arrow_4.gotoAndStop(1);
- }
- if(this.hitTest(_parent.arrow_5.hit))
- {
- _parent.arrow_5.gotoAndStop(1);
- }
- if(this.hitTest(_parent.arrow_7.hit))
- {
- _parent.arrow_7.gotoAndStop(1);
- }
- if(this.hitTest(_parent.arrow_8.hit))
- {
- _parent.arrow_8.gotoAndStop(1);
- }
- };
-